To prevent this from happening I've placed a hold on kernel updates. So all other security and software updates will still take place, but the kernel will remain on same version. This is fine as long as all your hardware works in the current version of the kernel - for the vast majority of people this will be the case.
Here's what I did to place the hold (Debian-based systems only such as Ubuntu, Mint etc):
(You may need to type sudo su first to run commands with superuser privileges )
Into a terminal enter:
dpkg -l "*$(uname -r)*" | grep image | awk '{print $2}'This should give you a list of packages e.g. linux-image-3.16.0-29-generic
linux-image-extra-3.16.0-29-generic
Now enter
dpkg -l "*$(uname -r)*" | grep header | awk '{print $2}'
For each one of those packages and headers you need to do:
echo <PACKAGE> hold | dpkg --set-selectionsChange <PACKAGE> with your package that was output from the first step above, one at a time.
Now type
and you should see output similar todpkg -l "*$(uname -r)*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============
hi linux-headers- 3.13.0-46.77 amd64 Linux kernel headers for versionThe "hi" before the image and header lines, indicate that the kernel updates will be help, not updated, when you accept security and software updates from your package manager as usual.
hi linux-image-3. 3.13.0-46.77 amd64 Linux kernel image for version 3.
hi linux-image-ex 3.13.0-46.77 amd64 Linux kernel extra modules
Thanks to Tony at http://itslinux.blogspot.co.uk/2015/03/how-to-prevent-packages-from-being.html for this tip.
No comments:
Post a Comment