📖 ~1 min read
Table of contents
Symptom & Impact
Kernel package installation fails and security updates remain unapplied.
Environment & Reproduction
Common on systems with small dedicated `/boot` and frequent kernel updates.
df -h /boot
Root Cause Analysis
Old kernel images and initramfs files accumulate faster than cleanup policies remove them.
Quick Triage
List installed kernels and identify currently running version.
uname -r && dpkg -l 'linux-image-*' | grep '^ii'
Step-by-Step Diagnosis
Measure space consumed by kernel artifacts in `/boot`.
sudo du -sh /boot/* | sort -h

Solution – Primary Fix
Purge obsolete kernels while keeping at least one fallback version, then update GRUB.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo apt autoremove --purge -y && sudo update-grub

Solution – Alternative Approaches
Increase `/boot` capacity during maintenance for long-term kernel retention needs.
Verification & Acceptance Criteria
`apt upgrade` installs new kernel successfully and `/boot` has adequate free space.
Rollback Plan
Reinstall required older kernel package if hardware compatibility regression appears.
Prevention & Hardening
Automate periodic kernel cleanup and monitor `/boot` usage thresholds.
Related Errors & Cross-Refs
Related to failed `update-initramfs`, `grub-install` write errors, and interrupted package scripts.
Related tutorial: View the step-by-step tutorial for Ubuntu 26.04 LTS.
View all Ubuntu 26.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu kernel lifecycle and boot partition capacity guidance.
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.