Categories: Ubuntu

Install or Upgrade To Latest Linux Kernel on Ubuntu 22.04

As an Ubuntu 22.04 user, you should be aware that the current kernel priorities reliability over the cutting-edge Linux kernel upgrades. This is a great way to achieve an uninterrupted and stable environment; however, if you have switched to new hardware that needs a recent kernel, that is required to install or upgrade the latest Linux kernel on it.

This blog will demonstrate the method to install or upgrade to the latest kernel on Ubuntu 22.04. Let’s get started!

Install or upgrade to latest kernel on Ubuntu 22.04 using Ubuntu Mainline Kernel Installer

For the purpose of installing or upgrading to the latest kernel on Ubuntu 22.04, follow the given instructions.

Step 1: Update system packages
First of all, hit “CTRL+ALT+T” and update the system packages by running provided command:

$ sudo apt update

All packages are updated:

Step 2: Check kernel version
Next, utilize the below-given command to know about your kernel version:

$ uname -mrs

The given output indicates that we have Linux kernel version “5.15.0-25-generic” on our Ubuntu 22.04 system:

Step 3: Add repository
Add the “cappelikan” repository to your system as it is required for Ubuntu Main Kernel installer:

$ sudo add-apt-repository ppa:cappelikan/ppa -y

Step 4: Install Ubuntu Mainline Kernel Installer
Then, move ahead towards the installation of Ubuntu Mainline Kernel installer:

$ sudo apt install mainline -y

Step 5: Open Ubuntu Mainline Kernel Installer
After successfully installing Ubuntu Mainline Kernel Installer, open it by searching in the “Activities” menu:

Step 6: Install Kernel
Next, select the kernel you want to install or upgrade. In our case, we have selected the kernel version “5.18.6” and clicked on the “Install” button:

After performing the previously stated operation, the following terminal will open up and it will start installing the selected kernel version:

Wait for a few minutes as the kernel installation will take some time:

Lastly, close the opened Ubuntu Mainline Kernel Installer terminal window:

Step 7: Verify status of installed Kernel
Switch back to the Ubuntu Mainline Kernel Installer to check the status of the selected kernel. As you can see, the kernel “5.18.6” is installed on our Ubuntu 22.04:

Step 8: Reboot system
Lastly, reboot your Ubuntu 22.04 system so that it can take changes from the new kernel installation:

$ sudo reboot

Step 9: Check Kernel version
After reboot, again check the current kernel version:

$ uname -r

The given output indicates that we have successfully installed the latest Linux kernel version “5.18.6” on our Ubuntu 22.04 system:

We have compiled the simplest method to install or upgrade to the latest Linux kernel on Ubuntu 22.04 system.

Conclusion

To install or upgrade the latest Linux kernel on Ubuntu 22.04, firstly, update system packages. Then check the current kernel version. After that, run the “$ sudo apt install mainline -y” command on Ubuntu 22.04 terminal for Ubuntu Mainline Kernel Installer application installation. Next, open the installed application, select the latest kernel version and click on the install button. Lastly, reboot the system. This blog demonstrated the procedure to install or upgrade to the latest Linux kernel on Ubuntu 22.04.

Ubuntu Server Admin

Recent Posts

🚀 Deploy Elastic Stack on Ubuntu VPS (5 Minute Quick-Start Guide)

Here’s the guide to deploy Elastic Stack on Ubuntu VPS, with secure access, HTTPS proxying,…

1 day ago

🚀 Deploy Nagios on Ubuntu VPS

This guide walks through deploying Nagios Core on an Ubuntu VPS, from system prep to…

1 day ago

Shoryuken Has a New Maintainer, and v7.0.0 Is Almost There

After a decade under Pablo Cantero's stewardship, Shoryuken has a new maintainer - me. I'm…

5 days ago

A better way to provision NVIDIA BlueField DPUs at scale with MAAS

MAAS 3.7 has been officially released and it includes a bunch of cool new features.…

2 weeks ago

Ruby Floats: When 2.6x Faster Is Actually Slower (and Then Faster Again)

Update: This article originally concluded that Eisel-Lemire wasn't worth it for Ruby. I was wrong.…

2 weeks ago

MicroCeph: why it’s the superior MinIO alternative (and how to use it)

Recently, the team at MinIO moved the open source project into maintenance mode and will…

2 weeks ago