免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2706 | 回复: 2
打印 上一主题 下一主题

[求助]Error! Your kernel source for kernel 2.6.31-21-generic cannot be found [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-27 14:29 |只看该作者 |倒序浏览
本帖最后由 linuxdiy 于 2010-04-27 14:36 编辑

我用的是ubuntu9.10安装其他东西出先找个问题,看了网上不少办法都不管事,我是从源安装的virtualbox,以前用的都没事
ls /etc/init.d/virtualbox-ose
virtualbox-ose              virtualbox-ose-guest-utils
错误如下
Setting up virtualbox-ose-source (3.0.8-dfsg-1ubuntu1) ...
Adding modules to DKMS build system
Doing initial module builds

Error! Your kernel source for kernel 2.6.31-21-generic cannot be found at
/lib/modules/2.6.31-21-generic/build or /lib/modules/2.6.31-21-generic/source.
dpkg: error processing virtualbox-ose-source (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up virtualbox-ose-guest-source (3.0.8-dfsg-1ubuntu1) ...
Adding Module to DKMS build system
Doing initial module build

Error! Your kernel source for kernel 2.6.31-21-generic cannot be found at
/lib/modules/2.6.31-21-generic/build or /lib/modules/2.6.31-21-generic/source.
dpkg: error processing virtualbox-ose-guest-source (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
virtualbox-ose-source
virtualbox-ose-guest-source
E: Sub-process /usr/bin/dpkg returned an error code (1)

论坛徽章:
0
2 [报告]
发表于 2010-04-27 15:59 |只看该作者
看一下是不是没安装kernel headers
apt-get install kernel-headers-`uname -r`

论坛徽章:
0
3 [报告]
发表于 2010-05-12 15:16 |只看该作者
都有的,后来找到问题是virtualboxc出的问题,卸载了后,我升级了系统,重装virtualbox就没事了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP