在Ubuntu中如何修复"Kernel driver not installed (rc=-1908)"VirtualBox错误
时间:2020-03-21 11:44:33 来源:igfitidea点击:
我使用Oracle VirtualBox测试各种Linux和UNIX发行版。
我在VirtualBox中测试了这么多虚拟机。
今天,我在Ubuntu 18.04桌面中启动了Ubuntu 18.04服务器VM,我收到以下错误。
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 virtualbox-dkms package and load the kernel module by executing 'modprobe vboxdrv' as root. where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
我点击了确定关闭消息框,我在后台看到另一个。
Failed to open a session for the virtual machine Ubuntu 18.04 LTS Server. The virtual machine 'Ubuntu 18.04 LTS Server' has terminated unexpectedly during startup with exit code 1 (0x1). Result Code: NS_ERROR_FAILURE (0x80004005) Component: MachineWrap Interface: IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}
我不知道该怎么做。
所以,我运行以下命令检查它是否有帮助。
$sudo modprobe vboxdrv
而且,我收到了这个错误:
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.0.0-23-generic
仔细阅读两个错误消息后,我意识到我应该更新VirtualBox应用程序。
如果我们在Ubuntu和Linux Mint等变体中遇到此错误,我们只需重新安装或者更新"VirtualBox-DKMS"包使用命令:
$sudo apt install virtualbox-dkms
或者,更新整个系统是更好的:
$sudo apt upgrade
现在错误已经消失.