How to upgrade kernel to latest version on Ubuntu 20.04

First download the bash script utility from the github by using "wget" command.



root@vps:~# wget
--2020-05-04 23:14:13--
Resolving (,,, ...
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25087 (24K) [text/plain]
Saving to: ‘’

ubuntu-mainline-kerne 100%[======================>]  24.50K  --.-KB/s    in 0.005s

2020-05-04 23:14:13 (4.90 MB/s) - ‘’ saved [25087/25087]

Install the previously downloaded script into our executable path with following command.

install /usr/local/bin/

Next, Run the downloaded script to upgrade the Ubuntu kernel to the latest version. During the time of installation it'll ask you permission to install latest kernel version press "Y" to continue. -i


root@vps:~# -i
Finding latest version available on
Latest version is: v5.6.7, continue? (y/N)
Will download 6 files from
Downloading CHECKSUMS: 100%
Downloading CHECKSUMS.gpg: 100%
Downloading linux-headers-5.6.7-050607-generic_5.6.7-050607.202004230933_amd64.deb: 100%
Downloading linux-headers-5.6.7-050607_5.6.7-050607.202004230933_all.deb: 100%
Downloading linux-image-unsigned-5.6.7-050607-generic_5.6.7-050607.202004230933_amd64.deb: 100%
Downloading linux-modules-5.6.7-050607-generic_5.6.7-050607.202004230933_amd64.deb: 100%
Importing kernel-ppa gpg key ok
Signature of checksum file has been successfully verified
Checksums of deb files have been successfully verified with sha256sum
Installing 4 packages
Cleaning up work folder

Once upgrade command is over reboot your Ubuntu system and check for the loaded Kernel version.

uname -rs


root@vps:~# uname -rs
Linux 5.6.7-050607-generic