Ubuntu下VirtualBox无法启动虚拟机,提示modprobe vboxdrv

昨天系统提示了一堆更新,按照习惯在没看详情的情况下就直接更新了所有软件。今天启动VirtualBox虚拟机,提示错误如下:

RTR3InitEx failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing

'modprobe vboxdrv'

may correct this. Make sure that you are not mixing builds of VirtualBox from different sources.

where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.

尝试以下修复模块无效:

sudo modprobe vboxdrv

还参考了网上的教程修复证书,然而也无效。

最后卸载重装,问题得到了解决。

sudo apt remove virtualbox
sudo apt install virtualbox

2024年1月18日:

事实上错误信息中已经给出了解决方法,无需重装。

sudo apt install virtualbox-dkms
sudo modprobe vboxdrv
阿里云