π ~1 min read
Table of contents
Symptom & Impact
Package operations fail because prior unattended-upgrades run was interrupted.
Environment & Reproduction
Often caused by forced reboot or process termination during automatic updates.
Root Cause Analysis
dpkg database and package scripts remain in half-configured inconsistent state.
Quick Triage
Review unattended-upgrades logs and detect packages pending configuration.
Step-by-Step Diagnosis
Inspect dpkg status, lock state, and failed maintainer scripts.

Solution – Primary Fix
Complete dpkg configuration, repair dependencies, and rerun unattended-upgrades checks.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Temporarily disable automatic updates until package health stabilizes.
Verification & Acceptance Criteria
No packages remain half-configured and automatic update cycle completes cleanly.
Rollback Plan
Restore package database from backup if dependency graph becomes unrecoverable.
Prevention & Hardening
Avoid forced restarts during update windows and monitor unattended-upgrades outcomes.
Related Errors & Cross-Refs
dpkg was interrupted and package is in a very bad inconsistent state.
Related tutorial: View the step-by-step tutorial for Ubuntu 18.04 LTS.
View all Ubuntu 18.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Unattended-upgrades recovery and apt/dpkg consistency repair 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.