How to upgrade kernel to latest version on Ubuntu 20.04
First download the bash script utility from the github by using "wget" command.
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
Output:
root@vps:~# wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
--2020-05-04 23:14:13-- https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.192.133, 151.101.128.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.192.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25087 (24K) [text/plain]
Saving to: ‘ubuntu-mainline-kernel.sh’
ubuntu-mainline-kerne 100%[======================>] 24.50K --.-KB/s in 0.005s
2020-05-04 23:14:13 (4.90 MB/s) - ‘ubuntu-mainline-kernel.sh’ saved [25087/25087]
Install the previously downloaded script into our executable path with following command.
install ubuntu-mainline-kernel.sh /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.
ubuntu-mainline-kernel.sh -i
Output:
root@vps:~# ubuntu-mainline-kernel.sh -i
Finding latest version available on kernel.ubuntu.com
Latest version is: v5.6.7, continue? (y/N)
Will download 6 files from kernel.ubuntu.com:
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
Output:
root@vps:~# uname -rs
Linux 5.6.7-050607-generic
Done!
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS