You can install the linux-lowlatency-hwe-20.04 package.
Then remove the linux-lowlatency package as that older one will keep installing the 5.4 kernels.
Note that the hwe version will upgrade eventually to the next kernel 5.11 (based on what Ubuntu 21.04 is gong to be using), probably around June or July, maybe August.
Then it'll upgrade to whatever the next kernel series is used in Ubuntu 21.10 sometime aroud the being of next year.
I'd run
Code:
sudo apt install linux-lowlatency-hwe-20.04
let it install, the reboot.
After reboot check that it's now running the 5.8 kernel
if it is then remove the linux-lowlatency package,
again this will simply prevent the system from installing those pesky older 5.4 kernels.
Code:
sudo apt purge linux-lowlatency
and you can usually clear out older kernels with apt autoremove; I add the --purge flag so it fully removes the packages like
Code:
sudo apt autoremove --purge
Big Note: the autoremove command will also remove other packages marked for autoremoval.
so look at what it output that it will remove first.
If something doesn't look good, check 'n' to abort.
You can post the output of what it says if it lists packages that you're not sure about.
On the other hand, if you're fine with whatever the autoremove outputs as listed to be removed then you can just click Y.
Hope that helps and wasn't too confusing.
Bookmarks