How to Upgrade to Linux Kernel 5.18 on Ubuntu 22.04

This guide is applicable only for Ubuntu 22.04, it will not work on previous or other versions.

First, Let's update the system,

apt update && apt upgrade -y

Let's check the current version of our machine's kernel using below command,

uname -r

Output:

root@vps:~# uname -r
5.15.0-30-generic
root@vps:~# 

Downloading the Linux Kernel Headers, Modules and Image,

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.18/amd64/linux-headers-5.18.0-051800-generic_5.18.0-051800.202205222030_amd64.deb

Download the another generic header file,

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.18/amd64/linux-headers-5.18.0-051800_5.18.0-051800.202205222030_all.deb

Download the Linux Kernel module run the below command,

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.18-rc1/amd64/linux-modules-5.18.0-051800rc1-generic_5.18.0-051800rc1.202204032230_amd64.deb

Download the Linux Kernel Image using below command,

wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.18/amd64/linux-image-unsigned-5.18.0-051800-generic_5.18.0-051800.202205222030_amd64.deb

Install Linux Kernel 5.18 on Ubuntu 22.04

Install Linux Kernel 5.18, run the below command,

dpkg -i *.deb

Reboot your system to upgrade the Kernel,

reboot -n 

After reboot let's check the Kernel version,

uname -r

Output:

root@vps:~# uname -r
5.18.0-051800-generic
root@vps:~# 

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