Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

3.0.0-15-generic

I want to download the kernel source for the particular kernel version I am running. When I look on kernel.org, and then look inside kernel.org/pub/linux/kernel/v3.0/ 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

2 Answers 2

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:

https://wiki.ubuntu.com/Kernel/SourceCode
share|improve this answer

Your Answer

 
discard

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.