π ~1 min read
Table of contents
Symptom & Impact
System repeatedly indicates reboot required and updates remain pending.

Environment & Reproduction
Occurs on hosts using unattended-upgrades with deferred restart settings.

Root Cause Analysis
Kernel or libc updates are installed but reboot scheduling is inconsistent.

Quick Triage
Check /var/run/reboot-required and unattended-upgrades logs.

Step-by-Step Diagnosis
Review /var/log/unattended-upgrades/unattended-upgrades.log and apt history for incomplete cycles.

Solution – Primary Fix
Run sudo dpkg –configure -a && sudo apt -f install, then reboot once during maintenance window.
Still having issues? Our Managed IT Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Tune unattended-upgrades auto-restart options in /etc/apt/apt.conf.d/50unattended-upgrades.

Verification & Acceptance Criteria
No reboot-required flag remains after update cycle and reboot.

Rollback Plan
Revert unattended-upgrades policy file changes from backup.

Prevention & Hardening
Define explicit reboot windows and monitor unattended-upgrades alerts.
Automate patch management and compliance across your fleet with our DevOps services.

Related Errors & Cross-Refs
Related: dpkg interrupted and stale lock conditions.
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 unattended-upgrades documentation and apt logs reference.

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.