Affected versions: Ubuntu 24.04 LTS

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

Security updates do not apply automatically, increasing exposure window.

Environment & Reproduction

Ubuntu 24.04 LTS with unattended-upgrades enabled and one or more held packages.

Root Cause Analysis

Package hold markers or unresolved dependency graph prevent noninteractive upgrade execution.

Quick Triage

Check apt-mark showhold and inspect unattended-upgrades logs under /var/log/unattended-upgrades.

Step-by-Step Diagnosis

Identify held packages and simulate upgrade resolution with apt -s full-upgrade.

Illustrative mockup for ubuntu-24-04-lts β€” unattended_upgrades_held_diag
Automatic updates skip packages due to hold or dependency break β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Remove unnecessary holds, repair dependencies with apt -f install, and rerun unattended-upgrade –dry-run.

Still having issues? Our Managed IT Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for ubuntu-24-04-lts β€” unattended_upgrades_held_fixed
Held packages resolved and unattended-upgrades completes β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Pin critical packages with explicit apt preferences while allowing remaining security updates.

Verification & Acceptance Criteria

Dry-run and scheduled unattended-upgrades complete without blocked package entries.

Rollback Plan

Reapply package hold state for specific components if update introduces known regressions.

Prevention & Hardening

Review hold list monthly and maintain a documented exception process for deferred updates.

Automate patch management and compliance across your fleet with our DevOps services.

dpkg interrupted state and stale apt lock files can also prevent automated patching.

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 operations and apt package hold management 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.