我正在尝试在 Windows Linux 子系统上发出 vagrant up,但出现了这个错误。
/opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/lib/vagrant/util/which.rb:37: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
Vagrant failed to initialize at a very early stage:
Vagrant is unable to use the VirtualBox provider from the Windows Subsystem for
Linux without access to the Windows environment. Enabling this access must be
done with caution and an understanding of the implications. For more information
on enabling Windows access and using VirtualBox from the Windows Subsystem for
Linux, please refer to the Vagrant documentation:
https://www.vagrantup.com/docs/other/wsl.html
我已经尝试删除并重新安装 vagrant,但问题不在这里。我当时正在做
chmod go-w /mnt/c
对于每个不安全的世界都是可写的,但对于 /mnt/c,此命令不起作用。有人能帮帮我吗?
我也已经尝试过了
[automount]
options="metadata,umask=0033"
我在 etc/wsl.conf 中创建了一个文件,但它不起作用。我甚至无法发出 vagrant ssh。