Tutorial Upgrade Kernel on Ubuntu 20.04 | 22.04


Whenever you try to work with a Linux distribution such as Ubuntu, a Kernel will be installed automatically, because the whole system can not run without it. You can update Kernel on Ubuntu like any other packages. In this article, you will learn How to Upgrade Kernel on Ubuntu 20.04 | 22.04. If you want to purchase Ubuntu VPS Server, check out the offered packages on the Eldernode website.

How to Upgrade Kernel on Ubuntu 20.04 | 22.04

Recommended Article: Initial Setup With Ubuntu 18.04

Introduction to Kernel

The Kernel is the core of Linux distributions, which is the interface between hardware and software in this operating system. Linux Kernel updates are constantly released, allowing you to update your Linux Kernel version to enjoy the latest features, tools and security measures.

In the continuation of this article from the Ubuntu training series, we are going to teach you step by step how to Upgrade Kernel on Ubuntu 20.04 | 22.04.

Upgrade Kernel on Ubuntu 20.04 | 22.04

First check the version of Kernel running on your Ubuntu Linux with the following command:

uname -r

Before starting, first run the following command to update all system packages:

sudo apt update
sudo apt upgrade

Then use the command below to install wget tool:

sudo apt install wget

You can download the Kernel Deb binary from the Ubuntu Linux repository or download the script on GitHub using the following command:


Then run the commands below to make the script executable:

chmod +x
sudo mv /usr/local/bin/

Now you can search and find the latest version of Kernel that is available to install with the following command: -c

Also you can see the list of available versions of Kernel to install, using the command below: -r

Run the following command to install the latest version of the Kernel:

sudo -i

If you want to install any other version of the Kernel, you can use the following command:

sudo -i version-number

To list the available versions of Kernel on your system, using the same script, run the command below:

sudo -l

Now restart your system to use the installed version:

sudo reboot

You can check your current version of Kernel using the command below:

uname -r

You can choose which version of the Kernel to run, otherwise by default, Ubuntu automatically selects the latest installed version.

Then run the following command to edit Grub file:

sudo nano /etc/default/grub

Add the lines below to the Grub file, then save it with Ctrl+O, press Enter and finally exit the file with Ctrl+X:


You can update Grub using the following command:

sudo update-grub

Finally restart your system:

sudo reboot

In the system reboot stage, press the Esc key to get the Grub menu, then select Advanced Options for Ubuntu and finally select the default Kernel version for your system:




select-default-kernel on ubuntu


Recommended Article: How to Install apktool on Ubuntu 20.04 [Complete]



[sp_easyaccordion id=”38263″]


As we reviewed, Kernel is the core of Ubuntu and the whole system can not run without it. Also in this article, you learned How to Upgrade Kernel on Ubuntu 20.04 | 22.04, so you can enjoy new features and tools.

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.
  • raul
    1 year ago

    sudo -i
    Finding latest version available on
    Latest version is: v5.19.6, continue? (y/N)

    Abort, the amd64 build has not succeeded
    I don’t think it works.

    • Marilyn Bisson
      Marilyn Bisson
      1 year ago

      Version 5.7.3 get fixed the error, you can install it.


Leave Your Comment

Your email address will not be published.

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way


7 days a week, 24 hours a day