This article explains three ways to update the Linux kernel to the latest available version. We have explained the procedure in Ubuntu 20.04 LTS, which ships with kernel version 5.4.
This article will show you how to update the Linux kernel to the latest version on Ubuntu. Two methods are discussed. One manually installs a new kernel and the other uses a graphical tool, which is an even easier way.
I think you already know what the Linux kernel is. This is the main software that controls every Linux distribution. Linus Torvalds worked on this about 30 years ago and he is still working on it.
Every few months a newer version of the Linux kernel is released, with new features (e.g. more hardware support), bug fixes, etc. published.
However, most Linux distributions do not offer the latest Linux kernel unless you are using Arch-based or another continuous distribution.
Linux distributions are responsible for the stability of your system. For this reason, they do not release a newer version of the Linux kernel to their users unless they test it for regression. They often base a specific kernel version and provide you with updates to that base kernel instead of theGet you the latest version of the main kernel.
This does not mean that you cannot use the latest Linux kernel on Ubuntu or whatever distribution you use.
In this tutorial, I will go over the different ways to get a new Linux kernel on Ubuntu.
If You Like What We Do Here At TecMint, Here Are A Few Things To Consider:
TecMint is the fastest growing and most trusted community site for all kinds of Linux articles, tutorials and books on the Internet. Millions of people visit TecMint! to view thousands of published articles available for FREE for everyone.
If you like what you are reading, buy us a coffee (or 2) as a thank you.
We are grateful for your continued support.
Method 1: Ubuntu Kernel Team Site
In the method below, we update the kernel version by first downloading the latest version from the Ubuntu Kernel Team site and then installing it.
For this method, follow these steps to update your kernel version:
- Navigate to Ubuntu kernel command to download the latest Linux kernel for Ubuntu. Select the version you want to download, and then download the .deb files for the shared version. < / Li>
- Linux header –
We want to update the kernel to the latest stable kernel 5.6.10. So, we have downloaded the following .deb files.
You can also use the wget command to download the following core packages for kernel 5.6.10:
- After downloading all packages, you can check them with the “ls” command:
- The next step is to install inall downloaded packages. If you downloaded files to a directory other than your home directory, first navigate there using the cd command:
Now install all downloaded .deb files. You can do this with the following command:
Wait for all packages to complete the installation.
- Reboot your system. Once the reboot is complete, log in to your system and check the kernel version with the following uname command:
The output shows the updated kernel 5.6.10. “>
Method 2: Use A Bash Script
In the next method, we will use a bash script to install a new version of the kernel. To do this, follow these simple steps:
1. Load the bash script with the following command:
2. Copy the script to the “/ usr / local / bin /” directory. You can do this with the following command:
3. Now you can update the kernel version as followsm:
It will look for the latest kernel version number and provide it, for example, v5.6.10 in the next release. If you want to install this version, press B and the installation will begin.
After installation, reboot your system. Then check the kernel version using the uname command as follows:
The output shows the updated kernel version
Method 3: Upgrade Ubuntu Kernel Through The GUI
The following method explains the GUI method for updating the Linux kernel. We will use a basic GUI tool to install the latest kernel. Here are the simple steps to do this:
1. The main tool is not available in the official Ubuntu repos, so we need to manually add its PPA to our sources.list file on our system. To do this, use the apt-add-repository command:
2. After adding the main repository, you need to update the system repository index in the next step:
3. Then install the main tool with the following command:
The system may ask for confirmation with the O / N option. Press Y to continue. This will install the main tool on your system.
4. Run the main tool through the Ubuntu search bar as follows:
5. When you run the main tool, the following installation window appears with a list of new and available kernel versions. You can install a new version by selecting a version from the list and clicking the Install button on the right panel.
After this step, the following authentication dialog will appear. Enter the superuser password and click the “Authentication” button.
The installation of the selected kernel version starts and you can see the installation progress in a new window.
Now laneUnboot the system and check for a new kernel version:
In this article, we discussed three different methods for updating the kernel version in Ubuntu 20.04 LTS. After updating the kernel, you may sometimes have problems during system startup. In this case, go back to the old kernel by holding down the Shift key while booting and select the old version from the list.
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.10/linux-headers-
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.10/linux-image-unsigned-
$ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.10/linux-modules-5.6.10-
$ wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/
master / ubuntu-mainline-kernel.sh
$ sudo install ubuntu-mainline-kernel.sh / usr / local / bin /
$ Ubuntu-mainline-kernel.sh â € “I
$ sudo apt-add-repository -y ppa: cappelikan / ppa
$ sudo apt install mainline
Karim Buzdar holds a degree in telecommunications engineering and several system administrator certificates. As an engineer and IT professional