Installing the latest Linux Kernel in Ubuntu with the Ubuntu Mainline Kernel Installer software

Installing the latest Linux Kernel in Ubuntu with the Ubuntu Mainline Kernel Installer software

Hi everyone,

Today, I´d like to show you how to install the latest Linux Kernel in Ubuntu. There’s a software called Ubuntu Mainline Kernel Installer that allow us to do exactly this.

Linux works with the Linux Kernel, and that means that Ubuntu uses it, of course.

The latest stable version of Ubuntu: 22.04, uses the Linux Kernel version 5.15, but with the Ubuntu Mainline Kernel Installer, we can install up to the current 5.19-rc8 version. Note that this version is a Release Candidate, which means it is still in development. You can also install the 5.18 version which is the latest stable Linux Kernel version.

Adding the Ubuntu Mainline Kernel Installer PPA repository

Before installing the tool, we first need to add the PPA repository, so that apt can find it an install it. To do it, we use the following command:

sudo add-apt-repository ppa:cappelikan/ppa
Upgrading to the latest Linux Kernel with Mainline - Adding the Mainline software PPA repository

We then must press Enter to confirm adding this repository:

Upgrading to the latest Linux Kernel with Mainline - Adding the Mainline software PPA repository - 2

The repository will be added and it should update the available packages. You can also update it with apt after to make sure it refreshed the package list:

sudo apt update
Upgrading to the latest Linux Kernel with Mainline - Adding the Mainline software PPA repository - 3

Installing Mainline

To install Mainline (the package for Ubuntu Mainline Kernel Installer), we use apt to install it. The package name is simply called mainline:

sudo apt install mainline
Upgrading to the latest Linux Kernel with Mainline - Installing Mainline

We confirm we want to install the package dependencies that may be shown with the Y key:

Upgrading to the latest Linux Kernel with Mainline - Installing Mainline - 2

Mainline should now be installed after downloading and installing the packages:

Upgrading to the latest Linux Kernel with Mainline - Installing Mainline - 3

Launching and showing all available kernels:

The Ubuntu Mainline Kernel Installer utility should be under the Administration app menu. If your desktop environment allow it, you can search for Mainline and it will show up:

Upgrading to the latest Linux Kernel with Mainline - Opening Mainline

Mainline will load and you will see a list of the stable Linux Kernels available:

Upgrading to the latest Linux Kernel with Mainline - Mainline Interface

To show unstable and development builds, we must click on Settings:

Upgrading to the latest Linux Kernel with Mainline - Going to Settings

From there, we disable the Hide unstable and RC releases checkbox. Then, press OK:

Upgrading to the latest Linux Kernel with Mainline - Disabling the "hide unstable and RC releases" button

You will now see the current latest development/Release Candidate version: 5.19.0-rc8. You can press Install to install it:

Upgrading to the latest Linux Kernel with Mainline - Installing the Linux Kernel 5.19.0-rc8

The installation will begin with some downloads:

Upgrading to the latest Linux Kernel with Mainline - Installing the Linux Kernel 5.19.0-rc8 - 2

You will be prompted for your password to install the Linux Kernel:

Upgrading to the latest Linux Kernel with Mainline - Installing the Linux Kernel 5.19.0-rc8 - 3

If everything goes well, you should see a success message in the log:

Upgrading to the latest Linux Kernel with Mainline - Installing the Linux Kernel 5.19.0-rc8 - 4

Now, you can restart your machine. The next time it loads, you can confirm it is running the latest Linux Kernel version by checking your distribution information. With Cinnamon, you can use the System Info tool.

Upgrading to the latest Linux Kernel with Mainline - Linux Kernel 5.19.0-rc8 running

Congratulations! You now have installed the latest Linux Kernel. You can continue to use this tool to keep your machine’s Linux Kernel up to date and it should show you notifications when a new version is available if you have those options enabled in the settings window.