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


10

在Ubuntu 14.04上安装Virtual box时,出现以下消息:

未安装内核驱动程序(rc = -1908)

VirtualBox Linux内核驱动程序(vboxdrv)未加载,或/ dev / vboxdrv出现权限问题。请通过执行重新安装内核模块

'/etc/init.d/vboxdrv设置'

作为根。如果您的发行版中提供了该软件包,则应先安装DKMS软件包。该软件包跟踪Linux内核更改,并在必要时重新编译vboxdrv>内核模块。

然后在链接上 输入以下命令:

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

更多详细信息来自链接

Answers:


12

您需要编译一些内核驱动程序:

第一

$ 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 '16

我已经尝试过提出这些建议,@hunch,但它一直失败,并说dmesg要找出原因。我无法解释那么多代码。除了AU以外,我在哪里可以找到我的错误(或者AU是最佳选择)?
詹姆斯,

我尝试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
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.