Advance

Tutorial Upgrade Kernel on Ubuntu 20.04 | 22.04

Tutorial-Upgrade-Kernel-on-Ubuntu-20.04-22.04
3
(2)

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:

wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh

Then run the commands below to make the script executable:

chmod +x ubuntu-mainline-kernel.sh
sudo mv ubuntu-mainline-kernel.sh /usr/local/bin/

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

ubuntu-mainline-kernel.sh -c

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

ubuntu-mainline-kernel.sh -r

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

sudo ubuntu-mainline-kernel.sh -i

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

sudo ubuntu-mainline-kernel.sh -i version-number

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

sudo ubuntu-mainline-kernel.sh -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:

GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved

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:

 

Advanced-options-for-Ubuntu

*

select-default-kernel on ubuntu

 

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

 

FAQ

[sp_easyaccordion id=”38263″]

Conclusion

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 3 / 5. Vote count: 2

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.

2 thoughts on “Tutorial Upgrade Kernel on Ubuntu 20.04 | 22.04

  1. sudo ubuntu-mainline-kernel.sh -i
    Finding latest version available on kernel.ubuntu.com
    Latest version is: v5.19.6, continue? (y/N)

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

Leave a Reply

Your email address will not be published. Required fields are marked *

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

+8595670151

7 days a week, 24 hours a day