5

我刚刚安装了 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

我尝试了许多解决方案,例如此处的说明: 如何更正 virtualbox 安装,但似乎没有任何效果。

请帮忙。

4

2 回答 2

4

对于也遇到此问题的其他人,请禁用安全启动。对我有用。

在此处输入图像描述

于 2017-02-17T06:22:49.713 回答
1

重新安装virtualbox-dkms(通过aptitude reinstall virtualbox-dkms)对我有用。它强制重建模块等等,现在我的虚拟机再次启动 =)

希望这可以帮助

于 2016-07-10T22:47:43.360 回答