Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I am using Ubuntu 11.10. When I type 'uname -r' in the terminal, I get:


I want to download the kernel source for the particular kernel version I am running. When I look on, and then look inside I can only find source tarballs by the name of linux-3.0.x.tar.gz. My 'uname -r' has an extra '0' in it.

Am I looking in the wrong place? Is my kernel not a mainline one?

share|improve this question
up vote 0 down vote accepted

Try apt-get --download-only source linux-image-3.0.0-15-generic

Ubuntu kernels are base on mainline ones, but aren't numbered the same way.

share|improve this answer

The Ubuntu kernels are modified from the mainline source, to include additional drivers and fixes. The code can be obtained in one of two ways. Either using apt-get source linux-image-<VERSION> (do remember to substitute in the version you require), or from the Ubuntu Kernel Team git repositories.

For more details see our wiki at the URL below:
share|improve this answer

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.