Live-Build lb build "chroot: failed to run command ‘/usr/bin/env’: No such file or directory"
I have a problem with live build
$ sudo lb build --interactive shell
returns with
chroot: failed to run command ‘/usr/bin/env’: No such file or directory
does anyone know what is happening?
I had the same thing happen to me and I think it's because my working directory is mounted from my host OS (mac osx) via vagrant.
P: If the following stage fails, the most likely cause of the problem is with your mirror configuration or a caching proxy.
P: Running debootstrap...
mknod: ‘/vagrant/tutorial1/chroot/test-dev-null’: Operation not permitted
E: Cannot install into target '/vagrant/tutorial1/chroot' mounted with noexec or nodev
P: Begin unmounting filesystems...
P: Saving caches...
chroot: failed to run command ‘/usr/bin/env’: No such file or directory
The '/usr/bin/env': No such file or directory
error is because debootstrap failed, and I'd bet the command being run is something along the lines of: chroot /vagrant/tutorial1/chroot /usr/bin/env FOO=bar baz
, and chroot is failing to find /usr/bin/env
I moved outside of the /vagrant path on my machine and it seems to be working.
Try looking at earlier messages in the output for clues. Feel free to paste more of the output in here if you are still not certain!