Linux - DistributionsThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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
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.
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
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
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.