ubuntu中使用virtualbox遇到Kernel driver not installed (rc=-1908)错误

百度之后得到解决,再此做个笔记

错误提示

    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. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

我是在使用了sudo apt-get autoremove 之后卸载了原来的内核文件(应该是,我也不清楚)

然后导致virtualbox提示该错误的,具体我也不清楚反正后来解决了,解决方法如下

sudo apt-get install linux-headers-`uname -r`
sudo dpkg-reconfigure virtualbox-dkms  
sudo modprobe vboxdrv

 具体来自

http://askubuntu.com/questions/205154/virtualbox-etc-init-d-vboxdrv-setup-issue

原文地址:https://www.cnblogs.com/reddusty/p/5021525.html