Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Today I changed my workstation to Debian. As Ubuntu is not nearly stable. Now I installed VMware player. I started it and got a message "Before you can run VMware, several modules must be compiled and and loaded into the running kernel. Kernel headers for version2.6.32-5-amd64 were not found" , below a field were I can give a file location. What should I do now? I never faced such a situation.

share|improve this question
Sounds like you need to install linux-header- – jw013 Nov 15 '12 at 18:59
@jw013 That should be headers with a "s". I made the same mistake when I first answered. – jordanm Nov 15 '12 at 19:04
up vote 5 down vote accepted

In order to compile kernel modules for your running kernel, you need install the kernel headers. The following command should work:

apt-get install linux-headers-$(uname -r) build-essential
share|improve this answer
Thank. but waht means $(uname -r)? – ManuelSchneid3r Nov 15 '12 at 16:50
@DevNoob type it in as-is. It inserts the output of the uname -r command into the command line arguments. – Kevin Nov 15 '12 at 16:53
Thank you. Cant vote up, sorry. – ManuelSchneid3r Nov 15 '12 at 16:56
@DevNoob you don't have enough rep to vote yet, but you can still mark this as your accepted answer (if you'd like) by clicking the large checkmark under the voting arrows. The FAQ has pictures. – derobert Nov 15 '12 at 17:38
@DevNoob: $(uname -r) will automatically be replaced by the version of the kernel you're running. – bahamat Nov 15 '12 at 17:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.