虚拟盒内核与模块不匹配

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'/sbin/vboxconfig' may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox. where: supR3HardenedMainInitRuntime what: 4 ERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user 

dpkg --list | grep virtualbox

 ii unity-scope-virtualbox 0.1+13.10.20130723-0ubuntu1 all VirtualBox scope for Unity ii virtualbox-5.1:i386 5.1.12-112440~Ubuntu~xenial i386 Oracle VM VirtualBox 

已经尝试过的链接VirtualBox内核模块的解决方案与VirtualBox的版本不匹配

我的安全启动也被禁用。

这里的问题是:

  1. Ubuntu仓库中的官方Virtualbox通常比您从官方Virtualbox下载页面安装的版本早。
  2. 如果您必须从其他来源安装[较新版本],则必须:
    • 卸载来自Ubuntu repo的那个,这应该使用命令sudo apt remove --purge来完成,这样也可以删除virtualbox内核模块
  3. 然后下载最新版本Ubuntu版本 ,只需安装即可构建新的虚拟盒内核模块您的虚拟机版本相匹配
  4. 如果您不需要最新版本,那么只需安装:

     sudo apt install virtualbox 

您附带的链接中所述的步骤仍然有效。

我重启了pc unistalled虚拟盒子。 sudo apt-get purge virtualbox-5.1:i386然后重新安装了以前的版本,并且它成功运行