VirtualBox 安装给出消息
sudo modprobe vboxdrv
modprobe: FATAL: Module vboxdrv not found.
我已经更新了系统
sudo apt-get update
随后
reboot
Ubuntu 版本:14.04 LTS
我尝试使用 GDebi 软件包安装程序进行安装,消息是-
Selecting previously unselected package virtualbox-5.1.
(Reading database ... 800789 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.1_5.1.0-108711~Ubuntu~trusty_amd64.deb ...
Unpacking virtualbox-5.1 (5.1.0-108711~Ubuntu~trusty) ...
Setting up virtualbox-5.1 (5.1.0-108711~Ubuntu~trusty) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
再次尝试:我从 BIOS 禁用了安全启动,然后
apt-get update
apt-get install linux-headers-$(uname -r)
dpkg-reconfigure virtualbox-dkms
modprobe vboxdrv
现在 modprobe vboxdrv 工作正常。所以我用文件安装了 VirtualBoxvirtualbox-5.1_5.1.0-108711~Ubuntu~trusty_amd64.deb使用 GDebi 软件包安装程序。现在,当我启动 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
'/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 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.
答案1
这对我有帮助:
apt-get update
apt-get install linux-headers-$(uname -r)
dpkg-reconfigure virtualbox-dkms
modprobe vboxdrv
答案2
这有点老了,但我最终在 rhel7 上解决了这个确切的问题(我认为这也可以解决 ubuntu 的问题)。我能够通过以下方式解决它:
启动到 BIOS 并进入 > 高级 (f7) > 启动 > 向下滚动到“安全启动” > 将“Windows EUFI 模式”更改为“其他操作系统”
我的虚拟机现在运行正常。
答案3
只需从 BIOS 中删除安全启动,然后
sudo apt update
sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
答案4
Windows 更新后,我的 VirtualBox 也出现了这种情况。我有一台双启动机器,只使用 Windows 玩某些游戏。最近 Windows 更新时,它似乎重置了启动设置以重新启用“安全”启动。因此,在我将启动设置改回未启用安全模式后,VB 又可以正常工作了。VB 消息中说我缺少的文件一直都在那里,但安全启动设置显然阻止了该文件的加载。