[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chroot: can't execute command "/bin/bash": No such file or directory



---> Just to be sure: is your Ubuntu (and your system) armhf?

As host I've installed ubuntu 14.04 (for amd64) and I've installed ubuntu 14.04 for arm-hf on the arm chromebook (the variant armel version does not exist for the 14.04).

---> If not, you'll need something like qemu-user to emulate armhf.

yes,I've fixed the error by using qemu-debootstrap,but I tried to use debootstrap because qemu-debootstrap gives some errors when I update the chroot environment.

On Sun, Jun 18, 2023 at 1:01 PM Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> wrote:
On 18/06/2023 06:02, Mario Marietto wrote:
> Hello.
>
> Maybe a little problem for you,but a bigger problem for me. I've
> debootstrapped jessie on Ubuntu 14.04 with this command :
>
> debootstrap --foreign --arch=armhf jessie jessie-armhf
> http://archive.debian.org/debian <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
>
>
> but I see the file bash within the directory /bin of the debootstrapped
> directory called "jessie-armhf". What could be the problem ? thanks.

Just to be sure: is your Ubuntu (and your system) armhf?

If not, you'll need something like qemu-user to emulate armhf.

(I'd expect I different error message in case of trying to run a binary
for another architecture, but one never knows...)

--
   Goes (Went) over like a lead balloon.

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br



--
Mario.

Reply to: