Met*_*yer 5 linux git ssh vagrant
每次执行 vagrant up 命令时都会出现错误
\n\nThe following SSH command responded with a non-zero exit status.\nVagrant assumes that this means the command failed!\n\nchown `id -u vagrant`:`id -g vagrant` /vagrant\n\nStdout from the command:\n\n\n\nStderr from the command:\n\nchown: changing ownership of \xe2\x80\x98/vagrant\xe2\x80\x99: Not a directory\nRun Code Online (Sandbox Code Playgroud)\n\n我找不到任何解决方案(已经尝试更改 sudoers 文件,但不知道到底要更改什么)
\n这不是权限问题,而是一个简单的错误消息,即预期的主目录“/vagrant”不存在。它可能是一个文件或根本不存在。
无论如何,这个命令必须由 root 用户调用。
只需创建该目录:
mkdir /vagrant
Run Code Online (Sandbox Code Playgroud)
作为 root 用户。
| 归档时间: |
|
| 查看次数: |
27461 次 |
| 最近记录: |