1

I'm on Kubuntu 12.04 with lts-raring HWE stack. I'm running kernel 3.8.0.30.18 low latency. A recent update replaced my low latency kernel with a slightly newer (3.8.0.31) generic kernel. I wish to prevent this and to use only the low latency kernels. How would I do this?

I believe this information is required:

$ dpkg -s kxstudio-kernel-lowlatency
Package: kxstudio-kernel-lowlatency
Status: install ok installed
Priority: optional
Section: metapackages
Installed-Size: 26
Maintainer: falkTX <[email protected]>
Architecture: all
Source: kxstudio-kernel
Version: 2.4~precise1
Depends: linux-lowlatency, linux-image-lowlatency, linux-headers-lowlatency
Description: The KXStudio kernels - Low-Latency
 This is a metapackage that provides the lowlatency kernel

I also wish to know exactly how to use apt-cache policy to verify that the installation candidates (for any kernel) are correct. The command below would apparently not show me when a generic kernel might supersede a low latency kernel.

$ apt-cache policy linux-lowlatency
linux-lowlatency:
  Installed: 3.8.0.30.18
  Candidate: 3.8.0.30.18
  Version table:
 *** 3.8.0.30.18 0
        500 http://ppa.launchpad.net/kxstudio-team/kernel/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     3.2.0.54.43 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/universe amd64 Packages
     3.2.0.23.20 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

2 Answers 2

2

sudo apt-get autoremove --purge linux-image-generic

If you don't ever want to use the pure -generic kernel image, then simply remove it. You might also have to separately remove the actual kernel image, as well as this meta-package. Just make sure you have a usable kernel image installed before removing some of them. Then apt will simply not update that which is not installed.

The -generic kernels do not supersede the -lowlatency kernels. However, the last kernel that was installed, becomes the default. You will still have the -lowlatency kernel installed, and you can still choose it within the grub boot menu, or even change it to be the default again.

1
  • Just an FYI - it looks like the lts-raring HWE stack installs linux-image-generic-lts-raring. For those running KX Studio with a low latency kernel and lts-raring, the package to remove would be linux-image-generic-lts-raring
    – MountainX
    Sep 29, 2013 at 19:36
1

You might also want to get Grub customizer by Daniel Richter. It is a very handy little program that lets you specify what kernel you want to boot by default. It is a graphical interface that lets you configure the grub settings and entries.

You can get it easily

Open the terminal and run the following commands

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

I think you will like this a lot

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .