内核升级后 VirtualBox 错误消息(rc=-1908)

内核升级后 VirtualBox 错误消息(rc=-1908)

可能重复:
Virtualbox 内核驱动程序未安装

最近我将内核更新为3.2.0-29-generic。此后,我的 VirtualBox 无法打开并显示错误消息

VirtualBox - Error in suplibOsInit
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. 
This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

为了使其工作,我每次都必须执行以下命令:

sudo modprobe vboxdrv

正如其他地方所建议的那样。

这很烦人。有人能帮忙吗?这样我就可以运行 VirtualBox,而不必在每次启动后执行该命令。我必须提到,我尝试了各种论坛中建议的其他几个选项(包括重新安装 VirtualVox、DKMS 包等),但没有一个能给我永久的解决方案。

答案1

您必须按照错误消息中的要求重新安装内核模块。

sudo /etc/init.d/vboxdrv setup

确保您已经dkms安装,并且在内核升级后您将不会再遇到此问题。

sudo apt-get install dkms

相关内容