I would like my Ubuntu 22.04 to keep using Kernel 6.5 and only let it update security updates on the 6.5 (ie keep updating to versions 6.5.0-45 then 6.5.0-46 and so on). I don't have any interest as of this moment in Kernel 6.8 as it causes heaps of trouble for me.
So far I did:nano /etc/default/grub
changed GRUB_TIMEOUT_STYLE=hidden to GRUB_TIMEOUT_STYLE=menu
and set GRUB_TIMEOUT=5
(the default was GRUB_TIMEOUT=0)
This way every time I boot I have a chance to use Kernel 6.5 but it's manual and annoying.
What is the best way to make Ubuntu 22.04 to hold onto the Kernel 6.5 (with security updates) and not to upgrade to 6.8 until I manually say so?
I found this:
sudo apt-mark hold <package_name> # stop upgrading
sudo apt-mark unhold <package_name> # resume upgrading
somebody also recommended (with slight modification):apt-mark hold linux-generic-hwe-22.04
But that won't work (I suppose?) as my apt list --installed | grep linux-image-generic-hwe-22.04already shows:
linux-image-generic-hwe-22.04/jammy-updates,jammy-security,now 6.8.0-40.40~22.04.3 amd64 [installed,automatic]
Courtesy of: How to I prevent Ubuntu from kernel version upgrade and notification?
So I'm worried if I do sudo apt-mark hold linux-image-6.5.0-45-generic as listed the above it will force-hold the current version "linux-image-6.5.0-45-generic" and that it won't install any security updates. Maybe I'm wrong here.
I have unattended updates in place and I would like to have those updates to other software I simply want to have kernel left out.
Thank you all for your help.
The reason I want this:I'm experiencing issues with VMWare Workstation and this year it's probably 3rd time I had to do weird hacks to just hold it together. I'm in process of switching to another virtualisation software (looking at VirtualBox) hopefully I will have better luck there.Related topics:https://unix.stackexchange.com/questions/773558/vmware-vmmon-vmnet-17-5-1-and-linux-kernel-6-8-0-wont-compilehttps://github.com/mkubecek/vmware-host-modules/issues/250