ubuntu升级内核 virtualbox 出现Kernel driver not installed (rc=-1908)

来源:互联网 发布:三星手机系统升级软件 编辑:程序博客网 时间:2024/05/01 05:56

按照网上的提示 执行

sudo /etc/init.d/vboxdrv setup


有人这样做就好了,但我执行时却出现了错误

Stopping VirtualBox kernel module                          [确定]

Recompiling VirtualBox kernel module                       [失败]

(Look at /var/log/vbox-install.log to find out what went wrong)

打开/var/log/vbox-install.log 看到Makefile:147: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again

出现Kernel driver not installed (rc=-1908)

错误的原因是,没有成功编译供virtualbox使用的内核模块。

解决办法:

sudo apt-get install build-essentialsudo apt-get install linux-headers-`uname -r`

(uname –r 查看你的内核版本,比如我的是2.6.32-22-generic)

然后在执行

sudo /etc/init.d/vboxdrv setup


现在虚拟机就可以正常工作了。

0 0
原创粉丝点击