How to upgrade Linux Kernel 5.13 to 5.15 on Ubuntu 21.10

In this tutorial, we are going to learn how to upgrade Linux Kernel 5.13 to 5.15 on Ubuntu 21.10.

Linux 5.15 mainline was released recently by Linux Torvalds with better new features to try out. The mainline tree is maintained by Linus Torvalds and It is where all new features are added and releases always come from.

The new release has come with notable features such as:

  • The new release added new NTFS3 file system developed by Paragon software.
  • Introduction of ASUS ACPI platform to support Asus computers
  • AMD Zen 3 APU introduced for temperature monitoring
  • Apple M1 IOMMU introduced to tap in on the apple products
  • RDNA2 PCI IDs introduced to give good graphics.

You can learn many more features introduced from this article.

Related materials

Installing Linux Kernel 5.15

First, we can check to see the kernel version we are running currently. uname -r command

$ uname -r

For my case am running Linux Kernel 5.13. We can upgrade to the newer Linux kernel 5.15. Follow along for details.

Let’s update our system first so that all repositories are up to date. To update the system we used the following command.

$ sudo apt update && sudo apt upgrade -y 

After the process is complete we can now download the Linux kernel headers from Ubuntu kernel mainline page. Use the following code to accomplish that:

$ wget -c
# wget -c
--2021-11-01 10:58:10--
Resolving (
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12189104 (12M) [application/x-debian-package]
Saving to: ‘linux-headers-5.15.0-051500rc7_5.15.0-051500rc7.202110251930_all.deb’

linux-headers-5.15.0-051500r 100%[===========================================>]  11.62M  16.1MB/s    in 0.7s    

2021-11-01 10:58:11 (16.1 MB/s) - ‘linux-headers-5.15.0-051500rc7_5.15.0-051500rc7.202110251930_all.deb’ saved [12189104/12189104]
  • wget: this is used to retrieved content from the website.
  • wget -c: instruct the system to continue downloading partially downloaded images.

Next, we can download Linux Generic headers with the following command.

$ wget -c

When this is complete we can now download Linux kernel image from the following:

wget -c

Lastly, we can download the modules required to build the kernel.

$ wget -c

Install new kernel now with the following command:

$ # sudo dpkg -i *.deb
Selecting previously unselected package linux-headers-5.15.0-051500rc7-generic.
(Reading database ... 62253 files and directories currently installed.)
Preparing to unpack linux-headers-5.15.0-051500rc7-generic_5.15.0-051500rc7.202110251930_amd64.deb ...
Unpacking linux-headers-5.15.0-051500rc7-generic (5.15.0-051500rc7.202110251930) ...
Selecting previously unselected package linux-headers-5.15.0-051500rc7.
Preparing to unpack linux-headers-5.15.0-051500rc7_5.15.0-051500rc7.202110251930_all.deb ...
Unpacking linux-headers-5.15.0-051500rc7 (5.15.0-051500rc7.202110251930) ...
Selecting previously unselected package linux-image-unsigned-5.15.0-051500rc7-generic.
Preparing to unpack linux-image-unsigned-5.15.0-051500rc7-generic_5.15.0-051500rc7.202110251930_amd64.deb ...
Unpacking linux-image-unsigned-5.15.0-051500rc7-generic (5.15.0-051500rc7.202110251930) ...
Selecting previously unselected package linux-modules-5.15.0-051500rc7-generic.
Preparing to unpack linux-modules-5.15.0-051500rc7-generic_5.15.0-051500rc7.202110251930_amd64.deb ...
Unpacking linux-modules-5.15.0-051500rc7-generic (5.15.0-051500rc7.202110251930) ...
Setting up linux-headers-5.15.0-051500rc7 (5.15.0-051500rc7.202110251930) ...
Setting up linux-headers-5.15.0-051500rc7-generic (5.15.0-051500rc7.202110251930) ...
Setting up linux-image-unsigned-5.15.0-051500rc7-generic (5.15.0-051500rc7.202110251930) ...
I: /boot/vmlinuz is now a symlink to vmlinuz-5.15.0-051500rc7-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.15.0-051500rc7-generic
Setting up linux-modules-5.15.0-051500rc7-generic (5.15.0-051500rc7.202110251930) ...
Processing triggers for linux-image-unsigned-5.15.0-051500rc7-generic (5.15.0-051500rc7.202110251930) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-051500rc7-generic
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-051500rc7-generic
Found initrd image: /boot/initrd.img-5.15.0-051500rc7-generic
Found linux image: /boot/vmlinuz-5.13.0-20-generic
Found initrd image: /boot/initrd.img-5.13.0-20-generic

Reboot the system

After installation is complete we can reboot the system for the new changes to take effect.

$ sudo shutdown -r now 

Now you can check the version of the Linux kernel you are running again to see if we are successful with our installation

# uname -r

To check the operating system you are running, use the following command to do so:

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 21.10
Release:        21.10
Codename:       impish

Congratulations you have upgraded from Linux kernel 5.13-generic to 5.15-generic.


We have successfully upgraded our Linux Kernel from 5.13 to 5.15. If you encounter any problem feel free to contact us or you can consult Linux Mainline Documentation.

About Kipkoech Sang

I am a technology enthusiast who loves to share gained knowledge through offering daily tips as a way of empowering others. I am fan of Linux and all other things open source.
View all posts by Kipkoech Sang →

Leave a Reply

Your email address will not be published.