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 have Ubuntu 12.04.2 with kernel 3.5.0 and need to recompile some modules, but i`m getting hard to find the correct sources. apt-get only has sources for 3.2.0? Where i can get the correct sources for the installed kernel 3.5.0??

share|improve this question
Maybe check if you have deb-src lines in /etc/apt/source.list for -updates and -security too? – dholbach Jul 18 '13 at 15:21… Nicer way :) – user228638 Dec 25 '13 at 12:46

Looks like a major breakage to me. There are meta-packages that don't work at all, some link to the old 3.2.0 kernel. For example, doing apt-get source linux-image-$(uname -r) will fail, as it tries to use linux-lts-quantal instead, and then fails as that package cannot be found. We've been trying around for two hours, before resorting to using their kernel git repository (which involved changing our scriptomatic relying on apt-get source, which we tried to prevent).

It's beyond me how you can "update" a release you call LTS in such a messed up way.

The solution for us right now is to use their kernel git repository, although it is huge and takes ages to clone.

git clone git://
cd ubuntu-precise
git tag -l Ubuntu-*     # show all tagged versions
git checkout -b temp Ubuntu-lts-3.5.0-28.48     # pick the one matching "uname -r"
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.