Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I cannot get the perl script to work it says i need kernel headers, however I apt'd the kernel headers for the kernel and the script says
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.21-2-686). Even if the module were to compile
successfully, it would not load into the running kernel.
uname -a
Linux Cyclops 2.6.21-2-686 #1 SMP Wed Jul 11 03:53:02 UTC 2007 i686 GNU/Linux
The 2.6.21-2 kernel has been slowly evolving and is now at 2.6.21-6, perhaps you have not done updates and still have an older version of the linux-image but apt installed the latest version of headers. Also, I have found in the past that if I left an older kernel installed when manually upgrading to another kernel, there would be a /usr/src/linux directory with configuration for the older kernel. When I would remove the older kernel including /lib/modules/old-kernel which would stick around if I had compiled any of my own modules, then the /usr/src/linux directory would disappear and so would compile errors (in rare cases).
Quote:
Originally Posted by marco18
Which distro of debian is that??? I haven't seen that anywhere.
Debian testing (Lenny)
Last edited by Junior Hacker; 08-05-2007 at 01:16 PM.
ii linux-headers-2.6.22-1 2.6.22-3 Common header files for Linux 2.6.22
ii linux-headers-2.6.22-1-686 2.6.22-3 Header files for Linux 2.6.22 on PPro/Celero
ii linux-image-2.6-686 2.6.22+9 Linux 2.6 image on PPro/Celeron/PII/PIII/P4
ii linux-image-2.6.18-4-686 2.6.18.dfsg.1-12etch2 Linux 2.6.18 image on PPro/Celeron/PII/PIII/
ii linux-image-2.6.21-2-686 2.6.21-6 Linux 2.6.21 image on PPro/Celeron/PII/PIII/
ii linux-image-2.6.22-1-686 2.6.22-3 Linux 2.6.22 image on PPro/Celeron/PII/PIII/
ii linux-kbuild-2.6.21 2.6.21-1 Kbuild infrastructure for Linux 2.6.21
ii linux-kbuild-2.6.22 2.6.22-1 Kbuild infrastructure for Linux 2.6.22
Oh and I am running Unstable packages if that helps.
let me tell you once again, you would need to update the kernel.
I'll explain why.
the vmware detects your kernel as 2.6.21-2-SMP and the headers you have installed are naturally for 2.6.21-2 which is ofcourse the correct version but when you compare both of them the SMP is extra. There is no diff. between the SMP kernel headers and one without it.
So now if you update the kernel to a single processor kernel it should work properly.
OR
you could also create a dir named 2.6.21-2-SMP where you personally copy all the linux headers.
w3bd3vil
You're out to lunch, when I type uname -a, I will also get SMP, as it should be. The problem is that there are three kernels installed, one is 2.6.21, another is 2.6.22, and yet another is 2.6.18. The problem is that there is only source installed for the 2.6.22 kernel. But when the "uname -a" command was issued, obviously the OS was booted to another kernel --> 2.6.21.
Either boot to the 2.6.22 kernel to install Vmware, or install headers for the 2.6.21 kernel if that's the one you prefer.
I use the 2.6.22 kernel without issues, which is from Debian Unstable. What I do after a fresh installation is install the newest kernel from Unstable repositories and re-boot with that kernel, then using synaptic, I remove all packages associated with the prior kernel. For you, you should remove these packages if you want to just stick to the 2.6.22 kernel:
Quote:
linux-kbuild-2.6.21 2.6.21-1 Kbuild infrastructure for Linux 2.6.21
linux-image-2.6.21-2-686 2.6.21-6 Linux 2.6.21 image on PPro/Celeron/PII/PIII/
linux-image-2.6.18-4-686 2.6.18.dfsg.1-12etch2 Linux 2.6.18 image on PPro/Celeron/PII/PIII/
I also don't have "linux-image-2.6-686 2.6.22+9 Linux 2.6 image on PPro/Celeron/PII/PIII/P4", because either I removed it or it was a dependency for the original kernel and is not necessary for the Unstable kernel.
EDIT: BTW: I mentioned I use the 2.6.21 kernel, and then said I use the 2.6.22 kernel, it's because I run Debian testing on three computers, all were installed at different times and have different kernels.
Last edited by Junior Hacker; 08-06-2007 at 02:13 PM.
Also, if you do decide to go with the 2.6.22 kernel, you will be required to install/upgrade "libc6-dev" package. If this package is already installed from when you were running the 2.6.21 or prior kernel, it is best to remove it and it's dependency "linux-libc-dev", then run "apt-get update" with unstable repositories un-commented in you sources.list, then re-install those packages while running the 2.6.22 kernel. gcc also needs to be installed.
is my sources.list file...
Package linux-headers-2.6.21-2-686 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package linux-headers-2.6.21-2-686 has no installation candidate
Keep in mind, if you leave the "unstable" lines un-commented all the time, you'll end up with an unstable system. If you want to stay with testing, make a copy of all your lines in /etc/apt/sources.list and change out "unstable" for "testing" and only un-comment the unstable line when you want something specific from the unstable repository.
Last edited by Junior Hacker; 08-08-2007 at 03:01 PM.
Also, if you want to stick to testing, you should also have a line for testing/updates. Below is how my testing sources.list looks like, I'm using mirrors closer to home rather than using the Debian main mirror. Here is a list of all Debian mirrors.
Code:
####################
##### From DVD #####
####################
deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot amd64 DVD Binary-1 20070528-11:01]/ lenny contrib main
###############################
##### From Debian Mirrors #####
###############################
deb http://debian.yorku.ca/debian/ testing main contrib non-free
deb-src http://debian.yorku.ca/debian/ testing main contrib non-free
#deb http://debian.yorku.ca/debian/ unstable main contrib non-free
#deb-src http://debian.yorku.ca/debian/ unstable main contrib non-free
##################################
##### Kernel Archive Builder #####
##################################
#gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 29F335B3
#gpg --armor --export 29F335B3 | apt-key add -
#deb http://kernel-archive.buildserver.net/debian-kernel/ trunk main
####################
##### Security #####
####################
deb http://debian.mirror.iweb.ca/debian-security/ testing/updates main contrib non-free
deb-src http://debian.mirror.iweb.ca/debian-security/ testing/updates main contrib non-free
##################
##### Kernel #####
##################
deb http://mirrors.kernel.org/debian/ testing main contrib non-free
deb-src http://mirrors.kernel.org/debian/ testing main contrib non-free
#deb http://mirrors.kernel.org/debian/ unstable main contrib non-free
#deb-src http://mirrors.kernel.org/debian/ unstable main contrib non-free
######################
##### Multimedia #####
######################
#gpg --keyserver hkp://wwwkeys.eu.pgp.net --recv-keys 1F41B907
#gpg --armor --export 1F41B907 | apt-key add -
deb ftp://mirrors.powersource.cx/pub/debian-multimedia/ testing main
deb-src ftp://mirrors.powersource.cx/pub/debian-multimedia/ testing main
######################
##### Unofficial #####
######################
#gpg --keyserver subkeys.pgp.net --recv-keys 6823D007
#gpg --armor --export 6823D007 | apt-key add -
deb http://ftp.debian-unofficial.org/debian/ testing main contrib non-free restricted
deb-src http://ftp.debian-unofficial.org/debian/ testing main contrib non-free restricted
##### Kirya #####
#gpg --keyserver wwwkeys.eu.pgp.net --recv-keys FBABB737
#gpg --export -a FBABB737 | apt-key add -
#deb http://packages.kirya.net/debian/ unstable main contrib non-free
#deb-src http://packages.kirya.net/debian/ unstable main contrib non-free
#################
##### Beryl #####
#################
#wget http://debian.beryl-project.org/root@lupine.me.uk.gpg -O- | apt-key add -
deb http://debian.beryl-project.org/ etch main
deb-src http://debian.beryl-project.org/ etch main
Line commented out are either the GPG key fetch commands or stuff only used when fetching from unstable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.