Debian Linux logo

Introduction

Since a long time not using it I tried to use VMware again today with my Debian Squeeze, and as the kernel have been upgraded, I had to reconfigure it by running

/usr/bin/vmware-config.pl

But it could not run, because of I had no kernel headers, it complained, saying this:

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

So I had to install them. Here is how.

Install C header Linux Kernel on Debian or Ubuntu

It is really easy, just run this command, while running the kernel you want to install the headers for.

sudo apt-get install Linux-headers-$(uname -r)

That is.

Updated on 12/09/10: Thanks go to: Raphael Hertzog for this solution.

You can also install the generic package, to always have the latest kernel headers, matching you current Kernel

<pre>aptitude install linux-headers-2.6-686</pre>

Or replace the "-686" for "-(xen|vserver|openvz)-686" or "-amd64" or "-686-bigmem"