Results 1 to 3 of 3
Thread: Problem to install Linux headers
Enjoy an ad free experience by logging in. Not a member yet? Register.
Problem to install Linux headers
I have ubuntu 9.04
I have compiled kernel 2.6.32 and I compiled it from some directory other than /usr/src,
for example /home/user/active_kernel/
I run these commands to compile kernel >(after setting .config file with make menuconfig)
Everything worked fine, system boots. Now I wanted to install nvidia drivers and it wants kernel headers, so I looked how to install kernel headers and I found this:
sudo apt-get install linux-headers-$(uname -r)
But when I run this I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-headers-2.6.32
When I run 'uname -r' I get
I know that linux headers contain definitions for linux kernel files, so what is the procedure to install them for specific kernel version ? Can it be done off line, download headers and install manually ??
The header files define structures and constants that are needed for building most standard programs. The header files are also needed for rebuilding the kernel. So if you already compiled and installed your new kernel it means your header is /home/user/active_kernel/. Try to move/copy it to /usr/src or to create a symlink.
You are 100% right, I came to same conclusion today