chroot: failed to run command `/bin/bash': Exec format error

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

chroot: failed to run command `/bin/bash': Exec format error

Post by ^rooker »

[PROBLEM]
I was trying to chroot into a folder containing a Xubuntu (LTS 12.04) installation used for PXE-booting over tFTP.
The Xubuntu-installation resided in "/srv/tftp/systems/xubuntu-precise-amd64" and was already working fine for booting and working over the network, but:

Code: Select all

sudo chroot /srv/tftp/systems/xubuntu-precise-amd64
Threw the following error message:
chroot: failed to run command `/bin/bash': Exec format error
[SOLUTION]
The PXE boot server was running on a 32bit version of Debian Squeeze.
On "AskUbuntu", there's a thread which indicicates that the problem is caused by trying to chroot the wrong bit-architecture (64bit on a 32bit host).
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply