PDA

View Full Version : How to prohibit installation of newer kernel and headers?



rotation2
August 17th, 2013, 06:42 PM
Apparently some of my Software does not like newer Kernels.
Can somebody tell me how to prohibit the installation of newer kernels and headers without compromising apt-get dist-upgrade?

Frogs Hair
August 17th, 2013, 07:02 PM
If you have the synaptic package manager installed there is a lock version option but I have never used it. I can't tell you what associated packages if any may need to be locked as well. Kernel updates may included security updates and other benefits. so may want to describe what programs are is breaking and if they are from the Ubuntu repository .

ajgreeny
August 17th, 2013, 09:09 PM
To pin a package version you can add these lines to /etc/apt/preferences:

Package: name
Pin: version (number from repos)
Pin-Priority: 1001
However, I am not sure about the use of this for kernels, as each numbered kernel is a different package, so it may not work. There may, however be some way to stop any further linux-image packages being installed, as is the case in Linux Mint, which by default does not install kernel packages during normal updates. I am searching for this but so far no answer has appeared; I'll keep looking.