Re: chroot: can't execute command "/bin/bash": No such file or directory
On Sun, Jun 18, 2023 at 5:03 AM Mario Marietto <marietto2008@gmail.com> wrote:
>
> [...]
> I've debootstrapped jessie on Ubuntu 14.04 with this command :
>
> debootstrap --foreign --arch=armhf jessie jessie-armhf http://archive.debian.org/debian
>
> and it worked ok,but when I try to chroot within it :
>
> root@marietto-Z87-HD3:/home/marietto/Scrivania/Chromebook/linux-distros# chroot ./jessie-armhf /bin/bash
>
> it gives the following error :
>
> chroot: can't execute command "/bin/bash": No such file or directory
Omit the interpreter:
# cd /home/marietto/Scrivania/Chromebook/linux-distros
# chroot jessie-armhf
Also see https://www.cryptopp.com/wiki/Debian_Chroot#Entering_a_Guest .
I seem to recall SPARC or SPARC64 will give problems. It crashes
immediately in /bin/sh or /bin/bash.
Jeff
Reply to: