我有一个带有ubuntu12.04的服务器,当我尝试使用这个命令module-assistant auto-install xtables-addons-source安装xtables时,我会得到以下错误
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的代码,就会得到以下内容:
3.2.13-grsec-xxxx-grs-ipv6-64我认为我的主机已经修改了已安装的内核ubuntu。
我怎么才能解决这个问题?
谢谢
发布于 2012-08-10 23:40:51
我就是这样解决这个问题的:
将源从这里更改为默认
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`从这个链接的内部
https://askubuntu.com/questions/174315
复制相似问题