• Start Here
    • How to Install Linux
    • Which Distro To Choose
    • 10 Best Linux Distributions of 2023
  • Distros
    • Ubuntu
  • Linux Commands
  • Virtualization
  • Open Source
Linux Start
  • Start Here
    • How to Install Linux
    • Which Distro To Choose
    • 10 Best Linux Distributions of 2023
  • Distros
    • Ubuntu
  • Linux Commands
  • Virtualization
  • Open Source
Linux Start
Home»Distros»Ubuntu»How To Update Ubuntu Kernel

How To Update Ubuntu Kernel

Anup ThapaBy Anup ThapaFebruary 24, 2023 Ubuntu 2 Mins Read

New kernel versions bring various improvements from security patches and bug fixes to improved performance and stability. 

Generally speaking, keeping up with the Ubuntu LTS release kernels is enough to ensure you’re getting such benefits. But sometimes it’s necessary to install more recent kernel versions for specific reasons like fixing hardware incompatibility. 

With this in mind, we’ll explain how you can update the Ubuntu kernel to the latest Ubuntu release, as well as mainline builds in this article.

Updating Ubuntu Kernel (GUI)

Most users should stick to the latest LTS release generic kernel. You can update to this build easily by using the Software Updater tool.

  1. Launch the Software Updater from the applications menu.
    software-updater-ubuntu
  2. If a new Ubuntu release kernel is available, it’ll be listed in the Details section.  Press Install now to install it and any other updates you want.
    software-updater-install-updates-kernel
  3. Hold Shift and restart when prompted to complete the installation.
  4. Select Advanced options for Ubuntu and select the new kernel when booting.
    ubuntu-kernels-gnu-grub

Installing Mainline Kernel Build

The Mainline Kernel builds are basically unaltered upstream kernels that are configured and packaged as .deb files for Ubuntu. These are intended for debugging purposes and don’t receive any security patches. As such, mainline builds are not recommended for production use. Having said that, installing a mainline build is fairly straightforward. 

You can start by checking your current kernel version.

cat /proc/version_signature

The first series of digits indicates the kernel version, followed by the kernel flavor (default – generic), and finally the mainline kernel-version. 

Download the files for the Kernel version you want. We’ll install v6.0 for this tutorial, so we’ll download the header, image, and module files:

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0/amd64/linux-headers-6.0.0-060000-generic_6.0.0-060000.202210022231_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0/amd64/linux-headers-6.0.0-060000_6.0.0-060000.202210022231_all.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0/amd64/linux-image-unsigned-6.0.0-060000-generic_6.0.0-060000.202210022231_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v6.0/amd64/linux-modules-6.0.0-060000-generic_6.0.0-060000.202210022231_amd64.deb

cd to the directory where the files were downloaded. If the directory only contains the packages downloaded earlier, run

sudo dpkg -i *.deb

If there are other .deb packages too, install each package individually instead with

 sudo dpkg -i <filename>.deb

After installing the kernel, hold Shift and restart your machine. Select Advanced Options for Ubuntu and boot with the new kernel as done in the previous section.

Anup Thapa
  • LinkedIn

Anup Thapa is a Linux enthusiast with an extensive background in computer hardware and networking. At LinuxStart, Anup is an integral part of our editorial team. His goal is to effectively communicate technical concepts in a simplified form understandable by new Linux users. To this end, he mainly writes beginner-friendly tutorials and troubleshooting guides. Outside of work, he enjoys experimenting with different Linux distros and reading up on things like networking and virtualization.

Leave A Reply Cancel Reply

Table of Contents
  • Updating Ubuntu Kernel (GUI)
  • Installing Mainline Kernel Build
Linux Start
Guides

What is the Linux Kernel?

The Linux Kernel is the core of the Linux operating system and is central to…

How To Install Linux Mint

How To Install Linux on VirtualBox

Getting Started with Linux

How to Install Linux

10 Best Linux Distros of 2023

Which Linux Distro Should You Choose? A Complete Guide to Help You Decide

© 2023 LinuxStart.com

Type above and press Enter to search. Press Esc to cancel.