Ubuntu 20.04 – Installing Linux Kernel 5.8

With the new linux kernel out, Linux Kernel 5.8 to be precise, I thought I would give it a try. I had read online that Kernel 5.7 could fix the brightness issue on HP Envy laptops so the release timing for 5.8 couldn’t have been any better.

For Ubuntu, you should grab the kernel files from

https://kernel.ubuntu.com/~kernel-ppa/mainline

Download these 4 files with curl or wget:

Linux Headers - All
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/amd64/linux-headers-5.8.0-050800_5.8.0-050800.202008022230_all.deb

Linux Headers - Generic
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/amd64/linux-headers-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb

Linux modules - Generic
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/amd64/linux-modules-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb

Linux Image - Generic
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8/amd64/linux-image-unsigned-5.8.0-050800-generic_5.8.0-050800.202008022230_amd64.deb

Install the downloaded files:

sudo dpkg -i *.deb

Reboot!

Once the system is up and running, check the kernel version with:

uname -r

Note: If you have secure boot enabled, you will have to sign the kernel for Secure Boot. If you do not do that, you will end up looking at the following:

vmlinuz-5.8.0-050800-generic has invalid signature

Ubuntu will not boot in this scenario but you can boot it from Grub with the advanced options by selecting the older version of kernel. Once logged in, sign the kernel and use it instead.

I will write up a post on signing kernel files shortly.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s