To update the Linux kernel on Ubuntu, run sudo apt update and sudo apt full-upgrade, then reboot. That installs the newest kernel Canonical has built, signed and patched for your release, and for most machines it is the right answer. On 24.04 the next step up is the HWE kernel, one package away. Going past that, to the kernel.org release that Ubuntu has not packaged yet, takes one of three routes, and only two of them still install cleanly on both LTS releases.
This guide does the supported update first, then the mainline packages, the Zabbly repository and a source build packaged as .deb files. It also fixes DKMS and Secure Boot failures. We re-ran every route on Ubuntu 26.04.1 LTS and 24.04.5 LTS in November 2026, with Linux 7.3.5 as the newest stable release on kernel.org, and the few results carried over from our October run say so.
Update the kernel with apt
Start with the kernel you are running now. It is the one you fall back to if anything later goes wrong, and the one whose config the source build copies:
uname -r
Both of our test machines were Google Cloud VMs, which run Ubuntu’s cloud kernel flavour, so they printed a -gcp release. A desktop or bare-metal server prints -generic instead, and everything in this section works the same way for both:
7.0.0-1017-gcp
Refresh the package lists and see whether a kernel update is waiting. Ubuntu ships kernels as a metapackage, such as linux-generic, that points at the current versioned image, so the update shows up as the metapackage moving to a new version:
sudo apt update
apt list --upgradable | grep ^linux
On the 26.04 VM a new kernel build was waiting, along with the matching tools packages:

Install it with full-upgrade. Each kernel build is a new package name, linux-image-7.0.0-1018-gcp here. apt-get upgrade keeps back any upgrade that needs a new package, so if you only ever run that, your kernel never moves. full-upgrade also lets apt remove a package when a transition needs it.
sudo apt full-upgrade
The lines worth reading come at the end. The image package builds an initramfs (dracut on 26.04, update-initramfs on 24.04) and then regenerates the GRUB menu, which now lists both kernels:
Setting up linux-image-7.0.0-1018-gcp (7.0.0-1018.20) ...
I: /boot/vmlinuz is now a symlink to vmlinuz-7.0.0-1018-gcp
I: /boot/initrd.img is now a symlink to initrd.img-7.0.0-1018-gcp
Processing triggers for linux-image-7.0.0-1018-gcp (7.0.0-1018.20) ...
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-7.0.0-1018-gcp
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-7.0.0-1018-gcp
Found initrd image: /boot/initrd.img-7.0.0-1018-gcp
Found linux image: /boot/vmlinuz-7.0.0-1017-gcp
Found initrd image: /boot/initrd.img-7.0.0-1017-gcp
needrestart then reports that no services need restarting, which is true and easy to misread. A new kernel only takes effect after a reboot, and Ubuntu records that it is owed one:
cat /var/run/reboot-required.pkgs
The file names the packages that asked for the reboot.
linux-image-7.0.0-1018-gcp
linux-base
Reboot, then run uname -r again. Ours came back on 7.0.0-1018-gcp, and /var/run/reboot-required was gone. The 24.04 VM took the same update the same way. The previous kernel stays installed, so if the new build misbehaves you can boot the old one from GRUB’s “Advanced options for Ubuntu” menu and hold the kernel metapackage with apt-mark hold until a fixed build lands. That rollback is the same move as our fix for the Debian 12 freeze after the 6.1.0-55 kernel update, where booting the previous kernel and holding the package kept machines up until Debian shipped a fix.
Move Ubuntu 24.04 to the HWE kernel
24.04 ships two supported kernel tracks. Server installs stay on the general availability (GA) kernel from release day, while desktop installs follow the hardware enablement (HWE) stack, which moves to a newer kernel with each point release. Compare the two on your machine:
apt-cache policy linux-generic-hwe-24.04 linux-generic
The HWE metapackage offered the 7.0 kernel that 26.04 ships, against 6.8 on the GA track:
linux-generic-hwe-24.04:
Installed: (none)
Candidate: 7.0.0-43.43~24.04.1
linux-generic:
Installed: (none)
Candidate: 6.8.0-151.151
Canonical’s HWE kernel reference lists 7.0 as the 24.04.5 HWE kernel, supported until April 2029. Install it with its recommended packages, which bring the matching headers so DKMS modules keep building:
sudo apt install --install-recommends linux-generic-hwe-24.04
apt installed eleven packages, among them linux-image-7.0.0-43-generic and its headers, and DKMS rebuilt the v4l2loopback module we had on the machine for the new kernel without being asked. The same transaction also pulled in Ubuntu’s prebuilt linux-main-modules-v4l2loopback-7.0.0-43-generic, so on Canonical’s kernels some modules you used to get from DKMS now arrive as signed packages. After a reboot the VM was on the HWE kernel and stays on that track for future updates:

There is also a linux-generic-hwe-24.04-edge package. Canonical marks edge kernels as unsupported and possibly missing DKMS support, so it gives you neither the newest upstream kernel nor a supported one. Skip it. If HWE is still too old for your hardware, the rest of this guide is for you.
Check Secure Boot, /boot and GRUB access first
Everything from here on installs a kernel Canonical did not sign, and three things decide whether it boots or leaves you at a GRUB prompt. Check Secure Boot first:
mokutil --sb-state
Our VMs printed the answer you want for this guide.
SecureBoot disabled
If yours says SecureBoot enabled, none of the kernels below will boot until you turn it off in the firmware or the cloud instance settings. The last section shows exactly what that failure looks like. EFI variables are not supported on this system means a legacy BIOS boot, where Secure Boot does not apply. Next, check free space on /boot:
df -h /boot
Ubuntu cloud images put /boot on its own small partition. This is the 26.04 VM before any test kernels went in:
/dev/sda13 989M 269M 653M 30% /boot
Each extra kernel added between 89 and 110 MB to /boot in our runs, so keep at least 250 MB free. Last, make sure you can reach the GRUB menu. Ubuntu cloud images set a zero timeout in /etc/default/grub.d/50-cloudimg-settings.cfg, so picking the old kernel by hand means holding Esc on a console during boot. Every kernel in this guide sorts above Ubuntu’s own, so it becomes GRUB’s default, and a build that fails to boot comes back after every power cycle until someone picks the old entry from that menu. Arrange console access now on anything you can’t afford to lose.
Pick a method
The three routes past Ubuntu’s own kernels differ in how new a kernel they deliver, how it gets updated, and whether DKMS modules such as the NVIDIA driver or VirtualBox still build. This is what each one did on our two machines:
| Method | Kernel on Nov 22, 2026 | Updates | Ubuntu 26.04 | Ubuntu 24.04 |
|---|---|---|---|---|
| apt (GA or HWE) | 7.0, Ubuntu patched | apt, signed, security fixes | 7.0 is the release kernel | 6.8 GA or 7.0 HWE |
| kernel.ubuntu.com mainline | 7.3.5 | Manual download | Boots, but headers need libssl4, so no DKMS | Fails in the package’s pre-install script |
| Zabbly repository | 7.3.5 | apt, about weekly | Installed clean in our October run | Installs clean, DKMS builds |
| Build from kernel.org | 7.3.5 (any release) | Rebuild per release | Builds and boots | Builds and boots |
For a machine you depend on, we’d still pick Zabbly: it tracks the newest stable kernel, updates through apt, and ships headers that DKMS built against on our 24.04 VM without complaint. Build from source when you need a release Zabbly has not picked up yet, or a config change. The mainline packages got worse since our October run. They are current again, but their headers now depend on a library neither LTS release has, so on 26.04 you get a kernel without DKMS, and on 24.04 nothing installs at all.
Install a mainline build from kernel.ubuntu.com
Canonical builds upstream releases as plain .deb packages with no Ubuntu patches. Its mainline build documentation is blunt about them: not supported, no security updates, not for production, remove them once you have finished testing. Use them to test whether a newer kernel fixes your hardware. Compare the newest stable release on kernel.org with the newest folder the builder has published:
curl -s https://www.kernel.org/finger_banner | awk '/latest stable version/{print $NF}'
KVER=$(curl -s https://kernel.ubuntu.com/mainline/ | grep -oE 'href="v[0-9]+\.[0-9]+(\.[0-9]+)?/"' | grep -oE 'v[0-9.]+[0-9]' | sort -V | tail -1)
echo "${KVER}"
This time the two agree. In October the builder had stalled at 7.2.6 while kernel.org was on 7.3, so check both numbers before you download anything.
7.3.5
v7.3.5
Pull the file list from the release’s amd64 directory instead of typing names, because they carry build timestamps. You need four generic packages: two header packages, the image and the modules. Clear out any earlier download first with rm -f ~/mainline-kernel/*.deb, because the install commands expect one version in the directory:
mkdir -p ~/mainline-kernel && cd ~/mainline-kernel
BASE="https://kernel.ubuntu.com/mainline/${KVER}/amd64"
curl -s "${BASE}/" | grep -oE 'linux-(headers|image-unsigned|modules)-[^"]*(generic_[^"]*_amd64|_all)\.deb' | sort -u > debs.txt
sed "s|^|${BASE}/|" debs.txt | wget -q -i -
ls -1 *.deb
The four files came to 201 MB, most of it the modules package.
linux-headers-7.3.5-070305-generic_7.3.5-070305.202611171251_amd64.deb
linux-headers-7.3.5-070305_7.3.5-070305.202611171251_all.deb
linux-image-unsigned-7.3.5-070305-generic_7.3.5-070305.202611171251_amd64.deb
linux-modules-7.3.5-070305-generic_7.3.5-070305.202611171251_amd64.deb
The 202611171251 in each name is the build timestamp, which also shows up in uname -v once the kernel is running.
Verify the packages before installing them
These files run as root during install, over a download you have no other reason to trust. Each release directory carries a CHECKSUMS file signed with the Kernel PPA key, fingerprint 60AA 7B6F 3043 4AE6 8E56 9963 E50C 6A09 17C6 22B0. Fetch both, import the key from the Ubuntu keyserver, and check the signature:
wget -q "${BASE}/CHECKSUMS" "${BASE}/CHECKSUMS.gpg"
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys 60AA7B6F30434AE68E569963E50C6A0917C622B0
gpg --verify CHECKSUMS.gpg CHECKSUMS
Look for Good signature and the same fingerprint. The trust warning only means you have not signed that key yourself:
gpg: Signature made Tue Nov 17 14:20:30 2026 UTC
gpg: using RSA key 60AA7B6F30434AE68E569963E50C6A0917C622B0
gpg: Good signature from "Kernel PPA <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 60AA 7B6F 3043 4AE6 8E56 9963 E50C 6A09 17C6 22B0
Then check the packages against the file. It holds SHA1 and SHA256 sums in one list with comment lines, and a plain sha256sum -c complains about the SHA1 lines, so feed it only the 64-character SHA256 entries:
grep -E "^[0-9a-f]{64} " CHECKSUMS | sha256sum -c
All four files have to come back OK before you install them.

A FAILED line means a corrupt or tampered download. Delete the files and fetch them again before going any further.
“Depends: libssl4 (>= 4.0.0) but it is not installable”
Installing all four packages with apt fails on both LTS releases before a single file is unpacked:
sudo apt install ./*.deb
This is 26.04’s apt explaining it; 24.04 prints the older “you have held broken packages” wording for the same dependency:
Unsatisfied dependencies:
linux-headers-7.3.5-070305-generic : Depends: libssl4 (>= 4.0.0) but it is not installable
Error: Unable to satisfy dependencies. Reached two conflicting assignments:
1. linux-headers-7.3.5-070305-generic:amd64=7.3.5-070305.202611171251 is selected for install
2. linux-headers-7.3.5-070305-generic:amd64 Depends libssl4 (>= 4.0.0)
but none of the choices are installable:
[no choices]
The headers package carries host tools linked against OpenSSL 4, and 26.04 ships OpenSSL 3.5 as libssl3t64. Do not go looking for a libssl4 package from a newer release: replacing a core library to satisfy a test kernel is how a working system stops booting userland. On 26.04 you can install just the image and modules:
sudo apt install ./linux-image-unsigned-*.deb ./linux-modules-*.deb
That finishes cleanly. dracut builds the initramfs and GRUB lists the new kernel first:
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-7.3.5-070305-generic
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-7.3.5-070305-generic
Found initrd image: /boot/initrd.img-7.3.5-070305-generic
After a reboot, uname -r printed 7.3.5-070305-generic and the VM ran normally. The cost is that without headers DKMS has nothing to build against, so NVIDIA, VirtualBox, ZFS from DKMS or any other out-of-tree module will be missing on that kernel. For testing whether a newer kernel fixes a driver that is already in the tree, that is fine. For anything else, use Zabbly or a source build.
Ubuntu 24.04: “run-parts: missing operand” in the pre-installation script
On 24.04 the image without headers fails too, and earlier than it used to. The package scripts call run-parts with two directories, which the debianutils in 24.04 does not accept (26.04 ships a newer one that does). In October that broke the post-install step and could be patched afterwards. Now the pre-install script runs it, from inside the .deb, before anything lands on disk:
run-parts: missing operand
Try `run-parts --help' for more information.
dpkg: error processing archive /home/josphat/mainline-kernel/linux-image-unsigned-7.3.5-070305-generic_7.3.5-070305.202611171251_amd64.deb (--unpack):
new linux-image-unsigned-7.3.5-070305-generic package pre-installation script subprocess returned error exit status 1
run-parts: missing operand
Try `run-parts --help' for more information.
dpkg: error while cleaning up:
new linux-image-unsigned-7.3.5-070305-generic package post-removal script subprocess returned error exit status 1
The cleanup fails for the same reason, which leaves the image in dpkg’s “half installed, reinstall required” state. A normal apt purge then refuses with E: The package linux-image-unsigned-7.3.5-070305-generic needs to be reinstalled, but I can't find an archive for it. Force the broken package out with dpkg, then let apt remove the modules package:
sudo dpkg --purge --force-remove-reinstreq linux-image-unsigned-7.3.5-070305-generic
sudo apt purge linux-modules-7.3.5-070305-generic
sudo apt-get check
dpkg warns that the package is “in a very bad inconsistent state” and removes it anyway, which is what you want here. Confirm nothing is left with dpkg-query -W 'linux-*070305*', which on our VM answered “no packages found”, and apt-get check then ran without errors. The maintainer of the mainline GUI tool from ppa:cappelikan/ppa, which automates these same downloads, documents the debianutils break for kernels built after March 25, 2026 and suggests installing a newer debianutils by hand. We did not take that route: it swaps a core package for one from another release and still leaves the libssl4 headers problem. On 24.04, use HWE, Zabbly or a source build.
Add the Zabbly kernel repository
Zabbly publishes the newest stable mainline kernel for Ubuntu 22.04, 24.04 and 26.04 and for Debian 12 and 13, built from a config derived from Ubuntu’s, and updates it about weekly. Because it is an apt repository, new point releases arrive with apt upgrade. Check the signing key’s fingerprint before trusting it:
curl -fsSL https://pkgs.zabbly.com/key.asc | gpg --show-keys --fingerprint
The fingerprint must match the one in the Zabbly kernel README, 4EFC 5906 96CB 15B8 7C73 A3AD 82CC 8797 C838 DCFD:
pub rsa3072 2023-08-23 [SC] [expires: 2030-08-17]
4EFC 5906 96CB 15B8 7C73 A3AD 82CC 8797 C838 DCFD
uid Zabbly Kernel Builds <[email protected]>
sub rsa3072 2023-08-23 [E] [expires: 2030-08-17]
Save the key and add the repository. The release codename and architecture come from the running system, so the same line works on both LTS releases:
sudo mkdir -p /etc/apt/keyrings
sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
printf 'Enabled: yes\nTypes: deb\nURIs: https://pkgs.zabbly.com/kernel/stable\nSuites: %s\nComponents: main\nArchitectures: %s\nSigned-By: /etc/apt/keyrings/zabbly.asc\n' "$(. /etc/os-release && echo "$VERSION_CODENAME")" "$(dpkg --print-architecture)" | sudo tee /etc/apt/sources.list.d/zabbly-kernel-stable.sources
tee echoes the file back. On 24.04 the suite resolves to noble:
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/kernel/stable
Suites: noble
Components: main
Architectures: amd64
Signed-By: /etc/apt/keyrings/zabbly.asc
Refresh the package lists and install the linux-zabbly metapackage, which always points at the current build:
sudo apt update
sudo apt install linux-zabbly
Zabbly had already moved to 7.3.5, built the same day kernel.org released it. Read the transaction before you confirm: besides the image and headers, it replaces Ubuntu’s linux-libc-dev with its own copy, and on our 24.04 VM that went from 6.8.0-151.151 to 7.3.5-amd64-202611171859-ubuntu24.04. Those are the kernel’s userspace API headers that programs you compile on the machine include, so on a build server that produces binaries for stock Ubuntu you want Ubuntu’s copy back, which the removal section covers. The install’s DKMS step is the part that matters for drivers:
depmod...
dkms autoinstall on 7.3.5-zabbly+/x86_64 succeeded for v4l2loopback
* dkms: autoinstall for kernel 7.3.5-zabbly+
...done.
update-initramfs: Generating /boot/initrd.img-7.3.5-zabbly+
Two cryptsetup lines about not resolving /dev/root followed on our cloud VM, which has no encrypted root, so they are noise there. After a reboot the Zabbly kernel was running with the DKMS module loaded:

That is the whole reason we recommend Zabbly on 24.04: it is the only prebuilt route to a current upstream kernel that installs there without patching anything, and it costs 109 MB of /boot.
Build the newest kernel from kernel.org source
A source build gives you any release the day it ships, with any config change you want, and the kernel’s own bindeb-pkg target turns it into normal .deb packages that apt can install and remove. Starting from the running kernel’s config keeps Ubuntu’s driver selection, so the result behaves like a newer Ubuntu kernel rather than a minimal one. If you want to trim the config or understand each build stage, our guide to compiling the Linux kernel from source goes through it; this section stays on the Ubuntu route. Check the disk first. With Ubuntu’s debug info left on, the tree on our 26.04 VM grew to 44 GB including the finished packages, so you need about 45 GB free under your home directory. Then install the build dependencies. libdw-dev is on the list because the packaging step refuses to start without it:
sudo apt install -y build-essential bc bison flex libssl-dev libelf-dev libdw-dev libncurses-dev dwarves debhelper-compat rsync cpio zstd python3 wget xz-utils gnupg
Read the current stable version from kernel.org, then download the tarball and its signature. The v7.x directory comes from the version’s major number, so the commands keep working for later releases:
KVER=$(curl -s https://www.kernel.org/finger_banner | awk '/latest stable version/{print $NF}')
echo "${KVER}"
mkdir -p ~/kernel-build && cd ~/kernel-build
wget "https://cdn.kernel.org/pub/linux/kernel/v${KVER%%.*}.x/linux-${KVER}.tar.xz"
wget "https://cdn.kernel.org/pub/linux/kernel/v${KVER%%.*}.x/linux-${KVER}.tar.sign"
The signature covers the uncompressed tarball, so decompress it into gpg rather than verifying the .xz file. Import both Linus Torvalds’ and Greg Kroah-Hartman’s keys, because either one may sign a release:
gpg --locate-keys [email protected] [email protected]
xz -cd "linux-${KVER}.tar.xz" | gpg --verify "linux-${KVER}.tar.sign" -
7.3.5 is a stable point release, so Greg’s key signed it:
gpg: Signature made Tue Nov 17 10:18:09 2026 UTC
gpg: using RSA key 647F28654894E3BD457199BE38DBBDC86092693E
gpg: Good signature from "Greg Kroah-Hartman <[email protected]>" [unknown]
Unpack the source, copy in the config of the kernel you are running, and clear the two Canonical certificate paths. Ubuntu’s config points CONFIG_SYSTEM_TRUSTED_KEYS at debian/canonical-certs.pem, a file that ships with Ubuntu’s kernel source but not in the kernel.org tarball. Copy from a -generic kernel if you can. Our VMs started on the -gcp cloud flavour, so we installed and booted Ubuntu’s -generic kernel (7.0 on 26.04, 6.8 on 24.04) before building, to get the config a desktop or server reader would start from:
tar xf "linux-${KVER}.tar.xz"
cd "linux-${KVER}"
cp "/boot/config-$(uname -r)" .config
scripts/config --set-str SYSTEM_TRUSTED_KEYS "" --set-str SYSTEM_REVOCATION_KEYS "" --enable SCHED_CLASS_EXT
make olddefconfig
make olddefconfig answers every option that is new since your running kernel with its default. On 24.04 the copied config comes from 6.8, which predates sched_ext, so without the --enable flag the BPF scheduler class that 26.04’s kernel has would be left out; on 26.04 the flag changes nothing. Keep debug info on even though it is what makes the tree so large: sched_ext depends on CONFIG_DEBUG_INFO_BTF, and stripping debug info removes it again. Confirm the settings that matter:
grep -E '^CONFIG_(SYSTEM_TRUSTED_KEYS|SYSTEM_REVOCATION_KEYS|DEBUG_INFO_BTF|SCHED_CLASS_EXT)=' .config
Both VMs showed the two key paths empty, with BTF and sched_ext on:
CONFIG_SCHED_CLASS_EXT=y
CONFIG_SYSTEM_TRUSTED_KEYS=""
CONFIG_SYSTEM_REVOCATION_KEYS=""
CONFIG_DEBUG_INFO_BTF=y
Build the packages. LOCALVERSION adds a suffix to the release string so the kernel can never collide with an Ubuntu package of the same version. Start it inside tmux or screen on a remote machine, because a dropped SSH session takes the build down with it:
make -j"$(nproc)" bindeb-pkg LOCALVERSION=-custom
On 16 vCPU VMs with 64 GB of RAM the build took 40 minutes on 26.04 and 41 on 24.04, from a clean tree. The CPU time behind that was 530 minutes of user time, so a 4-core desktop needs well over two hours, and in October a 6 vCPU VM took 96 minutes. The last eight minutes of each run went on packing the debug image, on a single core. The packages land one directory up, next to the tarball:
ls -lh ~/kernel-build/*.deb
Four packages come out, and you install only two. The -dbg image is 1.5 GB of debug symbols that only matter for crash-dump analysis, and linux-libc-dev would replace Ubuntu’s own userspace kernel headers, the same side effect Zabbly has:

Install the image and headers through apt, so they are tracked like any other package. The globs match the version in KVER and skip the -dbg file, so set KVER again if you opened a new shell. The number after the version in each file name is a build counter that goes up with every rebuild in the same tree, so delete older .deb files before installing a rebuild:
cd ~/kernel-build
sudo apt install ./linux-image-"${KVER}"*-custom_*.deb ./linux-headers-"${KVER}"*-custom_*.deb
26.04’s apt now prints how much of the install lands on /boot, which is the number that matters on a small boot partition:
Summary:
Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0
Download size: 0 B / 143 MB
Space needed: 778 MB / 50.9 GB available
└─ in /boot: 106 MB / 588 MB available
The image package’s hooks then build the initramfs and run update-grub, so the kernel is in the boot menu as soon as apt returns. Measured with df, /boot grew by 89 MB on 26.04 and 110 MB on 24.04, where update-initramfs packs a larger image than dracut does.
“No rule to make target ‘debian/canonical-certs.pem'”
If you skip the scripts/config line, this is where the build dies, after about three minutes of compiling in our October run:
make[6]: *** No rule to make target 'debian/canonical-certs.pem', needed by 'certs/x509_certificate_list'. Stop.
Run the scripts/config --set-str command from above, then make olddefconfig, and start the build again. Nothing before that point needs cleaning. The other early failure, dpkg-checkbuilddeps: error: unmet build dependencies: libdw-dev:native, appears within a second of starting and means libdw-dev was missing from the dependency install.
Boot the new kernel and verify it
GRUB boots the highest version by default, so a plain sudo reboot picks up the new kernel. With several test kernels installed, as on our VMs, name the one you want for the next boot only. List the entries first:
sudo grep -oE "(menuentry|submenu) '[^']+'" /boot/grub/grub.cfg | cut -d"'" -f2
The top “Ubuntu” entry is the newest kernel, and every installed kernel, the newest included, also has its own pair of entries under the “Advanced options for Ubuntu” submenu. This is the 26.04 VM with only Ubuntu’s own kernels installed; each kernel from this guide adds its pair at the top of the submenu, newest first, in the order the Found linux image lines of its install showed:
Ubuntu
Advanced options for Ubuntu
Ubuntu, with Linux 7.0.0-1018-gcp
Ubuntu, with Linux 7.0.0-1018-gcp (recovery mode)
Ubuntu, with Linux 7.0.0-1017-gcp
Ubuntu, with Linux 7.0.0-1017-gcp (recovery mode)
Ubuntu, with Linux 7.0.0-44-generic
Ubuntu, with Linux 7.0.0-44-generic (recovery mode)
UEFI Firmware Settings
Join the submenu and entry with >, set it for the next boot, and reboot. grub-reboot works with Ubuntu’s default GRUB_DEFAULT=0, but it is not a safety net for a new kernel: once the one-time entry is used, GRUB goes back to entry 0, which is the newest kernel. A build that fails to boot comes straight back after a power cycle, so test a new kernel with console access:
sudo grub-reboot "Advanced options for Ubuntu>Ubuntu, with Linux 7.3.5-custom"
sudo reboot
When the machine is back, uname -r prints the release with your LOCALVERSION suffix, and uname -v carries the build number and build time, which tells a rebuild from the previous one. We also checked that the scheduler pieces from the config made it into the running kernel. disabled for sched_ext only means no BPF scheduler is loaded yet:

The 24.04 VM came up the same way on its own build, with the v4l2loopback DKMS module built for it during the install. The stock kernel stays installed and in the menu, so a kernel that panics or loses a driver costs you one trip to the GRUB menu on the console. Keep it until the new one has run your real workload for a few days.
What Linux 7.3 changes on an Ubuntu box
Most of 7.3 is driver work that a server never shows you. For an earlier cycle in more depth, see what changed in Linux kernel 7.1. Three changes are visible from userspace, and we checked each one again on the running 7.3.5 build:
- a new
fchrootsystem call and the failfs sandbox root - a new default for how a cgroup’s CPU weight is spread across CPUs
- the
freevxfsandefsfilesystem drivers, removed
The first is new API for sandboxes, the second changes how busy services share CPU with no setting touched, and the third breaks one specific job, mounting old Veritas or SGI media.
fchroot and failfs
7.3 adds fchroot, system call 472 on x86_64, which sets the root directory from a file descriptor instead of a path. Its interesting use is a special descriptor, FD_FAILFS_ROOT, that moves the process root into failfs, a kernel-internal filesystem where every lookup fails. After that, an absolute path such as /etc/os-release resolves to nothing, while directories the process opened beforehand keep working. An unprivileged process may do it as long as it has set no_new_privs first, is not already in a chroot, and does not share its filesystem context with another thread. To see it, save this script as ~/failfs-test.py:
vim ~/failfs-test.py
It tries the call without no_new_privs, then with it, and then reads the filesystem both ways:
import ctypes, os, errno
libc = ctypes.CDLL(None, use_errno=True)
SYS_fchroot, FD_FAILFS_ROOT, PR_SET_NO_NEW_PRIVS = 472, -10004, 38
def fchroot():
r = libc.syscall(SYS_fchroot, ctypes.c_int(FD_FAILFS_ROOT), ctypes.c_uint(0))
e = ctypes.get_errno()
return "0" if r == 0 else f"-1 {errno.errorcode.get(e, e)}"
print("fchroot without no_new_privs:", fchroot())
libc.prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)
home = os.open(os.path.expanduser("~"), os.O_RDONLY | os.O_DIRECTORY)
print("fchroot with no_new_privs: ", fchroot())
for label, fn in [("listdir('/etc')", lambda: os.listdir("/etc")),
("open('/etc/os-release')", lambda: open("/etc/os-release")),
("os.listdir(held home fd)", lambda: sorted(os.listdir(home))[:3])]:
try:
print(f"{label}: {fn()}")
except OSError as ex:
print(f"{label}: {errno.errorcode[ex.errno]}")
Run it as your normal user, not with sudo, because the unprivileged rules are the point:
python3 ~/failfs-test.py
The first call is refused with EPERM, the second succeeds, and from then on only the descriptor opened before the switch can read anything:
fchroot without no_new_privs: -1 EPERM
fchroot with no_new_privs: 0
listdir('/etc'): ENOTSUP
open('/etc/os-release'): ENOTSUP
os.listdir(held home fd): ['.bash_logout', '.bashrc', '.cache']
On 24.04’s 6.8 kernel the same script gets ENOSYS for both calls and lists /etc normally, so software that wants failfs has to check for that error and fall back. Python prints ENOTSUP, which on Linux is the same errno as the EOPNOTSUPP the kernel documentation names. This is an interface for sandbox and container runtimes; you’d only call it directly when writing one.
cgroup CPU weight gets a new default
This one changes behaviour without anyone touching a setting. Every systemd slice and container cgroup has a CPU weight, 100 by default, and the scheduler has to decide how that weight is shared when the group’s tasks run on several CPUs. Up to 7.2 the weight was split across those CPUs, so a group running six busy tasks carried only a share of its weight on each one. 7.3 adds a debugfs switch with five modes and makes concur the default, which scales the group’s weight by the number of CPUs it is actually busy on:
sudo cat /sys/kernel/debug/sched/cgroup_mode
The mode in brackets is the active one, and smp matches the 7.2 calculation:
up smp (concur) max tasks
To see the effect we ran two slices with the same weight of 100, one with six busy loops and one with a single loop, and read each slice’s cpu.stat over 20 seconds. Our first attempt on the 16 vCPU VM showed nothing: seven loops on sixteen CPUs never compete, and both modes gave every task a full CPU. Confining both slices to six CPUs with systemd-run -p AllowedCPUs=0-5 brought the contention back:
| cgroup_mode | Runs | Slice with 6 busy tasks | Slice with 1 busy task |
|---|---|---|---|
| smp (7.2 behaviour) | 2 | 502 to 504% of one CPU | 96 to 98% of one CPU |
| concur (7.3 default) | 4 | 504 to 540% of one CPU | 61 to 96% of one CPU |
Under the old calculation the single-task slice held on to almost a whole CPU every time. Under concur the busier group took between a few percent and nearly 40% of a CPU away from it, with both weights unchanged, and the spread between runs was wide. The October run on a 6 vCPU VM landed in the same range. On a host that runs one heavily threaded service next to small, latency-sensitive ones, check this before blaming anything else when a small service gets slower, and give it a higher CPUWeight= rather than relying on the old split. To compare, switch the mode at runtime; the setting lives in debugfs and returns to concur on the next boot:
echo smp | sudo tee /sys/kernel/debug/sched/cgroup_mode
Write concur to the same file when you have finished comparing, so the rest of the uptime runs on the default you will get after every reboot anyway.
freevxfs and efs are gone
Ubuntu’s 7.0 kernel builds the read-only Veritas VxFS driver and the SGI EFS driver as modules. 7.3 removes both from the source tree, so a config copied from Ubuntu loses them and nothing warns you:
sudo modprobe freevxfs
modprobe can only tell you the module is missing.
modprobe: FATAL: Module freevxfs not found in directory /lib/modules/7.3.5-custom
efs fails the same way. Almost nobody mounts these, but if you still read VxFS disks from SCO UnixWare or HP-UX, or CDs from SGI IRIX, keep a 7.2 or older kernel around for that job.
Fix “Error! Bad return status for module build”
This is the error people search for after a kernel update, whether the kernel came from Ubuntu or from one of the routes above. DKMS rebuilds every out-of-tree module for each kernel that has headers installed, and when a module’s source is older than the kernel’s API, the build fails and takes the package install with it. We reproduced it on 24.04 by installing the archive’s VirtualBox 7.0 packages with the custom 7.3.5 headers present:
Building initial module for 7.3.5-custom
ERROR (dkms apport): kernel package linux-headers-7.3.5-custom is not supported
Error! Bad return status for module build on kernel: 7.3.5-custom (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
The apport line only means DKMS will not file a crash report for a kernel Ubuntu did not build. The real cause is in the make.log the message names, and the first error: line is the one that matters:
sudo grep -m3 "error:" /var/lib/dkms/virtualbox/7.0.16/build/make.log
VirtualBox 7.0 calls a KVM function that 7.3’s headers no longer declare under that name:
vboxdrv/linux/SUPDrv-linux.c:1655:24: error: implicit declaration of function ‘kvm_enable_virtualization’; did you mean ‘kvm_arch_enable_virtualization’? [-Werror=implicit-function-declaration]
vboxdrv/linux/SUPDrv-linux.c:1662:5: error: implicit declaration of function ‘kvm_disable_virtualization’; did you mean ‘kvm_arch_disable_virtualization’? [-Werror=implicit-function-declaration]
An “implicit declaration” or “has no member named” error is almost always this: the module is older than the kernel. A gcc: not found or “compiler differs” line instead means the kernel was built with a compiler you don’t have, which is what mainline builds used to do on 24.04. Check which kernels the module did build for:
dkms status
VirtualBox built fine for the stock 6.8 kernel and has no 7.3.5 line, while the smaller v4l2loopback module built for both. The “Diff between built and installed module” warning on the 6.8 line concerns v4l2loopback, not this failure, so leave it for another day:
v4l2loopback/0.12.7, 6.8.0-151-generic, x86_64: installed (WARNING! Diff between built and installed module!)
v4l2loopback/0.12.7, 7.3.5-custom, x86_64: installed
virtualbox/7.0.16, 6.8.0-151-generic, x86_64: installed
Your choice depends on whether you need the module on this kernel today. These are the options we’d weigh, in order of preference:
- install a newer module release that supports the kernel
- stay on a kernel the module already builds for
- remove the module package until a fixed release ships
A newer NVIDIA driver branch or the vendor’s own VirtualBox packages usually cover the first. Only the third gets apt working again right away, because sudo dpkg --configure -a just runs the same failing build again, so start there if you are stuck mid-upgrade:
sudo apt purge virtualbox-dkms virtualbox virtualbox-qt
DKMS deleted the module from the 6.8 tree too, and afterwards apt-get check was clean. When the error names an Ubuntu kernel such as 7.0.0-38-generic, the same make.log reading applies; there the usual fix is a newer driver package from the Ubuntu archive, because Canonical’s kernels and its packaged drivers are tested together.
Remove a kernel you installed
Boot into the kernel you are keeping before you remove anything. Use grub-reboot with the stock entry from the list above, then reboot and confirm with uname -r that the stock kernel is running before the purge. We learned why the hard way on the 26.04 VM: our purge ran a few seconds before the reboot actually happened, and apt removed the running mainline kernel’s files without a prompt. The VM kept running from memory and came back on the stock kernel, but a machine that lost power in that window would have booted into whatever GRUB still listed. Purge by exact package name, and let dpkg-query produce the list so image, headers and modules go together. For a mainline build, match its upload number:
sudo apt purge $(dpkg-query -W -f='${Package}\n' 'linux-*070305*')
That removed the image and modules and freed 189 MB. A kernel you built yourself is the easiest of the three, because bindeb-pkg makes just two packages you installed and nothing pulls them back in:
sudo apt purge linux-image-7.3.5-custom linux-headers-7.3.5-custom
apt reported 778 MB freed, and with both test kernels gone /boot went from 450 MB used back to 269 MB. The only noise is dpkg: warning: while removing linux-image-7.3.5-custom, directory '/lib/modules' not empty so not removed, which is about the shared parent directory and harmless. After the reboot, nothing of either kernel was left and GRUB’s one-time entry had cleared itself:

The packages are not the big cost of a source build, though. Once you are sure you won’t rebuild, delete the tree with rm -rf ~/kernel-build, after copying the image and headers packages somewhere if you want the same kernel on another machine. For Zabbly, purge its packages, remove the repository, and put Ubuntu’s linux-libc-dev back. apt treats that as a downgrade, which is why it needs --allow-downgrades:
sudo apt purge $(dpkg-query -W -f='${Package}\n' 'linux-*zabbly*')
sudo rm /etc/apt/sources.list.d/zabbly-kernel-stable.sources /etc/apt/keyrings/zabbly.asc
sudo apt update
sudo apt install --allow-downgrades "linux-libc-dev/$(. /etc/os-release && echo "$VERSION_CODENAME")-updates"
On 24.04 the purge freed 715 MB, /boot dropped back by the 109 MB the kernel had taken, and linux-libc-dev returned to 6.8.0-151.151 from noble-updates.
Fix “bad shim signature” after the reboot
This is what Secure Boot does to every kernel in this guide that Canonical did not sign, Zabbly’s included. We left the unsigned 7.3.5 build as GRUB’s default on the 24.04 VM, switched on Shielded VM Secure Boot, and read the serial console:
error: prohibited by secure boot policy.
error: bad shim signature.
Press any key to continue...
Failed to boot both default and fallback entries.
Press any key to continue...
GRUB does not fall back to the old kernel on its own. It stops and waits for a keypress, so a remote server with no console access stays down until someone reaches it. From the console, open “Advanced options for Ubuntu” and boot the stock kernel, which is signed and still works. With Secure Boot switched off again, the same VM booted the 7.3.5 build at the first attempt, so the problem is the firmware setting, not the kernel. You have three ways forward:
- disable Secure Boot in the firmware or instance settings and keep the new kernel
- remove the new kernel as shown in the removal section
- sign the kernel with your own Machine Owner Key
Signing means enrolling a key on every machine and re-signing every build, which is rarely worth it for a kernel you are testing. For a test box, turn Secure Boot off; for anything that must keep it, stay on Ubuntu’s signed kernels, HWE included.
That is also our overall advice. Most people who type “how to update linux kernel ubuntu” into a search box need nothing past apt full-upgrade and a reboot, and 24.04 users who want 7.0 should take HWE, which keeps signing and security fixes. Past that, add Zabbly and let apt keep the kernel current, or build from source when you need a release today or a config option Ubuntu leaves off, and budget 45 GB of disk for it. Leave the kernel.ubuntu.com packages for one-off hardware tests on 26.04 until their headers install on an LTS release again.
Mainline currently does not have amd65 .deb packages. So this won’t work for most people until the mainline kernel for amd64 is released.
OOh Good point. I was doing it on ARM architecture, but hopefully it comes out sooner,
Mainline does not install the new kernel.
excellent, I am finally able to get sound from my laptop speaker after installing latest kernel 6.10.6 on my hp envy17 on latest ubuntu cinnamon version
Nice!
installed one latest kernel but still issues like
WARNING: turbostat not found for kernel 6.10.7-061007
You may need to install the following packages for this specific kernel:
linux-tools-6.10.7-061007-generic
linux-cloud-tools-6.10.7-061007-generic
E: Unable to locate package linux-tools-6.10.7-061007-generic
E: Couldn’t find any package by glob ‘linux-tools-6.10.7-061007-generic’
very nice..update success!
just try install lastest intel BE200 wireless wifi adaptor on my laptop.
Did it work for you?