В общем решил я собрать себе ядро 2.6.25 скачал пакет linux-source-2.6.25. Распаковал, откофигурил. Стал собирать пакет командой
fakeroot make-kpkg --initrd --revision=coustom.1.0 kernel_image kernel_headers
Собрал ядро и хедеры. Так как ссылка /lib/modules/2.6.25/build (и в source) указывали на сорцы откуда я собирал я их удалил и перенаправил на папку с хедерами. При попытки собрать дрова Нвидии получил ошибку. Полез в гугл нашел там что там надо патчить дрова, пропатчил. В итоге все равно получаю ошибку
Using: nvidia-installer ncurses user interface -> License accepted. -> There appears to already be a driver installed on your system (version: 169. 12). As part of installing this driver (version: 169.12), the existing driv er will be uninstalled. Are you sure you want to continue? ('no' will abort installation) (Answer: Yes) -> No precompiled kernel interface was found to match your kernel; would you li ke the installer to attempt to download a kernel interface for your kernel f rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No) -> No precompiled kernel interface was found to match your kernel; this means that the installer will need to compile a new kernel interface. -> Performing CC sanity check with CC="cc". -> Performing CC version check with CC="cc". -> Using the kernel source path '/usr/src/linux-headers-2.6.25/', as specified by the SYSSRC environment variable. -> Kernel source path: '/usr/src/linux-headers-2.6.25/' -> Kernel output path: '/usr/src/linux-headers-2.6.25/' ERROR: If you are using a Linux 2.4 kernel, please make sure you either have configured kernel sources matching your kernel or the correct set of kernel headers installed on your system. If you are using a Linux 2.6 kernel, please make sure you have configured kernel sources matching your kernel installed on your system. If you specified a separate output directory using either the "KBUILD_OUTPUT" or the "O" KBUILD parameter, make sure to specify this directory with the SYSOUT environment variable or with the equivalent nvidia-installer command line option. Depending on where and how the kernel sources (or the kernel headers) were installed, you may need to specify their location with the SYSSRC environment variable or the equivalent nvidia-installer command line option. ERROR: Installation has failed. Please see the file
Возращение симлинков в предыдущее положение (то есть на сорцы) результатов не дало.
Не собираются так же модули к VirtualBox. Не подскажете в какую сторону копать.