dpkg was interrupted Linux Origin: Platform & cloud OSI layer 7 · Application Last updated 12 Oct 2026

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem

A previous package operation stopped halfway (closed terminal, reboot, power loss), and apt refuses to continue until it’s finished.

Exact message you may see dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problemdpkg was interrupted
Seen on: Linux

Meaning

Run the command it asks for. If that fails, the output will show the specific package to fix (often a failing post-install script).

Common causes

  • Upgrade interrupted (SSH disconnect, Ctrl-C, reboot)
  • Unattended upgrades killed
  • Disk full during an upgrade

⚡ Quick fix

  1. sudo dpkg --configure -a
  2. Then sudo apt -f install and sudo apt upgrade
  3. Use screen/tmux for long upgrades over SSH

Detailed fix by platform

Ubuntu

  1. bash
    sudo dpkg --configure -a
    sudo apt-get -f install
    sudo apt-get upgrade

How to diagnose

  1. Output — Which package fails during --configure -a?
  2. Disk — df -h

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

dpkg lock — E: Could not get lock /var/lib/dpkg/lock-frontend — is another process using it? (Linux)dpkg lockFailed to download metadata for repo — Error: Failed to download metadata for repo 'appstream' (dnf / yum) (Linux)Failed to download me…held broken packages — Unmet dependencies / E: Unable to correct problems, you have held broken packages (Linux)held broken packagesNO_PUBKEY — The following signatures couldn't be verified because the public key is not available: NO_PUBKEY (Linux)NO_PUBKEYRepository does not have a Release file — E: The repository '...' does not have a Release file (Linux)Repository does not h…Sub-process /usr/bin/dpkg returned an error code (1) — E: Sub-process /usr/bin/dpkg returned an error code (1) (Linux)Sub-process /usr/bin/…Unable to locate package — E: Unable to locate package (apt / apt-get install) (Linux)Unable to locate pack…dpkg was …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.