Page 1 of 1

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

Posted: Mon Mar 04, 2013 12:11 pm
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).