Super User is a question and answer site for computer enthusiasts and power users. 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

When trying to install my WiFi card's driver on Ubuntu 9.1, I run the make command and get the following error:

make: *** /lib/modules/2.6.31-20-generic/build: No such file or directory

Any ideas how to fix this?

share|improve this question
9.10 reached end of life almost a year ago and is no longer supported, so you aren't getting security fixes. You should upgrade immediately. – psusi Jan 31 '12 at 2:18

This site gives a better solution/copy-paste code line to get the proper headers:

sudo apt-get update && sudo apt-get install linux-headers-$(uname -r)
share|improve this answer

sudo apt-get install linux-headers-generic Try this. If it wont work, comment and we'll figure out the package. (I hope you installed build-essential package.)

share|improve this answer
thanks for replying but that didn't work , can you advice some other package – user36637 May 10 '10 at 22:26
You are missing the kernel headers. That is for SURE. Type uname -a in your terminal. You will see a message and you can check your kernel what are you using AT THE MINUTE. If you see that 2.6.31-20, then you need this: . linux-headers-generic gets the latest headers, so if you are using some older kernel, you wont get its headers. phew So just use that link. :) – Shiki May 11 '10 at 7:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .