A debian-based shell environment designed for Android and adb
Apache License 2.0
319
stars
100
forks
source link
chroot: exec /bin/bash: No such file or directory after step https://github.com/joelagnel/adeb/blob/master/BCC.md#build-bcc-during-adeb-install-optional #17
real 8m3.377s
user 0m29.522s
sys 0m11.618s
umount: /tmp/tmp.THkf5av3D6/debian/proc/sys/fs/binfmt_misc: not found
umount: /tmp/tmp.THkf5av3D6/debian/proc: not found
chroot: failed to run command ‘rm’: No such file or directory
chroot: failed to run command ‘ln’: No such file or directory
16:01:47 - WARNING : _apt user cannot be added to AID_INET group
/home/cuiyingyun/code/4tb_disk/adeb/buildstrap: line 60: /tmp/tmp.THkf5av3D6/debian/etc/resolv.conf: No such file or directory
Cloning into '/tmp/tmp.THkf5av3D6/debian/bcc-master'...
remote: Enumerating objects: 52, done.
remote: Counting objects: 100% (52/52), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 17061 (delta 15), reused 28 (delta 12), pack-reused 17009
Receiving objects: 100% (17061/17061), 8.19 MiB | 1.76 MiB/s, done.
Resolving deltas: 100% (11050/11050), done.
Checking connectivity... done.
16:01:56 - INFO : Compressing new filesystem to prepare to push to Android /data/androdeb/
/tmp/tmp.THkf5av3D6/deb.tar.gz: 1 file pu...hed. 23.5 MB/s (23319243 bytes in 0.945s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (652 bytes in 0.021s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...e pushed. 0.1 MB/s (1162 bytes in 0.021s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...ile pushed. 0.0 MB/s (93 bytes in 0.017s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (573 bytes in 0.014s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (242 bytes in 0.014s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (762 bytes in 0.015s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (311 bytes in 0.014s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (113 bytes in 0.014s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (229 bytes in 0.013s)
/home/cuiyingyun/code/4tb_disk/adeb/addon...e pushed. 0.1 MB/s (1157 bytes in 0.015s)
10 files pushed. 0.0 MB/s (5294 bytes in 0.179s)
Unpack of rootfs successful!
mount: '/proc'->'debian/proc/': No such file or directory
mount: '/dev'->'debian/dev/': No such file or directory
mount: '/dev/pts'->'debian/dev/pts': No such file or directory
mount: '/sys'->'debian/sys/': No such file or directory
mount: '/sys/fs/bpf/'->'debian/sys/fs/bpf/': No such file or directory
mount: '/sys/kernel/debug/'->'debian/sys/kernel/debug/': No such file or directory
mount: '/sys/kernel/debug/tracing/'->'debian/sys/kernel/debug/tracing/': No such file or directory
chmod: debian/sys/kernel/debug: No such file or directory
chmod: debian/sys/kernel/debug/tracing: No such file or directory
chroot: exec /bin/bash: No such file or directory
adeb$ adeb shell
chroot: exec /bin/bash: No such file or directory
Other infomation:
It works if I run the command "adeb prepare --full --kernelsrc /path/to/kernel-source/" only.
Enviroment: Host Ubuntu: 18.04 Client Android: Android P + 4.9 kernel with root
Reproduce:
15:01:39 - INFO : Looking for device.. 15:01:39 - INFO : Preparing device... 15:01:39 - INFO : Doing a full install. 15:01:39 - INFO : 15:01:39 - INFO : Building and updating kernel headers from kernel source dir (/home/cuiyingyun/code/4tb_disk/adeb/versace-stuff/kernel-headers) 15:01:43 - INFO : Using temporary directory: /tmp/tmp.THkf5av3D6 15:01:43 - INFO : The next stage runs as sudo, please enter password if asked. I: Running command: debootstrap --arch arm64 --foreign --include=llvm-6.0-dev,libclang-6.0-dev,libelf-dev,libfl-dev,libunwind-dev,libdw-dev,git,gcc,libtool,autoconf,make,cmake,iperf,arping,ethtool,flex,bison,python,clang-6.0,python-netaddr,python- pyroute2,bash,ca-certificates,apt,net-tools,iputils-ping,procps,vim --variant=minbase buster /tmp/tmp.THkf5av3D6/debian http://deb.debian.org/debian/ W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg I: Retrieving Release I: Retrieving Packages I: Validating Packages I: Found packages in base already in required: apt bash I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Found additional required dependencies: adduser debian-archive-keyring fdisk gcc-8-base gpgv libacl1 libapt-pkg5.0 libattr1 libaudit-common libaudit1 libblkid1 libbz2-1.0 libc6 libcap-ng0 libcom-err2 libdb5.3 libdebconfclient0 libext2fs2 libfdi sk1 libffi6 libgcc1 libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libhogweed4 libidn2-0 liblz4-1 liblzma5 libmount1 libncursesw6 libnettle6 libp11-kit0 libpam0g libpcre3 libseccomp2 libselinux1 libsemanage-common libsemanage1 libsepol1 libsmartco ls1 libss2 libstdc++6 libsystemd0 libtasn1-6 libtinfo6 libudev1 libunistring2 libuuid1 libzstd1 zlib1g I: Found additional base dependencies: autotools-dev binfmt-support binutils binutils-aarch64-linux-gnu binutils-common cmake-data cpp cpp-8 file gcc-8 git-man ieee-data libarchive13 libasan5 libatomic1 libbinutils libbison-dev libbsd0 libc-dev-bi n libc6-dev libcap2 libcc1-0 libclang-common-6.0-dev libclang1-6.0 libcurl3-gnutls libcurl4 libdw1 libedit2 libelf1 liberror-perl libexpat1 libffi-dev libfl2 libgcc-8-dev libgdbm-compat4 libgdbm6 libgomp1 libgpm2 libgssapi-krb5-2 libicu63 libisl19 libitm1 libjsoncpp1 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libllvm6.0 liblsan0 liblzma-dev libmagic-mgc libmagic1 libmpc3 libmpfr6 libncurses-dev libncurses6 libnet1 libnghttp2-14 libobjc-8-dev libobjc4 l ibpcap0.8 libpcre2-8-0 libperl5.28 libpipeline1 libprocps7 libpsl5 libpython-stdlib libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib libreadline7 librhash0 librtmp1 libsasl2-2 libsasl2-modules-db libsigsegv2 libsqlite3-0 libssh2-1 libssl 1.1 libstdc++-8-dev libtinfo-dev libtsan0 libubsan1 libunwind8 libuv1 libxml2 linux-libc-dev llvm-6.0 llvm-6.0-runtime lsb-base m4 mime-support openssl perl perl-modules-5.28 python-minimal python2 python2-minimal python2.7 python2.7-minimal readl ine-common vim-common vim-runtime wget xxd zlib1g-dev I: Checking component main on http://deb.debian.org/debian... I: Retrieving libacl1 2.2.52-3+b1 I: Validating libacl1 2.2.52-3+b1 I: Retrieving adduser 3.118
A lot of logs for updating package
I: Chosen extractor for .deb packages: dpkg-deb I: Extracting libacl1... I: Extracting adduser...
real 8m3.377s user 0m29.522s sys 0m11.618s umount: /tmp/tmp.THkf5av3D6/debian/proc/sys/fs/binfmt_misc: not found umount: /tmp/tmp.THkf5av3D6/debian/proc: not found chroot: failed to run command ‘rm’: No such file or directory chroot: failed to run command ‘ln’: No such file or directory 16:01:47 - WARNING : _apt user cannot be added to AID_INET group /home/cuiyingyun/code/4tb_disk/adeb/buildstrap: line 60: /tmp/tmp.THkf5av3D6/debian/etc/resolv.conf: No such file or directory Cloning into '/tmp/tmp.THkf5av3D6/debian/bcc-master'... remote: Enumerating objects: 52, done. remote: Counting objects: 100% (52/52), done. remote: Compressing objects: 100% (40/40), done. remote: Total 17061 (delta 15), reused 28 (delta 12), pack-reused 17009 Receiving objects: 100% (17061/17061), 8.19 MiB | 1.76 MiB/s, done. Resolving deltas: 100% (11050/11050), done. Checking connectivity... done. 16:01:56 - INFO : Compressing new filesystem to prepare to push to Android /data/androdeb/ /tmp/tmp.THkf5av3D6/deb.tar.gz: 1 file pu...hed. 23.5 MB/s (23319243 bytes in 0.945s) /home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (652 bytes in 0.021s) /home/cuiyingyun/code/4tb_disk/adeb/addon...e pushed. 0.1 MB/s (1162 bytes in 0.021s) /home/cuiyingyun/code/4tb_disk/adeb/addon...ile pushed. 0.0 MB/s (93 bytes in 0.017s) /home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (573 bytes in 0.014s) /home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (242 bytes in 0.014s) /home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (762 bytes in 0.015s) /home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (311 bytes in 0.014s) /home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (113 bytes in 0.014s) /home/cuiyingyun/code/4tb_disk/adeb/addon...le pushed. 0.0 MB/s (229 bytes in 0.013s) /home/cuiyingyun/code/4tb_disk/adeb/addon...e pushed. 0.1 MB/s (1157 bytes in 0.015s) 10 files pushed. 0.0 MB/s (5294 bytes in 0.179s) Unpack of rootfs successful! mount: '/proc'->'debian/proc/': No such file or directory mount: '/dev'->'debian/dev/': No such file or directory mount: '/dev/pts'->'debian/dev/pts': No such file or directory mount: '/sys'->'debian/sys/': No such file or directory mount: '/sys/fs/bpf/'->'debian/sys/fs/bpf/': No such file or directory mount: '/sys/kernel/debug/'->'debian/sys/kernel/debug/': No such file or directory mount: '/sys/kernel/debug/tracing/'->'debian/sys/kernel/debug/tracing/': No such file or directory chmod: debian/sys/kernel/debug: No such file or directory chmod: debian/sys/kernel/debug/tracing: No such file or directory chroot: exec /bin/bash: No such file or directory
adeb$ adeb shell chroot: exec /bin/bash: No such file or directory
Other infomation: