← Back to Error Index
root@linuxfix:~/dpkg_interrupted$
dpkg interrupted
dpkg was interrupted you must manually run dpkg configure

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 pending packages

Complete interrupted package configuration:

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

Remove corrupted package files:

sudo apt clean
sudo apt autoclean
sudo rm -rf /var/lib/dpkg/updates/*
Fix dpkg database

Repair package database if corrupted:

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bak
sudo mkdir /var/lib/dpkg/info
sudo apt-get update

What is dpkg interrupted?

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

Common scenarios: System crash during package installation, killing package manager, or power loss during updates.

Common Causes

  • Package installation interrupted
  • System crash during upgrade
  • Disk space exhaustion
  • Power failure
  • Force killing package manager

Debugging Tips

dpkg -l | grep "^iU"
cat /var/lib/dpkg/status | grep Status
ls -la /var/lib/dpkg/
df -h /var

Prevention

  • Ensure adequate disk space
  • Avoid interrupting package operations
  • Use UPS for power protection
  • Regular system backups
dpkg package installation debian