Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Oracle Linux: chroot: failed to run command ‘/bin/bash’: Exec format error
in Linux
APPLIES TO:
Linux OS - Version Oracle Linux 7.0 and later
Linux x86-64
SYMPTOMS
When attempting to runchroot /mnt
on the debug instance resulted in the following error.
#chroot /mnt
chroot: failed to run command ‘/bin/bash’: Exec format error
CAUSE
The error indicates that the binary /mnt/bin/bash
cannot be executed in the current environment.
The two most common reasons are:
Architecture mismatch:
The root filesystem mounted at /mnt
is from a system built for a different CPU architecture than the current environment.
Example:
The /mnt
filesystem is from an ARM (aarch64)
instance, but the chroot command is being run in an
Tagged:
0