π ~1 min read
Table of contents
Symptom & Impact
System fails to boot after kernel upgrade, causing service outage.
Environment & Reproduction
Occurs after installing a new kernel with incompatible modules or firmware.
uname -r
dpkg -l | grep linux-image
grep menuentry /boot/grub/grub.cfg | head -n 30
Root Cause Analysis
New kernel introduces regression, missing module, or initramfs incompatibility.
Quick Triage
Boot previous kernel from GRUB advanced options and collect logs.
journalctl -b -1 -p err --no-pager
dmesg -T | tail -n 120
ls /boot
Step-by-Step Diagnosis
Compare working and failing kernel package/module sets.
dpkg -l | grep -E 'linux-image|linux-modules'
lsinitramfs /boot/initrd.img-$(uname -r) | head
modinfo 2>/dev/null || true

Solution – Primary Fix
Set known-good kernel as default and hold problematic packages.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo grub-set-default 'Advanced options for Ubuntu>Ubuntu, with Linux '
sudo update-grub
sudo apt-mark hold linux-image-generic linux-headers-generic

Solution – Alternative Approaches
Reinstall affected kernel package set and regenerate initramfs.
sudo apt install -y --reinstall linux-image-$(uname -r) linux-modules-$(uname -r)
sudo update-initramfs -u -k all
sudo update-grub
Verification & Acceptance Criteria
System reboots cleanly into stable kernel and services recover.
uname -r
systemctl --failed
sudo reboot
Rollback Plan
Unhold kernels and restore default boot entry after upstream fix is validated.
sudo apt-mark unhold linux-image-generic linux-headers-generic
sudo grub-set-default 0
sudo update-grub
Prevention & Hardening
Keep at least one known-good kernel and test updates in staging first.
dpkg -l | grep linux-image
apt-mark showhold
ubuntu-security-status 2>/dev/null || true
Related Errors & Cross-Refs
Often linked with DKMS build failures and Secure Boot signing issues.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu kernel lifecycle and GRUB recovery documentation.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.