首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >xtables addon安装失败

xtables addon安装失败
EN

Ask Ubuntu用户
提问于 2012-08-10 15:36:22
回答 1查看 2.3K关注 0票数 0

我有一个带有ubuntu12.04的服务器,当我尝试使用这个命令module-assistant auto-install xtables-addons-source安装xtables时,我会得到以下错误

代码语言:javascript
复制
Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use.
If the running kernel has been shipped with the Debian distribution, please install the package linux-headers-3.2.13-grsec-xxxx-grs-ipv6-64. If your kernel
 source tree (or headers) is located in some non-usual location,please set the KERNELDIRS environment variable to the path of this directory, or (alternatively) specify the source directory
 we build for with the --kernel-dir option in module-assistant calls.

如果我运行名为-r的代码,就会得到以下内容:

代码语言:javascript
复制
3.2.13-grsec-xxxx-grs-ipv6-64

我认为我的主机已经修改了已安装的内核ubuntu。

我怎么才能解决这个问题?

谢谢

EN

回答 1

Ask Ubuntu用户

发布于 2012-08-10 23:40:51

我就是这样解决这个问题的:

将源从这里更改为默认

代码语言:javascript
复制
apt-get update
apt-get install linux-image-server
cd /etc/grub.d/
mv 06_OVHkernel /root/
update-grub
reboot
apt-get install linux-headers-`uname -r`

从这个链接的内部

票数 -1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/174315

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档