xtables-addon 安装失败

xtables-addon 安装失败

我有一台装有 ubuntu 12.04 的服务器,当我尝试使用此命令安装 xtables-addon 时module-assistant auto-install xtables-addons-source出现此错误

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.

如果我运行 uname -r 我会得到以下信息:

3.2.13-grsec-xxxx-grs-ipv6-64

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

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

谢谢

答案1

这是我修复此问题的方法:

将来源更改为默认来源这里

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`

由此获得启发关联

相关内容