LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 12-28-2008, 03:39 PM   #1
compused
Member
 
Registered: Oct 2006
Location: Melbourne Australia
Distribution: centos and redhat 8
Posts: 76

Rep: Reputation: 15
apt-get returning: "couldn't find package linux-headers-2.6..."


Hello there
The distrubution in use is based on debian & called xandros, running in an "eee pc". I am trying to install an application but am having problem with linux headers. Apt-get update has been run without problems.

The command:
Code:
apt-get install linux-headers-`uname -r`
returns:
Couldn't find package linux-headers-2.6.21.4-eeepc
The file in /boot is consistent with the stated linux version above ie
Code:
/boot/config-2.6.21.4-eeepc
There is a line of text in /boot/config-2.6.21.4-eeepc:
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
that refers to a non-existent file ie there is no:
/lib/modules/2.6.21.4-eeepc/.config

One suggestion from someone with a similar problem in another forum was to run:
Code:
cp /boot/[filename] /usr/src/linux/.config; cd /usr/src/linux; make oldconfig; make
...??? so would it be safe to copy (& rename) /boot/config-2.6.21.4-eeepc to:
Code:
/lib/modules/2.6.21.4-eeepc/.config 
and then run:
make oldconfig; make
Also, the command:
Code:
apt-cache search linux-headers
shows no reference to 2.6.21.4, ie:
linux-headers-2.6-486 - Header files for Linux 2.6 on x86
linux-headers-2.6-486-etchnhalf - Header files for Linux 2.6-etchnhalf on x86
linux-headers-2.6-686 - Header files for Linux 2.6 on PPro/Celeron/PII/PIII/P4
linux-headers-2.6-686-bigmem - Header files for Linux 2.6 on PPro/Celeron/PII/PIII/P4
linux-headers-2.6-686-bigmem-etchnhalf - Header files for Linux 2.6-etchnhalf on PPro/Celeron/PII/PIII/P4
linux-headers-2.6-686-etchnhalf - Header files for Linux 2.6-etchnhalf on PPro/Celeron/PII/PIII/P4
linux-headers-2.6-amd64 - Header files for Linux 2.6 on AMD64
linux-headers-2.6-amd64-etchnhalf - Header files for Linux 2.6-etchnhalf on AMD64
linux-headers-2.6-k7 - Header files for Linux 2.6 on AMD K7
linux-headers-2.6-vserver-686 - Header files for Linux 2.6 on PPro/Celeron/PII/PIII/P4
linux-headers-2.6-vserver-k7 - Header files for Linux 2.6 on AMD K7
linux-headers-2.6-xen-686 - Header files for Linux 2.6 on i686
linux-headers-2.6-xen-vserver-686 - Header files for Linux 2.6 on i686
linux-headers-2.6.18-6 - Common header files for Linux 2.6.18
linux-headers-2.6.18-6-486 - Header files for Linux 2.6.18 on x86
linux-headers-2.6.18-6-686 - Header files for Linux 2.6.18 on PPro/Celeron/PII/PIII/P4
linux-headers-2.6.18-6-686-bigmem - Header files for Linux 2.6.18 on PPro/Celeron/PII/PIII/P4
linux-headers-2.6.18-6-all - All header files for Linux 2.6.18
linux-headers-2.6.18-6-all-i386 - All header files for Linux 2.6.18
linux-headers-2.6.18-6-amd64 - Header files for Linux 2.6.18 on AMD64
linux-headers-2.6.18-6-k7 - Header files for Linux 2.6.18 on AMD K7
linux-headers-2.6.18-6-vserver - Common header files for Linux 2.6.18
linux-headers-2.6.18-6-vserver-686 - Header files for Linux 2.6.18 on PPro/Celeron/PII/PIII/P4
linux-headers-2.6.18-6-vserver-k7 - Header files for Linux 2.6.18 on AMD K7
linux-headers-2.6.18-6-xen - Common header files for Linux 2.6.18
linux-headers-2.6.18-6-xen-686 - Header files for Linux 2.6.18 on i686
linux-headers-2.6.18-6-xen-vserver - Common header files for Linux 2.6.18
linux-headers-2.6.18-6-xen-vserver-686 - Header files for Linux 2.6.18 on i686
linux-headers-2.6.24-etchnhalf.1-486 - Header files for Linux 2.6.24 on x86
linux-headers-2.6.24-etchnhalf.1-686 - Header files for Linux 2.6.24 on PPro/Celeron/PII/PIII/P4
linux-headers-2.6.24-etchnhalf.1-686-bigmem - Header files for Linux 2.6.24 on PPro/Celeron/PII/PIII/P4
linux-headers-2.6.24-etchnhalf.1-all - All header files for Linux 2.6.24
linux-headers-2.6.24-etchnhalf.1-all-i386 - All header files for Linux 2.6.24
linux-headers-2.6.24-etchnhalf.1-amd64 - Header files for Linux 2.6.24 on AMD64
linux-headers-2.6.24-etchnhalf.1-common - Common header files for Linux 2.6.24
Any tips would be appreciated.
Michael
 
Old 12-28-2008, 06:57 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
To get the linux headers ...

sudo apt-get install linux-kernel-headers

what you really want to do is upgrade first, the repository may not keep old packages around for long after the upgrade becomes available.
 
Old 12-28-2008, 07:12 PM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
I don't know the exact solution with the eeepc, but I know Simon Bridge is quite a way off. Wait for better advice.

While you wait, you may want to read through this:

http://wiki.debian.org/DebianEeePC

Looks to me like someone may have switched you over to true Debian. What a blessing that would be.

Last edited by rickh; 12-28-2008 at 07:16 PM.
 
Old 12-28-2008, 11:57 PM   #4
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Originally Posted by rickh View Post
I don't know the exact solution with the eeepc, but I know Simon Bridge is quite a way off. Wait for better advice.
Really? (Which bit?) It worked for me?!

My main point was that I didn't need to specify the kernel version for the package, the repo provided a meta-package which would work out what to do.

Unfortunately, I cannot test it now as I got rid of Xandros a while ago.

It's quite tricky to find confirmation of the command for Xandros - most info seems to be for Debian or Ubuntu... eg see:

http://forum.eeeuser.com/viewtopic.php?id=46649&p=14 post #327
sudo apt-get install linux-headers-eeepc
... which is if using ubuntu-intrepid repos.

Perhaps this is outdated now?
Do you have a reference for how far out this advice is?

Quote:
While you wait, you may want to read through this:

http://wiki.debian.org/DebianEeePC

Looks to me like someone may have switched you over to true Debian. What a blessing that would be.
What is it about the previous post suggests that this may have happened? Surely the proliferation of *-eee packages suggests that this machine is still using the Asus repos? [edit: I stand corrected - Ubuntu and Debian repos both use the eee designation in some form as well.]

Still, it would be nice to check this... a missing or incompatible repo would be one of the other things that could produce this error. But so would just getting the package name wrong.

Last edited by Simon Bridge; 12-29-2008 at 12:00 AM.
 
Old 12-29-2008, 12:57 AM   #5
compused
Member
 
Registered: Oct 2006
Location: Melbourne Australia
Distribution: centos and redhat 8
Posts: 76

Original Poster
Rep: Reputation: 15
HI Simon and Rick
With that long list found in apt-cache, and the above information, I was game enough to try:
apt-get install linux-headers-2.6.24.1*
(ie with the asterisk) and it seemed happy enough...

hopefully I haven't broken it...as am yet to reboot. Thanks very much for both of your efforts

Regards
Michael
 
Old 12-29-2008, 06:56 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Cool - let us know how it went.
 
Old 12-29-2008, 08:40 AM   #7
compused
Member
 
Registered: Oct 2006
Location: Melbourne Australia
Distribution: centos and redhat 8
Posts: 76

Original Poster
Rep: Reputation: 15
Hi...am living up to my nom-de-plume here...to be consistent with `uname -r` I should have specified:
linux-headers-2.6.21.4*
not
linux-headers-2.6.24.1*

Anyway, all is well.

Someone said you only need the linux-headers if recompiling the kernel. There was probably no need to recompile the kernel to install the app in question (freepbx)
Thanks again
Michael
 
Old 01-01-2009, 08:42 AM   #8
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Some drivers need kernel headers to compile.
Well done anyway.
 
Old 01-04-2009, 07:03 AM   #9
compused
Member
 
Registered: Oct 2006
Location: Melbourne Australia
Distribution: centos and redhat 8
Posts: 76

Original Poster
Rep: Reputation: 15
Hi Simon (or anyone!)
I am a bit worried about not having access to the kernel-headers, in case I do need to install drivers in future. I've tried adding new sources to the sources.list.

I also tried to recreate the headers via this method:
Code:
cp /boot/config-2.6.21.4-eeepc /usr/src/.config
cd /usr/src
make oldconfig; make dep

However when I ran:
Code:
make oldconfig; make dep
I got:
Code:
make: *** No rule to make target `oldconfig'.  Stop.
make: *** No rule to make target `dep'.  Stop.

I tried to find a file called 'makefile' but couldn't

Any advice?
Rgds again
Michael

Last edited by compused; 01-04-2009 at 07:05 AM.
 
Old 01-04-2009, 07:46 AM   #10
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
If you upgrade your kernel, you'll be able to get the headers for that?
Of course, you can always get the whole source code and hand-compile a kernel.
 
Old 03-06-2009, 03:53 AM   #11
compused
Member
 
Registered: Oct 2006
Location: Melbourne Australia
Distribution: centos and redhat 8
Posts: 76

Original Poster
Rep: Reputation: 15
solution is included at:
http://whirlpool.net.au/wiki/?tag=freepbx_eeepc
rgds
compused
 
Old 03-06-2009, 07:28 PM   #12
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
There's a bit of a hunt to that solution - so I'll reproduce it here:
Quote:
When typing:
apt-cache search linux-headers*
it shows earlier or later kernel entries in apt-cache, but none in the range of the 2.6.21.whatever

I eventually got the linux headers after googling and adding an additional repository to my /etc/apt/sources.list file, but I was later told by ASUS support that it was not an official ASUS site. So this may be a better link to add to the sources.list file:
deb http://cle.linux.org.tw/EeePC/1.1 v1.1 main
(which is the same as the one listed in the reference http://wiki.eeeuser.com/addingxandrosrepos apart from the fact that it references the deb binary files ie deb http:// rather than the deb source files ie deb-src http:// )

After adding the above to the sources.list file, run:
apt-get update
... however - the report in post #7 seems to indicate that the repos now have the packages.

The page linked refers to the status as of jan this year - but post 7 was dec last year - seems odd. The author, however, did admit to having made a number of mistakes (not documented) so we cannot tell what comes from which.

Hopefully this information will be useful where

apt-get install linux-headers-2.6.24.1*
 
Old 03-06-2009, 10:04 PM   #13
compused
Member
 
Registered: Oct 2006
Location: Melbourne Australia
Distribution: centos and redhat 8
Posts: 76

Original Poster
Rep: Reputation: 15
thanks for pasting that Scott

I am not sure why I said 'all was well' in post 7...it might be bec. I had finished compiling freepbx, which I don't think required the linux headers for the particular config. freepbx was compiled in.

apt-get install linux-headers-2.6.24.1* was for the *wrong* kernel

Kind regards
Michael
 
  


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
apt-get "recommends" package install question in Lenny kushalkoolwal Debian 8 12-28-2008 10:09 PM
"make headers_check" gives errors during "5.5.1 Installation of Linux API headers " void_man() Linux From Scratch 3 09-26-2007 09:16 PM
sudo apt-get install acroread returns "Couldn't find package acroread" swiadek Ubuntu 3 02-13-2006 10:52 AM
xscreensaver - "couldn't find X11 headers" error teal Linux - Newbie 2 07-02-2003 03:11 AM


All times are GMT -5. The time now is 04:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration