LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install linux headers (http://www.linuxquestions.org/questions/linux-newbie-8/install-linux-headers-628188/)

driftboy 03-15-2008 03:36 AM

install linux headers
 
hi,

I am trying to do an apt install for linux headers to compile a driver for my nvidia card.

uname -r
linux 2.6.18-5

apt-get install linux-source-2.6.18

cd /usr/src

bzip2 -cd linux* | tar xvf -

ln -s linux-source-2.6.18 linux

apt-get install linux-headers-2.6.18-5 linux-headers-2.6.18-5-386

E: Couldn't find package linux-headers-2.6.18-5-386


what did i do wrong?

b0uncer 03-15-2008 04:11 AM

There seems to be no package called linux-headers-2.6.18.5-386. Isn't it enough without it, or would you need exactly that package? Did you try just "apt-get install linux-headers"?

You should be able to use
Code:

apt-cache search linux-headers
to see what's available, and then install one of the packages listed..

driftboy 03-15-2008 12:52 PM

did it after the apt-cache search linux-headers,

apt-get install linux-headers-2.6.18-5-686 linux-headers-2.6.18-5-686

thank you for the help :)


All times are GMT -5. The time now is 09:16 PM.