📖 ~1 min read
Table of contents
Symptom & Impact
All apt operations fail with the dpkg interrupted message, leaving systems unable to install updates or dependencies required by production services.
Environment & Reproduction
Seen on Ubuntu 14.04 after forced reboots, terminated apt sessions, or abrupt VM shutdown during package configuration steps.
Root Cause Analysis
The package database has entries stuck in unpacked or half-configured states, so apt blocks further transactions until consistency is restored.
Quick Triage
Run dpkg –audit, inspect /var/log/dpkg.log for the interrupted package, and verify no package manager process is still active.
Step-by-Step Diagnosis
Identify broken package states with dpkg –audit and apt -f install -s, then review postinst script errors in logs to locate the failing maintainer script.

Solution – Primary Fix
Execute dpkg –configure -a, then apt -f install and apt update; if needed remove only known-bad stale locks after process verification.
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
Force-remove a broken package with dpkg and reinstall cleanly, or restore /var/lib/dpkg from backup when package metadata corruption is severe.
Verification & Acceptance Criteria
dpkg –audit returns empty output, apt install succeeds for a test package, and service deployment scripts complete package phases without errors.
Rollback Plan
Reapply previous package versions from cache or snapshot, restore dpkg metadata backup, and return host to last known good transaction state.
Prevention & Hardening
Avoid interrupting apt in automation, ensure graceful shutdown policies, and add health checks that detect half-configured packages early.
Related Errors & Cross-Refs
Related issues include apt lock contention, dependency loops, and service restart failures caused by incomplete postinst execution.
Related tutorial: View the step-by-step tutorial for Ubuntu 14.04 LTS.
View all Ubuntu 14.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
See dpkg(1), apt-get(8), Ubuntu package recovery guides, and internal incident procedures for package database repair.
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.