chroot: failed to run command `/bin/bash': No such file or directory

Description:
Creating a chroot environment
Operating System:
Ubuntu, Debian
Error:
chroot: failed to run command `/bin/bash’: No such file or directory
Solution:
This error can be a little be deceiving as it may be caused by:

  • /bin/bash binary is not present in you chroot environment
  • cannot find all shared libraries.

Use ldd /bin/bash to see all required libraries and compare them with your chroot environment. See Creating basic chroot environment page