{"id":44254,"date":"2023-08-26T09:00:22","date_gmt":"2023-08-26T09:00:22","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=44254"},"modified":"2026-06-17T15:53:42","modified_gmt":"2026-06-17T15:53:42","slug":"install-latest-kernel-new-repository","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/08\/install-latest-kernel-new-repository\/","title":{"rendered":"Install Linux Kernel (7.1 or 7.0) in Ubuntu 26.04, 24.04, 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-35489\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/11\/tux-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><b>Want to install the most recent Linux Kernel 7.1 or 7.0? Here&#8217;s the step by step guide shows how to do the job in current Ubuntu 26.04, Ubuntu 24.04, and\/or Ubuntu 22.04 LTS.<\/b><\/p>\n<p>As you may know, Ubuntu has an official <a href=\"https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/\" target=\"_blank\" rel=\"noopener\">mainline Kernel PPA<\/a> that keeps building the latest Linux Kernel packages for testing purpose.<\/p>\n<p><!--more--><\/p>\n<p>As the most recent mainline Kernel PPA packages only install on Ubuntu 24.04 and higher, you may also choose another repository maintained by former core Ubuntu developer that supports Ubuntu 22.04.<\/p>\n<p><b>NOTE 1: The kernel packages below are for testing purpose. They do NOT include Ubuntu specific drivers and patches. Some software (e.g., Waydroid and NVIDIA proprietary driver) are not guaranteed to work with them.<\/b><\/p>\n<p><b>NOTE 2: And, they are NOT signed, you probably need to disable Secure Boot for being able to boot them.<\/b><\/p>\n<h3>Option 1: Install Kernel 7.1 from mainline Kernel PPA<\/h3>\n<p>For <b>Ubuntu 24.04<\/b> and <b>Ubuntu 26.04<\/b>, you may simply download &amp; install the latest Kernel via deb packages from <a href=\"https:\/\/kernel.ubuntu.com\/mainline\/\" target=\"_blank\" rel=\"noopener\">mainline Kernel PPA<\/a>.<\/p>\n<p>It usually supports Ubuntu on <code>amd64<\/code>, <code>arm64<\/code>, <code>armhf<\/code>, <code>ppc64el<\/code>, and <code>s390x<\/code> platforms, however, lacks the way to automatically install updates. Meaning, you need to do the manual download &amp; install process again and again to keep the kernel up-to-date.<\/p>\n<p><i>NOTE: In my case, the mainline Kernel 7.1 refuse to boot in Ubuntu 26.04 with Kernel panic, but it&#8217;s working good in same laptop with Ubuntu 24.04.<\/i><\/p>\n<p><b>1.<\/b> For the latest Kernel 7.1.0, go to the link below:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/kernel.ubuntu.com\/mainline\/v7.1\/\" target=\"_blank\" rel=\"noreferrer noopener\">Download Kernel 7.1 (.deb)<\/a><\/div>\n<\/div>\n<p>Then select download the packages below according to your CPU architecture type:<\/p>\n<ul>\n<li>linux-headers-7.1.0-070100-generic_7.1.0-070100.202606141628_xxxx.deb<\/li>\n<li>linux-headers-7.1.0-070100_7.1.0-070100.202606141628_all.deb<\/li>\n<li>linux-image-unsigned-7.1.0-070100-generic_7.1.0-070100.202606141628_xxxx.deb<\/li>\n<li>linux-modules-7.1.0-070100-generic_7.1.0-070100.202606141628_xxxx.deb<\/li>\n<\/ul>\n<p>If you even don&#8217;t know your CPU type, press Ctrl+Alt+T to open terminal and run <code>dpkg --print-architecture<\/code> command to tell.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-kernel71mainline.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51405\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-kernel71mainline-700x531.webp\" alt=\"\" width=\"610\" height=\"463\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-kernel71mainline-700x531.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-kernel71mainline-300x228.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-kernel71mainline-768x583.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-kernel71mainline.webp 1182w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>2.<\/b> After downloaded all the .deb packages, either right-click on blank area in Downloads folder and select &#8220;Open in Terminal&#8221;, or press Ctrl+Alt+T to open terminal and run <code>cd ~\/Downloads<\/code> to navigate to that folder.<\/p>\n<p>Finally, run the commands below to install all the .deb packages:<\/p>\n<pre>sudo apt install .\/linux*.deb<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51406\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-kernel710debs-700x431.webp\" alt=\"\" width=\"610\" height=\"376\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-kernel710debs-700x431.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-kernel710debs-300x185.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-kernel710debs-768x473.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-kernel710debs.webp 1277w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>For Ubuntu Server user without a desktop environment, then run the commands below one by one to download the Kernel 7.1 .deb packages and install them:<\/p>\n<pre>wget -c https:\/\/kernel.ubuntu.com\/mainline\/v7.1\/amd64\/linux-headers-7.1.0-070100-generic_7.1.0-070100.202606141628_amd64.deb\r\nwget -c https:\/\/kernel.ubuntu.com\/mainline\/v7.1\/amd64\/linux-headers-7.1.0-070100_7.1.0-070100.202606141628_all.deb\r\nwget -c https:\/\/kernel.ubuntu.com\/mainline\/v7.1\/amd64\/linux-image-unsigned-7.1.0-070100-generic_7.1.0-070100.202606141628_amd64.deb\r\nwget -c https:\/\/kernel.ubuntu.com\/mainline\/v7.1\/amd64\/linux-modules-7.1.0-070100-generic_7.1.0-070100.202606141628_amd64.deb\r\nsudo apt install .\/linux-*7.1.0*.deb<\/pre>\n<p>The last 5 commands are for modern Intel\/AMD platform, replace the URLs accordingly for other CPU architecture types.<\/p>\n<p>After installed the new Kernel packages, run the command below to update bootloader:<\/p>\n<pre>sudo update-grub<\/pre>\n<p>Finally, restart computer and run the command below to verify:<\/p>\n<pre>uname -a<\/pre>\n<h4>Uninstall<\/h4>\n<p>To uninstall the mainline 7.1 kernel, first reboot and choose an old Kernel from &#8220;Advanced options for Ubuntu &#8230;&#8221; in the boot menu. Finally, run the command below to uninstall:<\/p>\n<pre>sudo apt remove linux-headers-7.1.0-070100* linux-image-unsigned-7.1.0-070100-generic linux-modules-7.1.0-070100-generic<\/pre>\n<h3>Option 2: Install Kernel (7.0 so far) from Zabbly Repository<\/h3>\n<p>As mentioned, the former Ubuntu core developer, <a href=\"https:\/\/wiki.ubuntu.com\/stgraber\" target=\"_blank\" rel=\"noopener\">St\u00e9phane Graber<\/a>, also maintains an apt repository that contains Linux Kernel packages for <strong>Ubuntu 22.04<\/strong>, <strong>Ubuntu 24.04<\/strong>, <strong>Ubuntu 26.04<\/strong>, as well as <strong>Debian 12<\/strong> and <strong>13<\/strong>.<\/p>\n<p>He made this repository because Ubuntu&#8217;s generic kernel that <a href=\"https:\/\/stgraber.org\/2023\/08\/24\/stable-linux-mainline-builds\/\" target=\"_blank\" rel=\"noopener\">he thought<\/a>\u00a0has sadly decreased in quality over time.<\/p>\n<blockquote><p>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<\/p><\/blockquote>\n<p>The Zabbly repository is great if you want to install the latest kernel and keep it up-to-date by using &#8220;Software Updater&#8221; (or <code>apt upgrade<\/code> command), but it usually has a few weeks delay for the new major version, probably because it only builds the kernels marked as &#8220;stable&#8221; in <a href=\"https:\/\/kernel.org\/\" target=\"_blank\" rel=\"noopener\">Kernel.org<\/a>.<\/p>\n<h4>1. Install the GPG Key<\/h4>\n<p>First, press Ctrl+Alt+T on keyboard to open terminal, then run command to create &#8216;\/etc\/apt\/keyrings&#8217; directory, in case it does not exist:<\/p>\n<pre>sudo mkdir -p \/etc\/apt\/keyrings<\/pre>\n<p>Next, run command to download the key and install to that directory you just created:<\/p>\n<pre>sudo wget -O - https:\/\/pkgs.zabbly.com\/key.asc |sudo tee \/etc\/apt\/keyrings\/zabbly.asc<\/pre>\n<p><i>Re-run the command to update the key if expired.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-zabbly-keyring.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44255\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-zabbly-keyring-600x385.webp\" alt=\"\" width=\"600\" height=\"385\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-zabbly-keyring-600x385.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-zabbly-keyring-300x193.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-zabbly-keyring-768x493.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/download-zabbly-keyring.webp 858w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h4>2. Set up the source repository<\/h4>\n<p>Then, run command below to create &amp; edit the source file:<\/p>\n<pre>sudo gnome-text-editor \/etc\/apt\/sources.list.d\/zabbly-kernel-stable.sources<\/pre>\n<p><i>Depends on your desktop environment, replace <code>gnome-text-editor<\/code> with <code>gedit<\/code> for Ubuntu 22.04 and earlier, <code>mousepad<\/code> for XFCE, or use <code>nano<\/code> that works in most desktops<\/i>.<\/p>\n<p>When terminal opens, add following lines and save it:<\/p>\n<pre><code>Enabled: yes\r\nTypes: deb deb-src\r\nURIs: https:\/\/pkgs.zabbly.com\/kernel\/stable\r\nSuites: noble\r\nComponents: main\r\nArchitectures: amd64\r\nSigned-By: \/etc\/apt\/keyrings\/zabbly.asc<\/code><\/pre>\n<p>NOTE: You have to replace <b>noble<\/b> (for 24.04, Linux Mint 22) in the code with<\/p>\n<ul>\n<li><b>jammy<\/b> for Ubuntu 22.04, Linux Mint 21.<\/li>\n<li><b>trixie<\/b> for Debian 13<\/li>\n<li>or <b>bookworm<\/b> for Debian 12.<\/li>\n<\/ul>\n<p>Also, replace <b>amd64<\/b> with <b>arm64<\/b> for ARM devices, such as Raspberry Pi. For nano text editor, press Ctrl+S to save, then Ctrl+X to exit.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/zabbly-repo-noble.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48788\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/zabbly-repo-noble-700x355.webp\" alt=\"\" width=\"610\" height=\"309\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/zabbly-repo-noble-700x355.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/zabbly-repo-noble-300x152.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/zabbly-repo-noble-768x389.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/zabbly-repo-noble.webp 892w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h4>3. Update package cache &amp; Install Newest Kernel<\/h4>\n<p>When done setting up the new source repository and GPG key, run the command below to re-index system package cache:<\/p>\n<pre>sudo apt update<\/pre>\n<p>Finally, install the latest kernel, 7.0.x so far, by running command:<\/p>\n<pre>sudo apt install linux-zabbly<\/pre>\n<p><i>Tips: If the last command does not work, then try the command below to specify Kernel version, which also works for Kernel 6.19, 6.18, etc releases.<\/i><\/p>\n<pre>sudo apt install linux-headers-7.0.12-zabbly+ linux-image-7.0.12-zabbly+<\/pre>\n<p><i>The minor version number varies as time goes on. Type the first half of the last command (<code>sudo apt install linux-headers-7.0<\/code>) and hit Tab to list all available choices.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51407\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-zabbly70-700x452.webp\" alt=\"\" width=\"610\" height=\"394\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-zabbly70-700x452.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-zabbly70-300x194.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/apt-zabbly70.webp 714w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<h4>4. Verify<\/h4>\n<p>Finally, restart your machine and run the command below to verify your Kernel version in terminal:<\/p>\n<pre>uname -a<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51408\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/about-ker70zablly-700x528.webp\" alt=\"\" width=\"610\" height=\"460\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/about-ker70zablly-700x528.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/about-ker70zablly-300x226.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/08\/about-ker70zablly.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<h3>Uninstall:<\/h3>\n<p>If you have any issue with the new Kernel, just restart and select <b>boot an old Kernel<\/b> from Grub menu under &#8216;Advanced Options for Ubuntu &#8230;&#8217;.<\/p>\n<p>Then, run the command below to remove the Kernel from Zabbly repository:<\/p>\n<pre>sudo apt remove --autoremove linux*zabbly*<\/pre>\n<p><i>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 &#8216;<code>linux<\/code>&#8216; and have &#8216;<code>zabbly<\/code>&#8216; in between of package name. Just in case, it&#8217;s better to keep an eye on terminal output before hitting &#8216;y&#8217; to confirm.<\/i><\/p>\n<p>Also, remove the source repository by running commands below to delete the key and source file:<\/p>\n<pre>sudo rm \/etc\/apt\/sources.list.d\/zabbly-kernel-stable.sources<\/pre>\n<pre>sudo rm \/etc\/apt\/keyrings\/zabbly.asc<\/pre>\n<p>Finally, run <code>sudo apt update<\/code> to refresh system package index.<\/p>","protected":false},"excerpt":{"rendered":"<p>Want to install the most recent Linux Kernel 7.1 or 7.0? Here&#8217;s the step by step guide shows how to do the job in current Ubuntu 26.04, Ubuntu 24.04, and\/or Ubuntu 22.04 LTS. As you may know, Ubuntu has an official mainline Kernel PPA that keeps building the latest Linux Kernel packages for testing purpose.<\/p>\n","protected":false},"author":1,"featured_media":35489,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[160],"class_list":["post-44254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-kernel"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=44254"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44254\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/35489"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=44254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=44254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=44254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}