Hello there. uname is a

Hello there. uname is a standard utility and should be on every Linux distribution (I thought). Do you get nothing at all if you type uname -r at a prompt?

The other way to find out which kernel version you have is to do:

dpkg-query -W linux-image*

The highest numbered one is likely to be the one you are running. Alternatively, have a look at the grub menu when you boot, as this displays the Linux kernel version.

Once you know what it is, install the appropriate headers package. E.g. on my system, the dpkg-query line returns:

linux-image
linux-image-2.6
linux-image-2.6.15-23-386       2.6.15-23.39
linux-image-2.6.15-25-386       2.6.15-25.43
linux-image-2.6.15-26-386       2.6.15-26.47
linux-image-2.6.15-27-386       2.6.15-27.48
linux-image-386 2.6.15.25

So my kernel is linux-image-2.6.15-27-386. So I need to install:

apt-get install linux-headers-2.6.15-27-386

(just change image to headers).

Hope this helps.

Reply

The content of this field is kept private and will not be shown publicly.
  • You can use Textile markup to format text.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
I am attempting to get rid of spam, so answer this tedious challenge
          _   ____    _  _             ____  
__ __ | | | __ ) | || | _ __ | ___|
\ \ / / | | | _ \ | || |_ | '_ \ |___ \
\ V / | | | |_) | |__ _| | | | | ___) |
\_/ |_| |____/ |_| |_| |_| |____/
Enter the code depicted in ASCII art style.