Oracle VM 虚拟盒错误

Oracle VM 虚拟盒错误

我安装了 oracle vm virtual box v 5.1.20。当我尝试启动它时,出现了错误

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
/sbin/vboxconfig as root.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

我正在寻找同样的问题并找到了它尽管运行 /sbin/vboxconfig,VirtualBox 仍出现“内核驱动程序未安装”错误但是当我运行命令sudo /sbin/rcvboxdrv setup或者sudo /sbin/vboxconfig setup我有这个时:

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

跑步后dpkg -l *virtualbox*我得到了

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
un  virtualbox     <none>       <none>       (no description available)
ii  virtualbox-5.1 5.1.20-11462 amd64        Oracle VM VirtualBox
ii  virtualbox-dkm 5.0.36-dfsg- all          x86 virtualization solution - ker
un  virtualbox-gue <none>       <none>       (no description available)
ii  virtualbox-gue 5.0.36-dfsg- all          x86 virtualization solution - gue
un  virtualbox-gue <none>       <none>       (no description available)
un  virtualbox-gue <none>       <none>       (no description available)
ii  virtualbox-gue 5.0.36-dfsg- amd64        x86 virtualization solution - non
un  virtualbox-gue <none>       <none>       (no description available)
un  virtualbox-mod <none>       <none>       (no description available)
un  virtualbox-ose <none>       <none>       (no description available)

答案1

sudo apt-get install virtualbox-dkms
sudo apt-get install virtualbox-guest-dkms

如果你得到依赖错误

sudo apt-get -f install

所有 dkms 包正确安装后

sudo /usr/lib/virtualbox/vboxdrv.sh setup

相关内容