【发布时间】:2021-02-19 13:23:57
【问题描述】:
每次执行 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 文件但不知道具体要更改什么)
【问题讨论】:
-
vagrant up 默认进行配置。错误是否与配置相关?如果是这样,那么如果你 vagrant ssh 进入 vm 然后运行你的配置脚本,你会得到一个更好的错误消息。
-
/vagrant目录在配置期间自动共享。对我来说,这个错误表明提供者和供应存在问题。请发布您的vagrantfile,如果可能,请发布任何配置脚本。