linux-headers package on a VPS? (Couldn't find package)
Linux - NewbieThis 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
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.
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?
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.
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.
$ 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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.