Android Developer Codelab fail to setup cuttlefish

111 views
Skip to first unread message

Munjal Kansara

unread,
Jul 25, 2022, 4:10:37 PMJul 25
to Android Building
I am trying to go through "Android Developer Codelab" on ubuntu 18.04 LTS

$ uname -a
Linux nityan-OptiPlex-7040 5.4.0-122-generic #138~18.04.1-Ubuntu SMP Fri Jun 24 14:14:03 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Step of setting up Cuttlefish device is failing, as copied below
$ acloud create --local-image --local-instance

==================
Notice:
We collect anonymous usage statistics in accordance with our Content Licenses (https://source.android.com/setup/start/licenses), Contributor License Agreement (https://opensource.google.com/docs/cla/), Privacy Policy (https://policies.google.com/privacy) and Terms of Service (https://policies.google.com/terms).
==================

Missing necessary acloud setup, would you like to run setup[y/N]?y

Welcome to

___ _______ ____ __ _____
/ _ |/ ___/ / / __ \/ / / / _ \
/ __ / /__/ /__/ /_/ / /_/ / // /
/_/ |_\___/____/\____/\____/____/



======================================================================================================
[Install cuttlefish-common packages on the host]
This step will walk you through the cuttlefish-common packages installation for your host.
======================================================================================================


Start to install cuttlefish-common :
git clone https://github.com/google/android-cuttlefish.git /tmp/tmp2yb7jyr7/cf-common
cd /tmp/tmp2yb7jyr7/cf-common
debuild -i -us -uc -b
sudo dpkg -i ../cuttlefish-base_*_*64.deb || sudo apt-get install -f
sudo dpkg -i ../cuttlefish-user_*_*64.deb || sudo apt-get install -f
sudo dpkg -i ../cuttlefish-common_*_*64.deb || sudo apt-get install -f
Enter 'y' to continue, otherwise N or enter to exit: y
Run command: git clone https://github.com/google/android-cuttlefish.git /tmp/tmp2yb7jyr7/cf-common
cd /tmp/tmp2yb7jyr7/cf-common
debuild -i -us -uc -b
sudo dpkg -i ../cuttlefish-base_*_*64.deb || sudo apt-get install -f
sudo dpkg -i ../cuttlefish-user_*_*64.deb || sudo apt-get install -f
sudo dpkg -i ../cuttlefish-common_*_*64.deb || sudo apt-get install -f
Cloning into '/tmp/tmp2yb7jyr7/cf-common'...
remote: Enumerating objects: 3380, done.
remote: Counting objects: 100% (581/581), done.
remote: Compressing objects: 100% (172/172), done.
remote: Total 3380 (delta 462), reused 465 (delta 407), pack-reused 2799
Receiving objects: 100% (3380/3380), 907.51 KiB | 987.00 KiB/s, done.
Resolving deltas: 100% (1924/1924), done.
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui -i -b failed
dpkg: error: cannot access archive '../cuttlefish-base_*_*64.deb': No such file or directory
dpkg: error: cannot access archive '../cuttlefish-user_*_*64.deb': No such file or directory
dpkg: error: cannot access archive '../cuttlefish-common_*_*64.deb': No such file or directory

-----------------------------------------------------------------------------

When i follow instructions from https://android.googlesource.com/device/google/cuttlefish/ then also it fails ...


$ debuild -i -us -uc -b -d
dpkg-buildpackage -rfakeroot -us -uc -ui -i -b -d
dpkg-buildpackage: info: source package cuttlefish-common
dpkg-buildpackage: info: source version 0.9.24
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Jorge Moreira Broche <...>
dpkg-source -i --before-build cf-common
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean --with=config-package
dh: The use of "debhelper-compat (= 12)" is experimental and may change (or be retired) without notice
debian/rules override_dh_auto_clean
make[1]: Entering directory '/tmp/tmp6fc51tpn/cf-common'
rm -f host/frontend/host-orchestrator/host-orchestrator
dh_auto_clean
dh_auto_clean: The use of "debhelper-compat (= 12)" is experimental and may change (or be retired) without notice
make[1]: Leaving directory '/tmp/tmp6fc51tpn/cf-common'
dh_clean
dh_clean: The use of "debhelper-compat (= 12)" is experimental and may change (or be retired) without notice
debian/rules build
dh build --with=config-package
dh: The use of "debhelper-compat (= 12)" is experimental and may change (or be retired) without notice
dh_update_autotools_config
dh_update_autotools_config: The use of "debhelper-compat (= 12)" is experimental and may change (or be retired) without notice
dh_autoreconf
dh_autoreconf: The use of "debhelper-compat (= 12)" is experimental and may change (or be retired) without notice
debian/rules override_dh_auto_build
make[1]: Entering directory '/tmp/tmp6fc51tpn/cf-common'
host/frontend/goutil host/frontend/host-orchestrator build -v -ldflags="-w"
+ cd host/frontend/host-orchestrator
+ shift
+ mkdir -p /tmp/go
+ export GOPATH=/tmp/go
+ GOPATH=/tmp/go
+ export GOCACHE=/tmp/go/go-build
+ GOCACHE=/tmp/go/go-build
+ go build -v -ldflags=-w
main.go:24:2: cannot find package "cuttlefish/host-orchestrator/orchestrator" in any of:
/usr/lib/go-1.10/src/cuttlefish/host-orchestrator/orchestrator (from $GOROOT)
/tmp/go/src/cuttlefish/host-orchestrator/orchestrator (from $GOPATH)
main.go:25:2: cannot find package "cuttlefish/liboperator/api/v1" in any of:
/usr/lib/go-1.10/src/cuttlefish/liboperator/api/v1 (from $GOROOT)
/tmp/go/src/cuttlefish/liboperator/api/v1 (from $GOPATH)
main.go:26:2: cannot find package "cuttlefish/liboperator/operator" in any of:
/usr/lib/go-1.10/src/cuttlefish/liboperator/operator (from $GOROOT)
/tmp/go/src/cuttlefish/liboperator/operator (from $GOPATH)
debian/rules:25: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory '/tmp/tmp6fc51tpn/cf-common'
debian/rules:17: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui -i -b -d failed

Any help here would be great
Reply all
Reply to author
Forward
0 new messages