LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2009, 05:10 AM   #1
FEL
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Rep: Reputation: 0
linux-headers package on a VPS? (Couldn't find package)


Hello,

I would like to install Virtualbox or VMWare on a VPS that is currently running Debian Etch. As expected, Virtualbox needed to compile the kernel modules. This is where I got stuck.

Code:
$ * No suitable module for running kernel found
$ uname -r
2.6.18-92.1.13.el5.028stab059.6
$ apt-get install linux-headers-2.6.18-92.1.13.el5.028stab059.6
E: Couldn't find package linux-headers-2.6.18-92.1.13.el5.028stab059.6
So, how should one go about obtaining the sources for this system?

Regards,

Thomas
 
Old 04-06-2009, 05:41 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
You can use:
Code:
apt-cache search kernel-image | grep 2.6
apt-get kernel-image-2.x.x
to search and install the kernel image that suits your kernel.
 
Old 04-06-2009, 05:54 AM   #3
FEL
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Ok,

Since this isn't my system per se I'm not exactly sure which kernel that suits it. The system was pre-installed when it was given to me. I'm not 100% sure the following information is relevant in the matter, but just in case:

Code:
$ apt-cache search kernel-image | grep 2.6
kernel-image-2.6-386 - Linux 2.6 image on 486-class - transition package
kernel-image-2.6-686 - Linux 2.6 image on PPro/Celeron/PII/PIII/P4 - transition package
kernel-image-2.6-686-smp - Linux 2.6 image on PPro/Celeron/PII/PIII/P4 SMP - transition package
kernel-image-2.6-amd64-generic - Linux kernel image for version 2.6 on generic x86_64 systems - transition package
kernel-image-2.6-amd64-k8 - Linux kernel image for version 2.6 on AMD64 systems - transition package
kernel-image-2.6-amd64-k8-smp - Linux kernel image for version 2.6 on AMD64 SMP systems - transition package
kernel-image-2.6-em64t-p4 - Linux kernel image for version 2.6 on Intel EM64T systems - transition package
kernel-image-2.6-em64t-p4-smp - Linux kernel image for version 2.6 on Intel EM64T SMP systems - transition package
kernel-image-2.6-k7 - Linux 2.6 image on AMD K7 - transition package
kernel-image-2.6-k7-smp - Linux 2.6 image on AMD K7 SMP - transition package

$ cat /proc/cpuinfo
processor       : [0-7]
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
stepping        : 10
cpu MHz         : 750.028
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx tm2 cx16 xtpr lahf_lm
bogomips        : 4003.06
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:
Further directions on which kernel source to install would be greatly appreciated.

Last edited by FEL; 04-06-2009 at 06:00 AM.
 
Old 04-06-2009, 06:41 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
el5? That sounds like a RedHat kernel, not a Debian.

bathory was mistaken, you want just the headers, not a new kernel, right? Try linux-headers-2.6.18-6 .. though you may need to switch to a Debian kernel as I am not sure that it will work.
 
Old 04-06-2009, 06:57 AM   #5
FEL
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Redhat? Weird ...

Code:
$ cat /etc/issue
Debian GNU/Linux 4.0
I tried:
Code:
$ apt-get install linux-headers-2.6.18-6
[...]
Setting up linux-headers-2.6.18-6 (2.6.18.dfsg.1-24) ...
But Virtualbox still could not find a suitable module for the kernel:
Code:
$ /etc/init.d/vboxdrv setup
Recompiling VirtualBox kernel module:
* Look at /var/log/vbox-install.log to find out what went wrong

cat /var/log/vbox-install.log
Makefile:143: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.

$ export KERN_DIR="/usr/src/linux-headers-2.6.18-6/"
Now I get a new error when trying to setup vboxdrv:
Code:
Makefile:181: *** Unable to find the folder to install the support driver to.  Stop.
Perhaps this is where I head on over to the Virtualbox support forum?

Last edited by FEL; 04-06-2009 at 07:13 AM.
 
Old 04-06-2009, 07:25 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
In fact
Quote:
$ uname -r
2.6.18-92.1.13.el5.028stab059.6
is a CentOS kernel. I guess the real server in running on Debian and the VPS is from openvz that uses CentOS.
 
Old 04-06-2009, 07:34 AM   #7
FEL
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Ok,

Although I'm not quite sure how to use that information. I tried:
Code:
$ wget ftp://ftp.sunet.se/pub/os/Linux/distributions/centos/5.2/updates/i386/RPMS/kernel-headers-2.6.18-92.1.13.el5.i386.rpm
$ alien kernel-headers-2.6.18-92.1.13.el5.i386.rpm
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
warning: kernel-headers-2.6.18-92.1.13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
hostname: Unknown host
hostname: Unknown host
kernel-headers_2.6.18-93.1_i386.deb generated

$ dpkg -i kernel-headers_2.6.18-93.1_i386.deb
Selecting previously deselected package kernel-headers.
(Reading database ... 19312 files and directories currently installed.)
Unpacking kernel-headers (from kernel-headers_2.6.18-93.1_i386.deb) ...
dpkg: error processing kernel-headers_2.6.18-93.1_i386.deb (--install):
 trying to overwrite `/usr/include/asm/mtrr.h', which is also in package linux-kernel-headers
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 kernel-headers_2.6.18-93.1_i386.deb
 
Old 04-06-2009, 08:40 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Try removing linux-kernel-headers first? Be careful though, it may remove more than you'd like because of dependencies.
 
Old 04-06-2009, 11:45 AM   #9
FEL
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
I removed linux-kernel-headers (and carefully noted which other packages that were uninstalled). After that I was able to install the .deb file I generated using alien earlier:

Code:
dpkg -i kernel-headers_2.6.18-93.1_i386.deb
[...]
Setting up kernel-headers (2.6.18-93.1) ...
But the Virtualbox kernel module still won't compile. Yet again it asks me to specify a KERN_DIR, which, this time around is rather tricky because I can't seem to find any linux-kernel-headers folder created by the newly installed .deb package.

Instead I extracted the .deb file to a directory which I specified as KERN_DIR. However, just as with the linux-headers-2.6.18-6 package, the result when trying to setup vboxdrv is:

Code:
Makefile:181: *** Unable to find the folder to install the support driver to.  Stop.

Last edited by FEL; 04-06-2009 at 11:54 AM.
 
  


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 returning: "couldn't find package linux-headers-2.6..." compused Linux - Distributions 12 03-06-2009 10:04 PM
Compilation aborted - Please read the FAQ for linux-libc-headers package ???? idardh Linux - Software 3 07-17-2006 07:31 PM
I need the kernel headers package for 2.6.13-7smp Thaidog Linux - General 2 06-25-2006 02:24 PM
kernel-headers package? mike2265 Linux - Newbie 1 03-17-2005 04:02 PM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 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
Open Source Consulting | Domain Registration