【发布时间】:2017-07-27 23:30:41
【问题描述】:
我刚刚安装了 Vagrant 和 Virtualbox,但无法运行 Vagrant。运行“vagrant up”时出现以下错误:
roosterlegs@roosterlegs-Lenovo-Y50-70:~/vagrant_proj$ vagrant up
VirtualBox is complaining that the installation is incomplete. Please
run `VBoxManage --version` to see the error message which should contain
instructions on how to fix this error.
然后当我运行“VBoxManage --version”时,我得到:
roosterlegs@roosterlegs-Lenovo-Y50-70:~/vagrant_proj$ VBoxManage --version
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-generic.
You will not be able to start VMs until this problem is fixed.
5.0.18_Ubuntur106667
我尝试了多种解决方案,例如此处的说明: How to correct virtualbox installation,但似乎没有任何效果。
请帮忙。
【问题讨论】:
-
您确定安装了
linux-headers-generic和virtualbox-ose-dkms? -
我相信我有
linux-headers-generic,但是当我尝试安装另一个时,我得到一个错误:E: Unable to locate package virtualbox-ose-dkms -
但是我确实安装成功了
virtualbox-dkms -
运行
dpkg --get-selections | grep linux-headers-generic如果没有安装包运行sudo apt-get update && sudo apt-get install linux-headers-generic -
我已经安装了这些。当我尝试运行
vagrant up时仍然出现相同的错误。
标签: vagrant virtualbox ubuntu-16.04