← Back to Error Index
root@linuxfix:~/dpkg_was_interrupted$
dpkg was interrupted
Package installation was interrupted

Solutions

Prerequisites: Start by updating your system to resolve common issues and ensure the solutions provided below are compatible with your current environment.
check_latest_version && sudo apt update && sudo apt upgrade -y
Configure packages

Complete interrupted installation:

sudo dpkg --configure -a
sudo apt-get install -f
sudo apt --fix-broken install
Clean package cache

Remove corrupted files:

sudo apt clean
sudo apt autoclean
Check disk space

Ensure adequate space:

df -h
sudo apt autoremove

What is dpkg was interrupted?

The dpkg package manager was interrupted during installation, leaving the system in an inconsistent state.

Common scenarios: System crashes during updates, killed package processes, or disk space issues.

Common Causes

  • Installation interrupted
  • System crash
  • Disk space full
  • Process killed
  • Power failure

Debugging Tips

dpkg -l | grep "^iU"
cat /var/lib/dpkg/status | grep Status

Prevention

  • Ensure adequate space
  • Avoid interrupting updates
  • Use UPS
dpkg packages installation debian