PDA

View Full Version : Install linux-source (precise 12.04.4)



alexander13
February 7th, 2014, 02:26 PM
I install the package "linux-source" (Ubuntu 12.04.4)

apt-get install linux-source

it has the old version 3.2.0.

The kernel source version must be 3.11.0-xx!

Where can I find the kernel source for Ubuntu 12.04.4?

TheFu
February 7th, 2014, 03:20 PM
12.04 has different kernel levels based on how you've maintained the machine to get to that point.
I have 3.2.x and 3.8.x kernels installed here based on which 3rd-dot release I installed. Different kernels for different releases.

* 3.8.0-35-generic - on a 12.04.3 fresh install box
* 3.2.0-58-generic-pae - on an older, upgraded from 12.04.0 install
Both are currently listed as "Ubuntu 12.04.4 LTS" in the lsb-release.

If you just want the newest kernel, it is available at kernel.org.
If you want the kernel installed on your current system, uname -a will get you the package name to be installed.

At this point I went to see if I could find the source for my kernels in Synaptic. I found the headers - install the meta-package for your specific system (linux-headers-generic-pae on one and linux-headers-generic on the other) to get those. I see 2 packages with Linux source. Both match my 3.2.0.58.x kernel, which makes sense (that is the box synaptic is running under). Looked using aptitude on the other box - it is a pure server running 3.8.0.35-* - and found "linux-source-3.2.0{a}" - not what was expected.

The correct header files ARE available based on the running kernel.

After all that - I haven't a clue where to get the 3.8.x kernel source, but felt the search was helpful to others.