VBox在14.04上,内核驱动程序未安装(rc=-1908)。

在Ubuntu 14.04上安装VirtualBox时,我收到以下消息:
内核驱动程序未安装(rc=-1908) VirtualBox Linux内核驱动程序(vboxdrv)未加载或/dev/vboxdrv存在权限问题。请以root身份执行'/etc/init.d/vboxdrv setup'重新安装内核模块。如果您的发行版中有此选项,请先安装DKMS软件包。该软件包可跟踪Linux内核的更改,并在必要时重新编译vboxdrv内核模块。
然后,按照link中的指示,我输入了以下命令:
sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove --purge virtualbox-dkms
sudo apt-get install virtualbox-dkms

执行最后一个命令

sudo apt-get install virtualbox-dkms

我遇到一个错误:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable 
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
virtualbox-dkms : Depends: virtualbox (>= 4.3.10-dfsg-1)
E: Unable to correct problems, you have held broken packages.

只是为了参考,我检查了Virtual Box的版本,我得到了4.3.16 r95972。
使用这个解决方案是有效的。
sudo apt-get install build-essential module-assistant
sudo m-a prepare

如错误中所提到的,重新安装内核模块。
sudo /etc/init.d/vboxdrv setup

更多细节请参考链接
1个回答

你需要编译一些内核驱动程序:
首先
$ sudo apt-get install build-essential module-assistant 
$ sudo m-a prepare

其次,如错误中所提到的,重新安装内核模块。

sudo /etc/init.d/vboxdrv setup

这应该解决你的问题。
有时候只需要第二步就能解决你的问题(所以先尝试这个)。
来源:http://www.binarytides.com/fix-vbox-kernel-driver-error/

谢谢。Ubuntu 14.04。VB在系统更新后的第二天突然停止工作,就像描述的那样。只需要运行第二步骤即可。 - smertrios
我尝试过这些建议,@hunch,并且它一直未能成功并表示要运行dmesg以找出问题的原因。我无法解释那么多的代码。除了AU(或者AU是最好的选择),我去哪里找到我的错误? - James
我尝试了 sudo /etc/init.d/vboxdrv setup dmesg,并得到了回应 Look at /var/log/vbox-setup.log to find out what went wrong. 查看该文件:Error building the module: /tmp/vbox.0/Makefile-header.gmk:193: *** Error: unable to find the headers of the Linux kernel to build against (KERN_DIR=/lib/modules/dmesg/build). Specify KERN_VER=<version> (currently dmesg) and run Make again. Stop. 我已经包含了内核版本,但仍然失败了 sudo /etc/init.d/vboxdrv setup 3.13.0-51-generic. - prkos