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.

Sponsored

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:

Sponsored

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

Cut data center energy costs with bare metal automation

Data centers are popping up everywhere. With the rapid growth of AI, cloud services, streaming…

22 hours ago

Build the future of *craft: announcing Starcraft Bounties!

Our commitment to building a thriving open source community is stronger than ever. We believe…

22 hours ago

NodeJS 18 LTS EOL extended from April 2025 to May 2032 on Ubuntu

The clock was ticking: Node.js 18’s upstream End of Life (EOL) The OpenJS Foundation is…

22 hours ago

Native integration now available for Pure Storage and Canonical LXD

June 25th, 2025 – Canonical, the company behind Ubuntu, and Pure Storage, the IT pioneer…

2 days ago

Revolutionizing Web Page Creation: How Structured Content is Slashing Design and Development Time

Co-authored with Julie Muzina A year ago, during our Madrid Engineering Sprint, we challenged ourselves…

3 days ago

Ubuntu Weekly Newsletter Issue 897

Welcome to the Ubuntu Weekly Newsletter, Issue 897 for the week of June 15 –…

4 days ago