Hay*_*den 7 command-line chroot
我有实时构建的问题
$ sudo lb build --interactive shell
Run Code Online (Sandbox Code Playgroud)
返回
chroot: failed to run command ‘/usr/bin/env’: No such file or directory
Run Code Online (Sandbox Code Playgroud)
有谁知道发生了什么?
小智 5
我遇到了同样的事情,我认为这是因为我的工作目录是通过 vagrant 从我的主机操作系统(mac osx)挂载的。
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
Run Code Online (Sandbox Code Playgroud)
该'/usr/bin/env': No such file or directory错误是因为debootstrap的失败,我敢打赌正在运行的命令是沿着线的东西:chroot /vagrant/tutorial1/chroot /usr/bin/env FOO=bar baz和chroot的是没有找到/usr/bin/env
我移到机器上的 /vagrant 路径之外,它似乎正在工作。
尝试查看输出中较早的消息以获取线索。如果您仍然不确定,请随意在此处粘贴更多输出!