For those who want to install the latest Linux Kernel (6.5.x updated), there’s a new apt repository made for Ubuntu 20.04, Ubuntu 22.04, and Debian 12 Bookworm.
As you may know, Ubuntu has a mainline Kernel PPA that keeps building the latest Linux Kernel packages for testing purpose. You can download & install the Kernel packages from there in latest Ubuntu 22.04 LTS, but it won’t work in 20.04 anymore.
For those who need the latest Kernel for new hardware support or compatibility fixes, there’s now a new repository with all current Ubuntu LTS (20.04 & 22.04) and Debian Stable (Bookworm) support.
It’s maintained by Stéphane Graber, Ubuntu core developer and project leader of Linux containers(@lxc), who quit from Canonical last month, after working for the company for 12 years.
And, he made this repository because Ubuntu’s generic kernel that he thought has sadly decreased in quality over time.
The Ubuntu kernel includes a lot of backported fixes and occasionally, those backports go bad, resulting in missing commits, introducing bugs and regressions. Unfortunately the way the Ubuntu kernel is built, tested and published comes with a lot of delays, making fixing such regressions often take weeks if not months
Install Latest Kernel in Ubuntu via new Kernel
UPDATE: Kernel 6.5 is already available in Ubuntu 22.04 repository. Install it by running command
sudo apt install linux-oem-22.04d in terminal.
NOTE 1: This is a trustworthy, but unofficial repository!
NOTE 2: Like Ubuntu Mainline Kernel PPA, the packages aren’t signed, you may need to turn off Secure Boot to boot the new kernel.
First, open terminal either from start menu or ‘Activities’ overview.
1. Install the GPG Key
When terminal opens, first run command to create ‘/etc/apt/keyrings’ directory, in case it does not exist:
sudo mkdir -p /etc/apt/keyrings
Then, run command to download the key and install to that directory:
sudo wget -O - https://pkgs.zabbly.com/key.asc |sudo tee /etc/apt/keyrings/zabbly.asc
2. Set up the source repository
Then, run command below to create & edit the source file:
sudo gedit /etc/apt/sources.list.d/zabbly-kernel-stable.sources
Depends on your desktop environment, replace
gnome-text-editor for Debian 12 GNOME,
mousepad for XFCE, or use
nano that works in most Linux.
When terminal opens, add following lines and save it:
Enabled: yes Types: deb deb-src URIs: https://pkgs.zabbly.com/kernel/stable Suites: jammy Components: main Architectures: amd64 Signed-By: /etc/apt/keyrings/zabbly.asc
NOTE: You have to replace jammy with focal for Ubuntu 20.04, or bookworm for Debian 12. Also, replace amd64 with arm64 for ARM devices, such as Raspberry Pi. For nano text editor, press Ctrl+X, type y and hit Enter to save file.
3. Update package cache & Install Newest Kernel
When done setting up the new source repository and GPG key, run the command below to re-index system package cache:
sudo apt update
Finally, install the latest kernel, 6.5.1 so far, by running command:
sudo apt install linux-zabbly
Finally, restart your machine and run the command below to verify your Kernel version in terminal:
If you have any issue with the new Kernel, just restart and select boot an old Kernel from Grub menu under ‘Advanced Options’.
Then, run the command below to remove the Kernel from Zabbly repository:
sudo apt remove --autoremove linux*zabbly*
Depends on when you tried this tutorial, the package version varies. So, I use asterisk wildcard in command to auto-select any package start with ‘
linux‘ and have ‘
zabbly‘ in between of package name. Just in case, it’s better to keep an eye on terminal output before hitting ‘y’ to confirm.
Also, remove the source repository by running commands below to delete the key and source file:
sudo rm /etc/apt/sources.list.d/zabbly-kernel-stable.sources
sudo rm /etc/apt/keyrings/zabbly.asc
sudo apt update to refresh system package index.