无法在Ubuntu 16.04上运行Vagrant

Ste*_*hen 5 virtualbox vagrant ubuntu-16.04

我刚刚安装了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.
Run Code Online (Sandbox Code Playgroud)

然后,当我运行'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
Run Code Online (Sandbox Code Playgroud)

我已经尝试了许多解决方案,例如这里的说明: 如何纠正虚拟机安装,但似乎没有任何工作.

请帮忙.

小智 1

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

希望这可以帮助