More

    Check and update the Ubuntu Kernel version of Ubuntu 20.04 – Linux Hint

    The Linux kernel is the heart of the Linux operating system. She is responsible for the interaction between the hardware and the software of this operating system. As with the constant updates of the Linux operating system and applications, new versions of the Linux kernel are also being released. It is recommended to update the kernel version with the latest features, better stability and security patches.

    In this article we explain three ways to upgrade the Linux kernel to the latest available version. We explained the procedure on Ubuntu 20.04 LTS, which comes with kernel version 5.4. A more or less similar procedure can be performed with earlier versions of Ubuntu OS.

    Check the current kernel version

    It is best to check the current version before updating the kernel version. This will help you decide what the new version of your kernel is. Open the command line using the key combination Ctrl+Alt+T.

    Now check the current kernel version directly from the command line, as shown below

    http://31.220.61.170/wp-content/uploads/2020/05/Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    You can also check the kernel version with the following command

    http://31.220.61.170/wp-content/uploads/2020/05/1589729800_328_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    If you use one of the above commands, you will be notified of the kernel version of your operating system. From the result above you can see that the kernel version 5.4.0-28 used in this article is generic.

    In the following methods, I will show you how to update the kernel version from the command line.

    Procedure 1: Ubuntu CoreTeam website

    The following method allows you to update the kernel version by downloading and installing the latest version from the Ubuntu kernel team website.

    For this method, perform the following steps to update the kernel version:

    1. Open the Ubuntu kernel command page to download the latest Linux kernel for Ubuntu. Select the version you want to download and then download the .deb files for the generic version.
    • linux headers-all-deb
    • linux-mage-unsigned-amd64.deb
    • Linux Modules–amd64.deb

    We want to update our kernel to the latest stable 5.6.10 release. So we downloaded the following .deb files

    linux headers-5.6.10-050610_5.6.10-050610.202005052301_all.deb

    linux-image-unsigned-5.6.10-050610-generic_5.6.10-050610.202005052301_amd64.deb

    linux modules-5.6.10-050610-generation_5.6.10-050610.202005052301_amd64.deb

    You can also use the wget command to download the following packages for kernel version 5.6.10

    $ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.10/linux-image-unsigned-
    5.6.10-050610_5.6.10-050610.202005052301_all.deb
    $ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.10/linux-image- unsigned-
    5.6.10-050610-genic_5.6.10-050610.202005052301_amd64.deb
    $ wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.10/linux-modules-5.6.10-
    050610-genic_5.6.10-050610.202005052301_amd64.deb.

    1. When all packages have been downloaded, you can check them with the command ls -l: http://31.220.61.170/wp-content/uploads/2020/05/1589729801_971_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png .
    2. The next step is the installation of all downloaded packages. If you have downloaded files from a folder other than Home, first browse to that folder using the CD command :

    Now install all downloaded .deb files. You can do this with the following command:

    http://31.220.61.170/wp-content/uploads/2020/05/1589729801_322_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    Please wait until the installation of all packages has been completed.

      1. Reboot the system. After the reboot is complete, log in and check the kernel version with the uname command as follows:

    The output shows the updated kernel version 5.6.10. http://31.220.61.170/wp-content/uploads/2020/05/1589729801_436_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png .

    Method 2: Use of the bash-script

    In the following method we will use the bash-script to install a new kernel version. Follow these simple steps:

    1. Download the bash-script with the following command:

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

    2. Copy the script to /usr/local/bin/. You can do this with the following command:

    $ install sudo ubuntu-mainline-kernel.sh /usr/local/bin/

    http://31.220.61.170/wp-content/uploads/2020/05/1589729802_784_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    3. You can now update the kernel version as follows:

    $ Ubuntu-mainline-kernel.sh -i

    It searches for and reports the last kernel version number, e.g. v5.6.10, in the next version. If you want to install this version, press B and the installation will start.

    http://31.220.61.170/wp-content/uploads/2020/05/1589729802_204_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    Restart the system after installation. Then check the kernel version with the uname command as follows:

    The output shows the updated version of the kernel

    Method No 3: Upgrading the Ubuntu kernel version via GUI

    In the following method we will discuss the GUI method for updating the Linux kernel. To install the latest version of the kernel, we use the graphical Mainline tool. Here are the simple steps:

    1. The main tool is not available in the official Ubuntu repositories, so we need to manually add the PPA to our system source.list file. Use the apt-add repository command:

    $ sudo apt-add-repository -y ppa:cappelikan/ppa

    http://31.220.61.170/wp-content/uploads/2020/05/1589729802_603_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    2. After adding the main repository, the next step is to update the system repository index:

    http://31.220.61.170/wp-content/uploads/2020/05/1589729803_3_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    3. Then install the Mainline tool with this command :

    $ sudo apt Installation on the main line

    http://31.220.61.170/wp-content/uploads/2020/05/1589729803_117_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    The system can ask you for confirmation by giving you a J/N option. Press Y to continue, and the Main Tool will be installed on your system.

    4. Start the main tool of the Ubuntu search bar as follows:

    http://31.220.61.170/wp-content/uploads/2020/05/1589729803_331_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    5. When you run the main tool, you will see the following installation window with a list of new and available kernel versions. You can install a new version by selecting the version from the list and clicking the Install button on the right.

    http://31.220.61.170/wp-content/uploads/2020/05/1589729803_272_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    After this step, the following authentication dialog will be displayed. Enter the superuser password and click Authenticate.

    http://31.220.61.170/wp-content/uploads/2020/05/1589729804_672_Check-and-Update-Ubuntu-Kernel-Version-on-Ubuntu-20.04--.png-.png

    The installation of the selected kernel version starts and you can see the installation process in a new window.

    Now reboot the system and check the new kernel version:

    In this article we have explained three different ways to upgrade a kernel version to Ubuntu 20.04 LTS. After a kernel upgrade, problems can sometimes occur at boot time. In this case, you must return to the old kernel at boot time by pressing the Shift key and selecting the old version from the list.linuxhint,update ubuntu 18.04 command line,ubuntu 20.04 upgrade

    Recent Articles

    How to install YouPHPTube on your Ubuntu 18.04 server

    This tutorial shows you how to create your own video-sharing site from YouPHPTube to Ubuntu 18.04. YouPHPTube is an alternative to open source websites...

    Cash-flashing rapper charged with money laundering against BTC-e – Naked Security

    A 29-year-old Russian rapper who likes to do what rappers do – such as posting his photos on social media, kissing cotton wool or...

    Set up your own VPN server on Ubuntu

    This tutorial is going to show you how to set up your own WireGuard VPN server on Ubuntu. WireGuard is made specifically for the...

    How to Create a Custom File Icon

    You searched everywhere for the perfect icon theme, but didn’t like what you found, so you decided to make your own folder icon. Which...

    Check and update the Ubuntu Kernel version of Ubuntu 20.04 – Linux Hint

    The Linux kernel is the heart of the Linux operating system. She is responsible for the interaction between the hardware and the software of...

    Related Stories