LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-20-2008, 08:09 AM   #1
bano6010
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
Downloading Correct Linux-Headers


Hello,

I am trying to install the Linux headers for my version of Lenny. Although I have no idea what they are or what they are used for, I need them for an install and cant seem to get the ones I need. Heres what I tried.

In a terminal I typed "uname -r" and got "2.6.24-1-amd64". After that I tried "apt-get install linux-headers-2.6.24-1-amd64" and was returned with no such package. I ran "apt-cache search linux-headers" and when I looked at the list I saw only "2.6.26" files. There was "linux-headers-2.6-amd64 which I tired and didn't work. Are there headers available for 2.6.24-1-amd64 or is there a way to get my kernel up to 2.6.26?

Any help would be greatly appreciated. Thanks!
 
Old 11-20-2008, 08:38 AM   #2
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
All other things being equal, it's probably easiest to simply update your kernel to 2.6.26 and then install those headers. You can install the kernel the same way you install the headers: apt-get install linux-image-2.6.26-1-amd64 linux-headers-2.6.26-1-amd64. If you've compiled any modules (for sound or NVIDIA or wireless), you will need to build new ones, but assuming that you did it once, it's not too hard.
 
Old 11-20-2008, 08:53 AM   #3
bano6010
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I ran "apt-get install linux-image-2.6.26-1-amd64" and this is the error I got:

Server:~# apt-get install linux-image-2.6.26-1-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-2.6.26-1-amd64 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

What I read from that is that I already have it. But when I run "uname -r" again it still produces "2.6.24-1-amd64". Am I doing something wrong or should the system be good to go?

Thanks.
 
Old 11-20-2008, 09:27 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
If uname is showing 2.6.24 instead of 2.6.26 did you reboot the system after updating the kernel to the newer version ?
The one time on a Linux system where a reboot is definitely required is when you update the kernel.

the 2.6.24 headers have been removed from the repository, you may have them on your install media if you really need that old version.
You are better off figuring out why you have installed a newer kernel and are not running it..



aptitude update
aptitude install build-essential module-assistant
m-a update
m-a prepare


that should download and install the proper kernel headers for your system .
to update them in the future, if your kernel gets updated.. just do the last two steps
 
Old 11-20-2008, 08:17 PM   #5
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 60
Quote:
Originally Posted by bano6010 View Post
I ran "apt-get install linux-image-2.6.26-1-amd64" and this is the error I got:

Server:~# apt-get install linux-image-2.6.26-1-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-2.6.26-1-amd64 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

What I read from that is that I already have it. But when I run "uname -r" again it still produces "2.6.24-1-amd64". Am I doing something wrong or should the system be good to go?

Thanks.
Ok, so now you have two kernels installed (not necessarily a bad thing). Reboot and make sure to choose the 2.6.26-1 version, rather than the 2.6.24 version. You should be able to install the headers for the 2.6.26-1 as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find correct Qt headers! drussell6 Linux - Software 2 07-03-2008 07:38 AM
Downloading message headers only with Evolution freekamail Linux - Software 1 03-31-2008 03:58 PM
Making sure the correct kernel headers are used djgerbavore Fedora 2 09-06-2007 08:52 AM
Downloading the correct version for install? Sutur Mandriva 5 03-24-2007 07:04 AM
KDE headers are not correct? kuratkull Linux - Software 0 07-03-2004 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration