Help! /bin/bash not found on chroot

Lentes, Bernd bernd.lentes at helmholtz-muenchen.de
Mon Nov 29 22:07:10 UTC 2021


----- On Nov 27, 2021, at 4:47 PM, Volker Wysk post at volker-wysk.de wrote:

> I'm trying to fix the problem by booting from an USB stick. Then I
> mount the faulty system at /mnt/rootneu and do this:
> 
> mount BOOTPART /mnt/rootneu/boot
> mount EFIPART /mnt/rootneu/boot/efi
> mount --rbind /dev /mnt/rootneu/dev
> mount --rbind /proc /mnt/rootneu/proc
> mount --rbind /sys /mnt/rootneu/sys
> 
> I do this so I can "update-initramfs -u", "grub-install ..." and
> "update-grub" later.
> 
> So far, it works. But then I try to chroot to the system that fails
> with:
> 
> chroot /mnt/rootneu
> 
> This FAILS with:
> 
> chroot: failed to run command '/bin/bash': No such file or directory
> 

If your broken Ubuntu is a 64bit system your system from the USB-stick must also be a 64bit system.
Same for 32bit.

Bernd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2217 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20211129/9edad1bd/attachment.bin>


More information about the ubuntu-users mailing list