Pi-hole-for-Android icon indicating copy to clipboard operation
Pi-hole-for-Android copied to clipboard

chroot: can't execute '/bin/su': No such file or directory

Open nbvdkamp opened this issue 1 year ago • 1 comments

When trying to start the Raspbian deployment on my rooted device running Android 7 I get lots of chroot: can't execute '/bin/su': No such file or directory errors. I've tried symlinking /bin/su and /system/bin/su to /sbin/su but that doesn't seem to help.

Log:

>> start
Checking file system ... skip
Mounting the container:
/ ... skip
/proc ... skip
/sys ... skip
/dev ... skip
/dev/shm ... skip
/dev/pts ... skip
## bootstrap/rootfs : do_start
## core/emulator : do_start
## core/motd : do_start
## core/hosts : do_start
## core/hostname : do_start
## core/mnt : do_start
:: Configuring core/mnt ...
## core/net : do_start
:: Configuring core/net ...
## core/timezone : do_start
## core/su : do_start
## core/locale : do_start
## core/aid : do_start
## core/profile : do_start
## core/sudo : do_start
## core/unchroot : do_start
## core : do_start
## bootstrap : do_start
## extra : do_start
## extra/ssh : do_start
:: Starting extra/ssh ... chroot: can't execute '/bin/su': No such file or directory
chroot: can't execute '/bin/su': No such file or directory
fail
## init/sysv : do_start
:: Starting init/sysv:
android-raspbian ... chroot: can't execute '/bin/su': No such file or directory
fail
inetutils-syslogd ... chroot: can't execute '/bin/su': No such file or directory
fail
dbus ... chroot: can't execute '/bin/su': No such file or directory
fail
dropbear ... chroot: can't execute '/bin/su': No such file or directory
fail
lighttpd ... chroot: can't execute '/bin/su': No such file or directory
fail
pihole-FTL ... chroot: can't execute '/bin/su': No such file or directory
fail
xrdp ... chroot: can't execute '/bin/su': No such file or directory
fail
avahi-daemon ... chroot: can't execute '/bin/su': No such file or directory
fail
cron ... chroot: can't execute '/bin/su': No such file or directory
fail
rc.local ... chroot: can't execute '/bin/su': No such file or directory
fail
android-raspbian-status ... chroot: can't execute '/bin/su': No such file or directory
fail
## init : do_start
<<< start

nbvdkamp avatar Oct 21 '24 12:10 nbvdkamp

Which image are you using, 32 or 64-bit?
The default install is 64-bit. For Android 7, you may need to use the 32-bit image.

DesktopECHO avatar Oct 30 '24 19:10 DesktopECHO

I think you're correct as it is a 32 bit device and I don't recall changing the default, though I can't check it because the device's battery died (doesn't charge anymore) and I haven't been able to revive it by hooking DC to the terminals directly. I'll close the issue.

nbvdkamp avatar Nov 17 '24 12:11 nbvdkamp