Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem Top Info

Stuck in Package Purgatory: Solving the "dpkg was interrupted" Error

You’re in the middle of installing a new application via apt when, suddenly, you hit a wall. The terminal spits back a cryptic, frustrating message:

This command tells dpkg to configure any packages that are in an unconfigured state. Stuck in Package Purgatory: Solving the "dpkg was

  • If packages still fail with dependency errors:
    sudo apt --fix-broken install
    sudo apt update
    sudo apt upgrade
    
  • If disk is full, free space (remove logs, caches) then repeat above steps.
  • Network Loss: Losing your internet connection during a critical download and unpacking phase. If packages still fail with dependency errors: sudo

    Preventing dpkg interruptions

    • Don’t abruptly power off or kill package operations.
    • Avoid running multiple package tools simultaneously (apt, aptitude, Software Center).
    • Keep adequate free disk space (especially /boot and root).
    • Use unattended-upgrades carefully on production systems — test automatic upgrades before enabling widely.
    • When using scripts to automate installs, check for exit statuses and wrap operations so dpkg can finish cleanly.

    In very rare cases, you might need to force reconfigure all packages: If disk is full, free space (remove logs,

    sudo dpkg --configure -a
    

    Stuck with specific package errors?

    If a particular package keeps failing (e.g., grub-pc, initramfs-tools), try:

    Follow up: After removing locks, you must run sudo dpkg --configure -a again to ensure the database is consistent. Why This Happens E: dpkg was interrupted... run 'sudo dpkg --configure