在 Ubuntu 14.04 上安装 VirtualBox 失败

在 Ubuntu 14.04 上安装 VirtualBox 失败

我在 Ubuntu 14.04 上安装 Virtual Box 时遇到问题,内核为 3.19.0-26 x86_64:

sudo apt-cache policy virtualbox

sudo apt-get install virtualbox

Setting up virtualbox (4.3.10-dfsg-1ubuntu5) ...
 * Stopping VirtualBox kernel modules    [ OK ] 
 * Starting VirtualBox kernel modules 
 * No suitable module for running kernel found


Building initial module for 3.19.0-26-generic
Error! Bad return status for module build on kernel: 3.19.0-26-generic (x86_64)
Consult /var/lib/dkms/virtualbox/4.3.10/build/make.log for more information.
 * Stopping VirtualBox kernel modules       [ OK ] 
 * Starting VirtualBox kernel modules                                                                                                                              * No suitable module for running kernel found [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.



$ grep -i error /var/lib/dkms/virtualbox/4.3.10/build/make.log
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: error: ‘alloc_netdev’ undeclared (first use in this function)
make[2]: *** [/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.o] Error 1
make[1]: *** [/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp] Error 2
make: *** [_module_/var/lib/dkms/virtualbox/4.3.10/build] Error 2


ls -l /etc/init.d/vboxdrv 
ls: cannot access /etc/init.d/vboxdrv: No such file or directory

有人可以建议如何进行吗?

相关内容