Install/Upgrade Linux Kernel 5.15 on Ubuntu 20.04 LTS

Linux kernel 5.15 has many new features, support, and security. The Linux 5.15 kernel release further improves the support for AMD CPUs and GPUs, Intel’s 12th Gen CPUs, and brings new features like NTFS3, KSMBD (CIFS/SMB3), and further Apple M1 support, amongst many other changes and additions.

In the following tutorial, you will learn how to install the latest 5.15 Linux Kernel on Ubuntu 20.04 LTS Focal Fossa.

Prerequisites

  • Recommended OS: Ubuntu 20.04.
  • User account: A user account with sudo or root access.
  • Internet Access

The tutorial will utilize the terminal interface, which can be found in the show applications menu.

Example:

Install/Upgrade Linux Kernel 5.15 on Ubuntu 20.04 LTS

Update Operating System

Update your Ubuntu operating system to make sure all existing packages are up to date:

sudo apt update && sudo apt upgrade -y

The tutorial will be using the sudo command and assuming you have sudo status.

To verify sudo status on your account:

sudo whoami

Example output showing sudo status:

[joshua@ubuntu ~]$ sudo whoami
root

To set up an existing or new sudo account, visit our tutorial on How to Add a User to Sudoers on Ubuntu.

Use the following command with the root password to log in to use the root account.

su

For users with sudo access, logging into the root account can be skipped.

Import Proposed PPA

Currently, Linux Kernel is not available to install from Ubuntu’s repository. Currently, the kernel is in testing, ready for the next deployment, but this does not mean you cannot install it in the meantime and can be beneficial installing it from Ubuntu’s repository then a generic version.

First, install the Ubuntu Proposed PPA:

sudo add-apt-repository ppa:canonical-kernel-team/proposed -y

Once installed, update your repository list.

sudo apt-get update

Next, proceed to the installation of the Linux Kernel.

Installing Linux Kernel 5.15

Next, install the 5.15 Linux kernel drivers using the generic or low-latency options.

Option 1 – Install kernel-generic:

sudo apt install linux-headers-5.15.*-*-generic linux-image-5.15.*-*-generic

Option 2 – Install low-latency kernel:

sudo apt install linux-headers-5.15.*-*-generic* linux-image-5.15.*-*-lowlatency

Example output (low-latency option):

Install/Upgrade Linux Kernel 5.15 on Ubuntu 20.04 LTS

Type Y, and then press the ENTER KEY to proceed with the installation.

Once complete, you will need to reboot your system for the new kernel to be fully activated.

reboot

Once logged back into your Ubuntu system, run the following command to confirm the kernel version running.

sudo uname -r

Example output:

5.15.0-18-lowlatency

Additionally, install the Neofetch package that will print out a fancy output in the terminal of your system specs.

sudo apt install neofetch -y

Next, run the neofetch printout command.

neofetch

Example output Ubuntu 20.04:

Install/Upgrade Linux Kernel 5.15 on Ubuntu 20.04 LTS

Congratulations, you have installed the latest 5.15 kernel on your Ubuntu operating system.

Updating Linux Kernel 5.15

To keep your kernel 5.15 up to date, you will use the apt update and upgrade commands to pull updates from the PPA repository just like any other package on your Ubuntu system.

To check for updates and upgrade.

sudo apt update && sudo apt upgrade

Remember, for any kernel updates, and you will need to reboot your system.

Comments and Conclusion

In the tutorial, you have learned how to install the latest 5.15 kernel on your Ubuntu 20.04 system.

It should be noted if your system is a production server, it would be advised to use the existing kernel that ships with Ubuntu or use the HWE version for the most stability. However, this is worth trying for those wanting to try kernel 5.15 for its new hardware support.



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!