PDA

View Full Version : [ubuntu] Couldn't find package linux-headers-uname -r



Metallicaman41
February 17th, 2009, 03:10 AM
I am trying to install VMWare server onto my Ubuntu server (ubuntu server 8.10 with desktop installed)

The instruction to install say to run this command prior to installing VMware


sudo apt-get install linux-headers-'uname -r' build-essential xinetd

I get these results when running it


user@computer:~$ sudo apt-get install linux-headers-'uname -r' build-essential xinetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-headers-uname -r


I tried installing vmware without running it but got stuck on the following question, so im assuming i need to run that command.


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

The path "/usr/src/linux/include" is not an existing directory.

Any ideas?

oldos2er
February 17th, 2009, 03:27 AM
Your command has the wrong syntax. Try
sudo apt-get install linux-headers-`uname -r` build-essential xinetd

Phlee
February 17th, 2009, 03:28 AM
Useually if you:


apt-get update || apt-get dist-upgrade

then:


uname -r

You'll get something like:

"2.6.27-7-generic"

append that to your apt-get


apt-get install linux-headers-2.6.27-7-generic build-essential xinetd

the uname -r call does work with apt just don't remember syntax

glotz
February 17th, 2009, 03:38 AM
Yeah, what oldos2er said, i.e. wrong kind of dotties there
' <-- that's the wrong one
` <-- that's the right one

also instead of `command` you can also use $(command)

Metallicaman41
February 17th, 2009, 04:51 AM
Useually if you:


apt-get update || apt-get dist-upgrade

then:


uname -r

You'll get something like:

"2.6.27-7-generic"

append that to your apt-get


apt-get install linux-headers-2.6.27-7-generic build-essential xinetd

the uname -r call does work with apt just don't remember syntax


That worked. Thanks