ubuntu下安装virtualbox-3.2_3.2.6-63112_Ubuntu_lucid_amd64.deb,提示内核模块编译失败?
什么原因如何解决?提示如下:CompilationofthekernelmoduleFAILED!││││VirtualBoxwillnotstartuntilthisp...
什么原因如何解决?提示如下:
Compilation of the kernel module FAILED! │
│ │
│ VirtualBox will not start until this problem is fixed. Please consult /var/log/vbox-install.log to find out why the kernel │
│ module does not compile. Most probably the kernel sources were not found. Install them (the package name is probably │
│ linux-headers-<version> whereby <version> can be determined by 'uname -r') and execute │
│ │
│ /etc/init.d/vboxdrv setup │
│ │
│ as root. 展开
Compilation of the kernel module FAILED! │
│ │
│ VirtualBox will not start until this problem is fixed. Please consult /var/log/vbox-install.log to find out why the kernel │
│ module does not compile. Most probably the kernel sources were not found. Install them (the package name is probably │
│ linux-headers-<version> whereby <version> can be determined by 'uname -r') and execute │
│ │
│ /etc/init.d/vboxdrv setup │
│ │
│ as root. 展开
2个回答
展开全部
出现这种问题是因为内核头文件包没有安装,用apt-get在线安装这个包就可以了,在错误提示信息里面有说明(log文件里面的说明会更详细)。这个包的名字是以linux-headers开头的,先查询包的完整名字(因为完整名字不同的内核版本都不一样),再用apt-get install来安装。
更多追问追答
追问
如何查询包的完整名字?
追答
命令:apt-cache search linux-headers-*
Ubuntu 16.04以后版本:apt search linux-headers-*
2018-02-04
展开全部
安装linux-headers
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询