Answer the question
In order to leave comments, you need to log in
How to block hwe update of linux kernel?
Good afternoon. Please tell me how to block kernel updates when updating the system. Looked on the Internet at various sources. It's usually recommended to use
sudo apt-mark hold linux-image-generic linux-headers-generic , but that doesn't help the kernel is still updated to the latest available version. Now it is 5.04-71. I also tried to edit the file /etc/apt/apt.conf.d/50unattended-upgrades in this way
// List of packages to not update (regexp are supported)
Unattended-Upgrade::Package-Blacklist {
"linux-generic";
"linux-image-generic";
"linux-headers-generic";
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
Answer the question
In order to leave comments, you need to log in
It bored me too. I confirm that none of the known ways to prevent Google from updating the kernel - does not work (at least in Ubuntu 20.04). Solved the problem quite easily. I found the kernel 4.19 through the browser in the Debian repository (it is supported until December 2025, but you can look for other versions) - downloaded 4 deb packages:
sudo dpkg -i *.deb
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question