LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-14-2005, 11:07 AM   #1
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Rep: Reputation: 30
looking for kernel headers 2.6.12


I recently upgraded my kernel to 2.6.12 in order for it to work with my laptop. I now am trying to install vmware and it is asking for the kernel headers for my kernel. Where can i find these? When I attempt a apt-get kernel-headers-2.6.12 there are none. When i just use apt-get install kernel headers i do not see the 2.6.12 kernel listed. Can anyone let me know where to find these kernel headers? Thanks
 
Old 09-14-2005, 11:25 AM   #2
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
How did you install your 2.6.12 kernel? Debian's repositories don't seem to have any such kernels.

For kernels supplied by Debian, one installs the headers by
Code:
apt-get install kernel-headers-$(uname -r)
If you compiled it yourself, the headers should be properly in place.
What does the following command give as it's output?
Code:
ls -l /lib/modules/$(uname -r)/build
 
Old 09-14-2005, 12:33 PM   #3
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
I installed my kernel by following a howto on linux on laptops.

http://home.comcast.net/~canez/d610/

The author of the howto had a deb file of the 2.6.12 kernel and i used it. So i didn't complile it myself.

below is the output of the commands you listed:


# ln -s linux-source-2.6.12 linux
mhdebian:/usr/src# apt-get install kernel-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package kernel-headers-2.6.12


# ls -l /lib/modules/$(uname -r)/build
ls: /lib/modules/2.6.12/build: No such file or directory


/usr/lib/modules# ls
2.4.27-2-386 2.6.12

/lib/modules# ls -l /lib/modules/2.6.12/
total 1096
drwxr-xr-x 3 root root 4096 2005-09-06 14:55 drivers
drwxr-xr-x 10 root root 4096 2005-09-06 14:10 kernel
-rw-r--r-- 1 root root 219965 2005-09-06 15:09 modules.alias
-rw-r--r-- 1 root root 69 2005-09-06 15:09 modules.ccwmap
-rw-r--r-- 1 root root 240201 2005-09-06 15:09 modules.dep
-rw-r--r-- 1 root root 813 2005-09-06 15:09 modules.ieee1394map
-rw-r--r-- 1 root root 1141 2005-09-06 15:09 modules.inputmap
-rw-r--r-- 1 root root 21157 2005-09-06 15:09 modules.isapnpmap
-rw-r--r-- 1 root root 210582 2005-09-06 15:09 modules.pcimap
-rw-r--r-- 1 root root 1135 2005-09-06 15:09 modules.seriomap
-rw-r--r-- 1 root root 104364 2005-09-06 15:09 modules.symbols
-rw-r--r-- 1 root root 264992 2005-09-06 15:09 modules.usbmap
drwxr-xr-x 3 root root 4096 2005-09-06 14:55 net


Any suggestions? Thanks
 
Old 09-14-2005, 01:20 PM   #4
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
I found the following while doing a little googleing:

http://lists.debian.org/debian-kerne.../msg00315.html

Alright folks, I think the packaging is ready to be beaten on by people.
So, unless anyone has any concerns/problems/etc, I'm going to assume
everything's a go for uploading 2.6.12.

The current changes and state of the packaging:
- source package is called linux-2.6
- binary image packages have been renamed from kernel-image-* to
linux-image-*. binary header packages have been renamed from
kernel-headers-* to linux-headers-*.



According to that kerne-headers have been changed to linux-headers, so i do the following

# apt-get install linux-headers
Reading package lists... Done
Building dependency tree... Done
Package linux-headers is a virtual package provided by:
linux-headers-2.6.12-1-k7-smp 2.6.12-6
linux-headers-2.6.12-1-k7 2.6.12-6
linux-headers-2.6.12-1-686-smp 2.6.12-6
linux-headers-2.6.12-1-686 2.6.12-6
linux-headers-2.6.12-1-386 2.6.12-6l# apt-get install linux-headers
Reading package lists... Done
Building dependency tree... Done
Package linux-headers is a virtual package provided by:
linux-headers-2.6.12-1-k7-smp 2.6.12-6
linux-headers-2.6.12-1-k7 2.6.12-6
linux-headers-2.6.12-1-686-smp 2.6.12-6
linux-headers-2.6.12-1-686 2.6.12-6
linux-headers-2.6.12-1-386 2.6.12-6
linux-headers-2.6.12-1 2.6.12-6
linux-headers-2.6-k7-smp 2.6.12-6
linux-headers-2.6-k7 2.6.12-6
linux-headers-2.6-686-smp 2.6.12-6
linux-headers-2.6-686 2.6.12-6
linux-headers-2.6-386 2.6.12-6
You should explicitly select one to install.
E: Package linux-headers has no installation candidate
linux-headers-2.6.12-1 2.6.12-6
linux-headers-2.6-k7-smp 2.6.12-6
linux-headers-2.6-k7 2.6.12-6
linux-headers-2.6-686-smp 2.6.12-6
linux-headers-2.6-686 2.6.12-6
linux-headers-2.6-386 2.6.12-6
You should explicitly select one to install.
E: Package linux-headers has no installation candidate

Could one of these be the headers I need? Thanks
 
Old 09-14-2005, 01:24 PM   #5
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
I believe you are a bit SOL, since that package does not contain the kernel headers.

Your alternatives
A) Build the kernel yourself
B) Ask the person who supplied that package to also supply a package with the kernel headers
C) If possible, use a stock Debian kernel, Debian unstable has 2.6.11 available.
 
Old 09-14-2005, 01:45 PM   #6
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
Okay, so if i get the source of the 2.6.12 kernel by doing apt-get install linux-source-2.6.12, does it not contain the headers? Or are the headers only created once the kernel is compiled? If so, couldn't I just compile the kernel and not move it into place but have the headers? It took me a while to get where I am now and i hate to start over. Thanks for your replies.
 
Old 09-14-2005, 03:43 PM   #7
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
The headers are generated while compiling the kernel.

And 2.6.12 is available from Debian unstable too, I managed to not see it earlier since they have renamed the packages from kernel-image-... and kernel-headers-... to linux-image-... and linux-headers-... respectively.
 
  


Reply



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
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 09:17 AM
Difference between kernel-headers kernel-source twinkers Debian 2 06-18-2005 11:20 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
where can I get kernel-headers for 2.6.7? darkleaf Linux - Software 2 06-30-2004 04:13 PM
kernel-headers linuxham Linux - Software 4 11-24-2003 03:18 PM

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

All times are GMT -5. The time now is 08:25 AM.

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
Open Source Consulting | Domain Registration