π ~1 min read
Table of contents
Symptom & Impact
Any apt operation fails with a dpkg interruption message. Systems cannot install updates, and automation jobs repeatedly fail.
Environment & Reproduction
Typical after power loss, terminated apt process, or conflicting package manager runs on Ubuntu 16.04. Reproduce by interrupting apt upgrade mid-transaction.
Root Cause Analysis
The dpkg database contains packages in unpacked or half-configured states. APT blocks further transactions until consistency is restored.
Quick Triage
Check locks and process state: ps aux | grep -E ‘apt|dpkg’. Review /var/lib/dpkg/status for problematic package entries and inspect /var/log/dpkg.log.
Step-by-Step Diagnosis
Run sudo dpkg –audit to list broken states, then examine unmet dependencies with sudo apt -f install -s. Use journalctl -xe for interruption context.

Solution – Primary Fix
Execute sudo dpkg –configure -a followed by sudo apt -f install and sudo apt update. If needed, remove stale lock files only after confirming no apt/dpkg process is active.
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
Purge a permanently broken package with sudo dpkg –remove –force-remove-reinstreq , then reinstall cleanly. Restore dpkg status from backup in severe corruption.
Verification & Acceptance Criteria
dpkg –audit returns no entries and apt install/upgrade completes. CI provisioning run passes end-to-end with zero package manager errors.
Rollback Plan
Revert package actions using apt remove/purge for newly changed packages and restore /var/lib/dpkg backups if available.
Prevention & Hardening
Prevent concurrent apt jobs with lock-aware orchestration and avoid abrupt shutdown during upgrades. Add health checks that detect half-configured packages early.
Related Errors & Cross-Refs
Commonly linked to held packages, dependency loops, and broken postinst scripts under systemd service restarts.
Related tutorial: View the step-by-step tutorial for Ubuntu 16.04 LTS.
View all Ubuntu 16.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
dpkg(1), apt-get(8), Ubuntu package recovery documentation, and incident recovery playbooks.
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.