chroot: can't execute '/bin/su': No such file or directory
hi
i try to install kali or debian in my lenovo yoga book intel base device with no luck, i even restored my device for a clean install but i get stuck on that error, i read other similar issues but no one works for me
this is the ouput of the status
[12:41:22] >>> status [12:41:22] Device: Lenovo YB1-X90F [12:41:22] Android: 7.1.1 [12:41:22] Architecture: x86_64 [12:41:22] Kernel: 3.14.79-x86_64-g7f80a31 [12:41:22] Memory: 330/3849 MB [12:41:22] Swap: 0/0 MB [12:41:22] SELinux: yes [12:41:22] Loop devices: yes [12:41:22] Support binfmt_misc: yes [12:41:22] Supported FS: exfat ext2 ext3 ext4 fuseblk msdos squashfs vfat [12:41:22] Installed system: unknown [12:41:22] Status of components: [12:41:22] ## bootstrap/rootfs : do_status [12:41:22] ## bootstrap/debian : do_status [12:41:22] ## core/emulator : do_status [12:41:22] ## core/motd : do_status [12:41:22] ## core/hosts : do_status [12:41:22] ## core/hostname : do_status [12:41:22] ## core/mnt : do_status [12:41:22] ## core/net : do_status [12:41:22] ## core/timezone : do_status [12:41:22] ## core/su : do_status [12:41:22] ## core/locale : do_status [12:41:22] ## core/profile : do_status [12:41:22] ## core/aid : do_status [12:41:22] ## core/sudo : do_status [12:41:22] ## core/unchroot : do_status [12:41:22] ## core : do_status [12:41:22] ## bootstrap : do_status [12:41:22] ## desktop/desktop-base : do_status [12:41:22] ## extra : do_status [12:41:22] ## desktop/dbus : do_status [12:41:22] :: desktop/dbus ... stopped [12:41:22] ## desktop/lxde : do_status [12:41:22] ## desktop : do_status [12:41:22] ## extra/ssh : do_status [12:41:22] :: extra/ssh ... stopped [12:41:22] ## graphics/vnc : do_status [12:41:22] :: graphics/vnc ... stopped [12:41:22] ## graphics : do_status [12:41:22] Mounted parts: [12:41:22] * / [12:41:22] * /proc [12:41:22] * /sys [12:41:22] * /sys/fs/selinux [12:41:22] * /dev [12:41:22] * /dev/shm [12:41:22] * /dev/pts [12:41:22] Available mount points: [12:41:22] * /mnt/runtime/default/emulated 47.4/52.0 GB (fuse) [12:41:22] * /mnt/runtime/read/emulated 47.4/52.0 GB (fuse) [12:41:22] * /mnt/runtime/write/emulated 47.4/52.0 GB (fuse) [12:41:22] * /mnt/media_rw/DE81-91D0 0.6/0.6 GB (vfat) [12:41:22] * /mnt/runtime/default/DE81-91D0 0.6/0.6 GB (fuse) [12:41:22] * /mnt/runtime/read/DE81-91D0 0.6/0.6 GB (fuse) [12:41:22] * /mnt/runtime/write/DE81-91D0 0.6/0.6 GB (fuse) [12:41:22] * /system 0.6/3.6 GB (ext4) [12:41:22] * /country 0.4/1.0 GB (ext4) [12:41:22] * /cache 0.2/0.2 GB (ext4) [12:41:22] * /data 47.4/52.0 GB (ext4) [12:41:22] * /oem_config 0.0/0.0 GB (ext4) [12:41:22] * /factory 0.0/0.0 GB (ext4) [12:41:22] * /sbin/.core/mirror/system 0.6/3.6 GB (ext4) [12:41:22] * /sbin/.core/db-0/magisk.db 47.4/52.0 GB (ext4) [12:41:22] * /storage/emulated 47.4/52.0 GB (fuse) [12:41:22] * /storage/DE81-91D0 0.6/0.6 GB (fuse) [12:41:22] Available partitions: [12:41:22] * /dev/block/mmcblk1p1 578 MB (1183744 578M b Win95 FAT32) [12:41:22] * /dev/block/mmcblk1p2 29 GB (61366272 29.2G 83 Linux) [12:41:23] <<< status
im tryng a partition type installation of debian amd64 and ext2 file system, my device is root with magisk and i have installed the meefik busy box
this is the ouput when i try to install
[12:46:05] >>> start [12:46:06] Checking file system ... skip [12:46:06] Mounting the container: [12:46:06] / ... skip [12:46:06] /proc ... skip [12:46:06] /sys ... skip [12:46:06] /sys/fs/selinux ... skip [12:46:06] /dev ... skip [12:46:06] /dev/shm ... skip [12:46:06] /dev/pts ... skip [12:46:06] ## bootstrap/rootfs : do_start [12:46:06] ## bootstrap/debian : do_start [12:46:06] ## core/emulator : do_start [12:46:06] ## core/motd : do_start [12:46:06] ## core/hosts : do_start [12:46:06] ## core/hostname : do_start [12:46:06] ## core/mnt : do_start [12:46:06] :: Configuring core/mnt ... [12:46:06] /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: can't create /data/local/mnt/etc/mtab: nonexistent directory [12:46:06] ## core/net : do_start [12:46:06] :: Configuring core/net ... [12:46:06] /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory [12:46:06] /data/user/0/ru.meefik.linuxdeploy/bin/linuxdeploy: eval: line 1: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory [12:46:06] ## core/timezone : do_start [12:46:06] ## core/su : do_start [12:46:06] ## core/locale : do_start [12:46:06] ## core/profile : do_start [12:46:06] ## core/aid : do_start [12:46:06] ## core/sudo : do_start [12:46:06] ## core/unchroot : do_start [12:46:06] ## core : do_start [12:46:06] ## bootstrap : do_start [12:46:06] ## desktop/desktop-base : do_start [12:46:06] ## extra : do_start [12:46:06] ## desktop/dbus : do_start [12:46:06] :: Starting desktop/dbus ... chroot: can't execute '/bin/su': No such file or directory [12:46:06] fail [12:46:06] ## desktop/lxde : do_start [12:46:06] ## desktop : do_start [12:46:06] ## extra/ssh : do_start [12:46:06] :: Starting extra/ssh ... ls: /data/local/mnt/etc/ssh/: No such file or directory [12:46:06] chroot: can't execute '/bin/su': No such file or directory [12:46:06] chroot: can't execute '/bin/su': No such file or directory [12:46:06] fail [12:46:06] ## graphics/vnc : do_start [12:46:06] :: Starting graphics/vnc ... chroot: can't execute '/bin/su': No such file or directory [12:46:06] fail [12:46:06] ## graphics : do_start [12:46:06] <<< start
i all ready try change the permision, creatre the etc folder in data/local/mnt/ i really appreciate if some one have a work arround for this, sorry for the bad english
install busybox in /system/xbin
instead of /system/bin.
if that doesnt work change it to one of the other default locations busybox is giving.
that fixed it for me.
also bin/su might be your location seeing its looking there.
is all ready installed in /system/xbin and not luck
/bin/su doesnt exist, i try to create de directory and install in that directory but for some weard reason thats break the root of my device and now i not sure if i have to restore in order of get root again
is like linux deploy search the busy box in other folder or something like that if any can help me with this i realy apreciate
Hi.. i know this thread is kind of old.. but i am facing this same issue today.. did anyone discover a working solution?
I try, I fail, and I succeed. maybe the question of Source Path, Try using default path and download by proxy.
I just want to tell you, Repository in Linux deploy is a great place, you can download it and assign path with local storage.
Who say MUST Pay for it? If you have a job, pay for it !
Any outcome of this? Stuck here since more than a day and nearly tried every combination of settings but still getting this error. There is no 'bin/su' on this lineage 14.1. Tried different busy box releases and offers and directories. no luck. Help would be greatly appreciate
I'm testing Linux Deploy on older device with android 4.4 and older version of Linux Deploy 2.0.3-227.
What worked for me was using debian_arm Debian 10 Buster instead of stretch.
So to select it go to upper left corner menu -> repository -> refresh (upper right corner) and menu -> repository -> select debian_arm -> and import. After that use Image Configuration and set it to your liking. It should have new image called debian_arm selected.
Option 2 - I have not tried it and it might not work (and for obvious reasons it's a bad advice to begin with :D):
This is coping buster static binary to stretch image on your device.
Another option is to download and copy static su binary and put it into your device to /data/local/mnt/bin (of course after mounting linux,iso)
hub.meefik.ru/rootfs/debian_arm.tgz -> debian_arm.tar\.\usr\bin\su
It might me easer to perform above actions if you select Installation type as directory instead of image. You will not have to mount it to paste su. In that case it probably will be installed to /data/data/ru.meefik.linuxdeploy/env/...
I got the same issue with a custom ROM BORETS, any workaround?