Сбой установки 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`

insiperd по этой ссылке

Другие вопросы по тегам