LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-04-2007, 05:48 PM   #1
KNx2
LQ Newbie
 
Registered: Mar 2004
Posts: 23

Rep: Reputation: 15
Question Debian VMwarev5.5.0.18463


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

So i am really confused...
 
Old 08-04-2007, 08:27 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
you should update your kernel and install kernel-devel. Then it should work properly. try not using the smp kernel.
 
Old 08-04-2007, 08:28 PM   #3
marco18
Member
 
Registered: Jul 2007
Location: Argentina
Distribution: Ubuntu 13.04 , Debian Lenny 5.0.7
Posts: 223

Rep: Reputation: 21
Which distro of debian is that??? I haven't seen that anywhere.
 
Old 08-05-2007, 01:13 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Which packages do you all have that are necessary, these are the packages I currently have installed:

linux-headers-2.6.21-2 2.6.21-6
linux-headers-2.6.21-2-686 2.6.21-6
linux-image-2.6.21-2-686 2.6.21-6
linux-kbuild-2.6.21

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.
 
Old 08-06-2007, 12:17 PM   #5
KNx2
LQ Newbie
 
Registered: Mar 2004
Posts: 23

Original Poster
Rep: Reputation: 15
this is what i have

This is what I have installed.

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.
 
Old 08-06-2007, 01:10 PM   #6
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
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.
 
Old 08-06-2007, 01:59 PM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.
 
Old 08-06-2007, 02:33 PM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.
 
Old 08-08-2007, 02:27 PM   #9
KNx2
LQ Newbie
 
Registered: Mar 2004
Posts: 23

Original Poster
Rep: Reputation: 15
For whatever reason the linux-headers do not show up in apt and I think that is why I am all messed up.
deb http://http.us.debian.org/debian unstable main contrib non-free
deb http://http.us.debian.org/debian unstable main

deb http://ftp.debian.org/debian/ unstable main

deb-src http://ftp.debian.org/debian/ unstable main

deb http://mirror.ox.ac.uk/debian/ unstable main
deb-src http://mirror.ox.ac.uk/debian/ unstable main

deb http://security.debian.org/ etch/updates main

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

Last edited by KNx2; 08-08-2007 at 02:41 PM.
 
Old 08-08-2007, 03:00 PM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Add another line like either one of these two to your sources.list, the 2.6.21 kernel is the testing/Lenny kernel:
Quote:
deb http://http.us.debian.org/debian testing main contrib non-free
deb http://http.us.debian.org/debian lenny main contrib non-free
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.
 
Old 08-08-2007, 03:08 PM   #11
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
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.
 
Old 08-08-2007, 03:28 PM   #12
KNx2
LQ Newbie
 
Registered: Mar 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks

Thanks alot! This fixed everything
 
  


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
grub issues: dual boot Debian i386 & Debian amd64 ErrorBound Debian 1 03-09-2007 07:41 PM
Dual boot Debian Etch and XP with GRUB - Debian installed First - one HDD bence8810 Debian 11 01-07-2007 10:45 AM
FC5 + VMware 5.5.0-18463 + vmware-any-any-update104 zoropio Linux - Software 4 09-22-2006 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:52 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