我在ubuntu上安装virtualbox时出现错误信息:
E: virtualbox-ose-source:
子进程 已安装的 post-installation 脚本 返回了错误
此后运行虚拟机就出现:
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.
按提示运行“/etc/init.d/vboxdrv setup"又出现:
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module
* Look at /var/log/vbox-install.log to find out what went wrong
我又按提示看看到文档”/var/log/vbox-install.log“内容如下:
ubuntu@ubuntu-laptop:~$ cat /var/log/vbox-install.log
Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.1.6
------------------------------
Deleting module version: 3.1.6
completely from the DKMS tree.
------------------------------
Done.
Creating symlink /var/lib/dkms/vboxdrv/3.1.6/source ->
/usr/src/vboxdrv-3.1.6
DKMS: add Completed.
Error! Your kernel source for kernel 2.6.32-22-generic cannot be found at
/lib/modules/2.6.32-22-generic/build or /lib/modules/2.6.32-22-generic/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:152: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
好像要安装什么dkms包,在新立得中我看到这个包已经安装啦,我彻底没辙啦,求求高手给我指点啊。
我以前在Ubuntu8.04中安装没有碰到问题,在9.10和10.04版就出现这个问题