运行 vagrant up 命令时出错

运行 vagrant up 命令时出错

运行 vagrant up 不再起作用。我已阅读该帖子Vagrant up 命令不起作用它指示删除 Virtual Box 并安装最新版本。但是,我也无法卸载 VB。然后我下载了新版本的 VB这里,当我双击它时,我收到错误消息:VirtualBox-6.1.0-135406-OSX.dmg 图像无法识别。

我已经运行过的一些命令。

Leines-MacBook-Pro:~ cozymachete$ vagrant up
Vagrant failed to initialize at a very early stage:

The "VBoxManage" command or one of its dependencies could not
be found. Please verify VirtualBox is properly installed. You can verify
everything is okay by running "VBoxManage --version" and verifying
that the VirtualBox version is outputted.

If you're on Windows and just installed VirtualBox, you have to
log out and log back in for the new environmental variables to take
effect. If you're on Linux or Mac, verify your PATH contains the folder
that has VBoxManage in it.
Leines-MacBook-Pro:~ cozymachete$ vagrant --version
Vagrant 2.2.6
Leines-MacBook-Pro:~ cozymachete$ uname
Darwin
Leines-MacBook-Pro:~ cozymachete$ which virtualBox
/usr/local/bin/virtualBox
Leines-MacBook-Pro:~ cozymachete$ sudo ps aux | grep -i "vbox"
Password:
cozymachete       3214   0.0  0.0  4277496    676 s001  S+   12:36PM   0:00.00 grep -i vbox
Leines-MacBook-Pro:~ cozymachete$ sudo apt-get remove --purge virtualbox 
sudo: apt-get: command not found
Leines-MacBook-Pro:~ cozymachete$ sudo apt-get update
sudo: apt-get: command not found
Leines-MacBook-Pro:~ cozymachete$ lsb_release -a
-bash: lsb_release: command not found
Leines-MacBook-Pro:~ cozymachete$ lsb_release -d
-bash: lsb_release: command not found
Leines-MacBook-Pro:~ cozymachete$ vagrant box add hashicorp/bionic64
Vagrant failed to initialize at a very early stage:

The "VBoxManage" command or one of its dependencies could not
be found. Please verify VirtualBox is properly installed. You can verify
everything is okay by running "VBoxManage --version" and verifying
that the VirtualBox version is outputted.

If you're on Windows and just installed VirtualBox, you have to
log out and log back in for the new environmental variables to take
effect. If you're on Linux or Mac, verify your PATH contains the folder
that has VBoxManage in it.
Leines-MacBook-Pro:~ cozymachete$ 

谢谢你!

相关内容