(source: https://linuxconfig.org/how-to-upgrade-kernel-to-latest-version-on-ubuntu-20-04-focal-fossa-linux)

In this tutorial you will learn:

  • How to install kernel upgrade script utility
  • How to to upgrade kernel to latest version
  • How to uninstall previously installed PPA kernels

Upgrade kernel to latest version on Ubuntu 20.04 Focal Fossa Linux

Software Requirements and Conventions Used

CategoryRequirements, Conventions or Software Version Used
SystemInstalled Ubuntu 20.04 or upgraded Ubuntu 20.04 Focal Fossa
OtherPrivileged access to your Linux system as root or via the sudo command.
Conventions# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Upgrade kernel to latest version on Ubuntu 20.04 step by step instructions

  1. First step is to download the ubuntu-mainline-kernel.sh Bash script utility. Open up your terminal and enter:
    $ wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
  2. Next, step is to install the previously downloaded script into our executable path:
    $ sudo install ubuntu-mainline-kernel.sh /usr/local/bin/
  3. All is ready to upgrade the Ubuntu kernel to the latest version. To do so run do following command:
    $ ubuntu-mainline-kernel.sh -i

    Finding latest version available on kernel.ubuntu.com Latest version is: v5.4.3, continue? (y/N) The above command will search for the latest kernel version available. To continue with the kernel installation answer y.
  4. Reboot your Ubuntu system and check for the loaded Kernel version:
    $ uname -rs Latest Kernel version upgrade
  5. To uninstall the PPA kernel version execute the following command and follow to wizard:
    $ ubuntu-mainline-kernel.sh -u

By Stefan

Leave a Reply