Home Linux Mint How to upgrade Linux Kernel in Ubuntu and Linux Mint

How to upgrade Linux Kernel in Ubuntu and Linux Mint

by Hend Adel
Upgrade Linux Kernel Ubuntu

A kernel is the most essential piece of code to any computer that is using an operating system. It links as a communication interface between the hardware and the operating system. In Ubuntu, you can find the kernel file stored in your “/boot” with the name “vmlinuz-version”.

Reasons to Upgrade Linux Kernel

There are several reasons for why you need to upgrade your kernel but the following reasons are considered the most important:

  • Keep your system safe, by protecting yourself from emerging new security threats.
  • Improve system stability, by solving various issues that can cause your system to crash and behave abnormally.
  • Update system drivers, as the newly upgraded kernel, contains the latest drivers for your machine.
  • Enjoy new kernel features that are being added.

So, if you need to get the most out of your system then it’s important to upgrade your kernel and keep your system up-to-date.

Upgrading Linux Kernel in Ubuntu and its derivatives

In this article, we are going to discuss two different methods to upgrade the Ubuntu Linux Kernel. The below guide is tested to be working in Ubuntu but should also work on Linux Mint without any issues.

The first method is a lengthy command-line process for the geeks and the second method describes the easiest way by using Ukuu, a GUI method for newbies to Linux.

First Method: Manual Kernel Upgrading (Terminal Way)

Step 1. Check the installed kernel version on your machine using the following command.
uname -sr

Uname Command

Uname Command

Step 2. To Upgrade your kernel, go to https://kernel.ubuntu.com/~kernel-ppa/mainline/ and choose the latest stable version and download it. (At the time of writing this tutorial, v4.20.8 was the latest stable version)

Kernel Versions Directory

Kernel Versions Directory

Step 3. Check if your system is 32 or 64 bit.

uname -i

Uname

Uname

This means your system is 64 bit or in other words, it is amd64.

Step 4. From your terminal, download the kernel depending on your system is it 32 or 64 bit. So in our case, we will download the amd64 using the following commands.

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.8/linux-headers-4.20.8-042008_4.20.8-042008.201902121544_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.8/linux-headers-4.20.8-042008-generic_4.20.8-042008.201902121544_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.8/linux-image-unsigned-4.20.8-042008-generic_4.20.8-042008.201902121544_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20.8/linux-modules-4.20.8-042008-generic_4.20.8-042008.201902121544_amd64.deb

Download Linux Kernel using Wget

Download Linux Kernel using Wget

Step 5. Now install the downloaded packages.

sudo dpkg -i *.deb

Linux Kernel Update in Progress

Linux Kernel Update in Progress

Step 6. After successful installation, reboot your machine.

reboot

Step 7. After rebooting your system, open your terminal and verify that the new kernel is installed successfully.

uname -sr

Verify Linux Kernel Installation

Verify Linux Kernel Installation

Downgrading Linux Kernel due to problematic upgrade

In case you have faced any problems during kernel upgrading, there is no need to panic we are here to help you revert back to your oldest kernel. So, you can use the next few steps to downgrade system kernel.

Step 1. Reboot your system, press and hold the Shift key when you see the Ubuntu logo. This will bring you the Grub Menu screen.

Ubuntu Grub Bootloader

Ubuntu Grub Bootloader

Step 2. Choose the second option which is “Advanced options for Ubuntu” then press the Enter button. You will see the current Linux kernels found.

Ubuntu Grub Bootloader - Advance Options

Ubuntu Grub Bootloader – Advance Options

Step 3. Move with arrows up/down and select the kernel you need to downgrade to it. Then press the Enter button. Now the system will reboot using your oldest kernel.

Step 4. After rebooting, open the Terminal and use the next command to completely remove the latest kernel packages from the system.

sudo apt remove linux-image-unsigned-4.20.8-042008-generic linux-headers-4.20.8-042008-generic

Remove Old Linux Kernel Versions

Remove Linux Kernel Version

Step 5. Now reboot your system to use the oldest safe kernel.

reboot

Step 6. Finally, check that you have downgraded to the oldest kernel.

uname -sr

Verify Old Linux Kernel

Verify Old Linux Kernel

Second Method: By using Ukuu Kernel Upgrade Utility (Easy way)

In this method, we are going to use the Ukuu tool to upgrade the Ubuntu kernel. Ukuu is a short version of “Ubuntu Kernel Upgrade Utility”. Ukuu is a simple yet powerful tool that can be used on Ubuntu systems to install and upgrade the kernel. Ukuu can be used to remove old kernels after installing new ones.

Also, it can send you a notification when there is a new kernel update is available. Ukuu can be used on both Desktop and Server Ubuntu versions. Next, we will show you how to use Ukuu to upgrade your kernel.

Step 1. Open your Terminal and add the PPA for Ukuu to the repository using the following command.

sudo apt-add-repository -y ppa:teejee2008/ppa

Add PPA

Add PPA

Step 2. Update your system.

sudo apt-get update

Step 3. Install Ukuu using the following command.

sudo apt-get install ukuu

Step 4. Run the following command to open Ukuu tool.

sudo ukuu-gtk

Ukuu interface should be something like this:

Ukuu User Interface

Ukuu User Interface

As you can see, Ukuu lists all the available kernel releases that can be downloaded. Also, it shows you a little hint about the currently installed kernel and the last available one that can be downloaded.

Step 5. Now to upgrade your kernel, all you have to do is that just select the kernel and press Install.

Select Kernel

Select Kernel

Ukuu will handle all the manual steps that we have mentioned in the above section. So it will download the best kernel version that is the best fit for your system architecture and will install it automatically.

Step 6. Just enjoy applying the kernel without the need to worry about anything.

Upgrade

Upgrade

Step 7. This message will appear after installing the kernel.

Upgrade Complete

Upgrade Complete

Step 8. Reboot your system to use the new kernel.

reboot

Step 9. After rebooting, check the installed kernel version.

uname -sr

Verify Kernel Installation

Verify Kernel Installation

Finally, be careful while applying the previously mentioned commands. And in case you faced any issues just leave a comment and we will be glad to help you fix it.

You may also like

5 comments

Jason March 1, 2019 - 11:02 PM

Can we do the kernel upgrade in Solus Os?

Reply
Abbas February 10, 2020 - 7:49 PM

Hi,
I wished to upgrade my Linux Mint kernel 19.3 but am not an IT geek. I just followed your steps , copied and paste the commands to the terminal, enter, enter, rebooted my pc, checked the version and yes, it was updated to the latest one I chose.

Thank you very much.

Abbas

Reply
Ivo February 28, 2020 - 6:06 AM

Thanks. So simple is the first method

Reply
Jim T April 20, 2020 - 2:49 AM

Steps 1 & 2 proceeded as expected, but when I tried step 3 to run the install I received the message “Unable to locate package ukuu”.

Reply
Sam August 8, 2020 - 7:53 PM

Ukuu is now a program you have to pay for, believe it’s $10.

Reply

Leave a Comment

fl_logo_v3_footer

ENHANCE YOUR LINUX EXPERIENCE.



FOSS Linux is a leading resource for Linux enthusiasts and professionals alike. With a focus on providing the best Linux tutorials, open-source apps, news, and reviews written by team of expert authors. FOSS Linux is the go-to source for all things Linux.

Whether you’re a beginner or an experienced user, FOSS Linux has something for everyone.

Follow Us

Subscribe

©2016-2023 FOSS LINUX

A PART OF VIBRANT LEAF MEDIA COMPANY.

ALL RIGHTS RESERVED.

“Linux” is the registered trademark by Linus Torvalds in the U.S. and other countries.