且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Virtualbox报错------> '/etc/init.d/vboxdrv setup'

更新时间:2022-06-17 05:58:33

Ubuntu下VirtualBox本来可以很好地用的,今天早上一来就报错了,……提示如下内容:

-------------------------------------------------------------------------

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

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

Virtualbox报错------>  '/etc/init.d/vboxdrv setup'


解决方法:

     这段提示让用户先安装 DKMS ,然后再执行 /dev/vboxdrv 如果没有权限,需要sudo

    执行以下几个命令:

sudo apt-get install dkms
sudo apt-get install linux-headers-`uname -r` build-essential
sudo /etc/init.d/vboxdrv setup

附录:解决方法来自网络:http://forum.ubuntu.org.cn/viewtopic.php?f=169&t=314998