每次我执行 vagrant up 命令时我都会得到错误
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
chown `id -u vagrant`:`id -g vagrant` /vagrant
Stdout from the command:
Stderr from the command:
chown: changing ownership of ‘/vagrant’: Not a directory
我找不到任何解决方案(已经尝试更改 sudoers 文件但不知道要更改什么)
最佳答案
chown: changing ownership of ‘/vagrant’: Not a directory
这听起来像 /vagrant
是不是目录,它可能是一个文件,因此删除该文件并重试。
或者再次尝试重新创建您的虚拟机,如果没有创建这样的文件,还要仔细检查您的 Vagrantfile
。
要进一步调查问题,请在 Debug模式下运行 vagrant,例如
vagrant up --debug
关于linux - 以下 SSH 命令以非零退出状态响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36334270/