Comment épingler les noyaux à faible latence pour qu'apt ne se mette pas à jour avec un noyau générique plus récent?


1

Je suis sur Kubuntu 12.04 avec une pile HWE lts-raring.J'utilise le noyau 3.8.0.30.18 à faible latence.Une mise à jour récente a remplacé mon noyau à faible latence par un noyau générique légèrement plus récent (3.8.0.31).Je souhaite éviter cela et n'utiliser que les noyaux à faible latence.Comment pourrais-je faire cela?

Je pense que ces informations sont obligatoires:

$ 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

Je souhaite également savoir exactement comment utiliser la politique apt-cache pour vérifier que les candidats à l'installation (pour n'importe quel noyau) sont corrects.La commande ci-dessous ne me montrerait apparemment pas quand un noyau générique pourrait remplacer un noyau à faible latence.

$ 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

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

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