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.

Currently building a 12.04.4 (3.11.x) LTS LAMP Server and have a 12.04.3 (3.8.x) one in production. How can I remove the 3.11 kernels and headers with the lts-raring generic packages and install 3.2.0-x kernel,headers, and generic packages? Also, ease of updating to newest 3.2.0-x patch is important without risking updating/reverting to 3.11 or 3.8 in the process. Is there gotchas or no nos with doing this?

share|improve this question
    
While looking around during testing, I found reference to "linux-firmware 1.79.9 Firmware for Linux kernel drivers". Is this package something I should be aware of or should change as well? Does it have any links to a specific kernel version? –  Mintyfresh Feb 13 at 12:51

1 Answer 1

up vote 1 down vote accepted

Background

The key elements here are understanding what Ubuntu is using to install the latest kernel.

The generic packages are used to install both headers and the linux images themselves.

Thus, for the latest point releases of Ubuntu, the hardware-enablement packages would have been installed instead of the LTS 3.2 series of kernels.

If you remove the generic kernels then further updates to the kernel will not be automatically installed. So in summary, cleaning up the generic-lts-xxxx kernels will stop the newer kernels being installed.

Installing the 3.2 series kernel

To ensure you have got the correct 3.2 kernel series generic packages installed on your server use the command line:

sudo apt-get update
sudo apt-get install linux-headers-generic linux-image-generic

This will install the 3.2 series of kernels + the generic metapackage required to keep up-to-date with any security fixes.

Once installed, reboot - but this time boot into the 3.2 kernel. This would be found in the previous section of the GRUB entries.

pic

Login and check you have indeed booted into the 3.2 kernel:

uname -a

Cleaning up the HWE series of kernels

Now you need to purge the later HWE kernels

sudo apt-get purge linux-headers-3.8.0-* linux-headers-generic-lts-raring linux-image-3.8.0-* linux-image-generic-lts-raring

If you've got the saucy HWE kernels installed then you'll need to remove the 3.11 kernels and the generic-lts-saucy packages i.e.

sudo apt-get purge linux-headers-3.11.0-* linux-headers-generic-lts-saucy linux-image-3.11.0-* linux-image-generic-lts-saucy

Graphics

Given that you said you are running a LAMP server I'm presuming here that you do not have the xorg graphics installed i.e. you are using a text based interface.

If you are using a graphical interface you'll need to similarly downgrade your graphics stack

i.e.

sudo apt-get purge xserver-xorg-lts-quantal
sudo apt-get install xserver-xorg-input-synaptics xserver-xorg

Caution

As always, when messing about with kernels for your server, always check you have a good image backup of your server to ensure you can rollback if something catastrophic goes wrong.

share|improve this answer
    
I am testing this right now on a testbed VM. Thanks for your detailed answer. –  Mintyfresh Feb 13 at 2:27

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.