Linux Headers for new kernel missing

Asked by Hammers

I recently installed updates which included the kernel – 2.6.15-27 and I now find VMWare doesn't start -

I opened a terminal and ran sudo vmware

“vmware is installed, but it has not been (correctly) configured
for this system. To (re-)configure it, invoke the following command:
/usr/bin/vmware-config.pl.”

sudo /usr/bin/vmware-config.pl

Enter to accept all the defaults

At - “What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The directory doesn't exist.

Under /usr/src there are two linux header files for the old kernel version but nothing for the current one. I can restart the machine and choose the old kernel on the start up but i'd really like to get VM working with the new version. What do i need to do to get those headers? If that's not possible what do i do to always revert to the old kernel at startup?

I'm a newbie (that may well be self-evident) so please spell out any steps needed to resolve.

Thanks,

Hammers

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Svilen Vassilev
Solved:
Last query:
Last reply:
Revision history for this message
Svilen Vassilev (tarakanbg) said :
#1

It appears that you are using Dapper Drake.
Depending on the kernel architecture you're using (386, 686, K7) you should install the complete kernel package, by typing in a terminal:

sudo apt-get install linux-386 (or linux-686 or linux-k7)

This will download and install the entire latest kernel, including its headers and restricted modules.
Optionally you can install the headers only by typing:

sudo apt-get install linux-headers-386 (or linux-headers-686 or linux-headers-k7)

Good luck!

Revision history for this message
Hammers (hammersley-paul) said :
#2

That worked a treat - thank you ever so much.

Hammers

Revision history for this message
williamts99 (williamts99) said :
#3

Just wanted to say thank you very much for marking your support request as answered. I know that it might not seem like a big deal, but it sure does help us a lot.

Thank you very much for helping us help you.

Williamts99