APT refuses to continue because dpkg has been interrupted or a partially configured state remains.
Probable causes
- stop or reboot during installation
- concurrent apt process
- broken package
- insufficient disk space
Verifications.
- Checking processes — Ensure that no legitimate apt/dpkg is still active.
- Control the space — Check /, /var and inodes.
- Finish Configuration – Run dpkg –configure -a after eliminating the causes.
- Repair dependencies — Use apt -f-Lillim if necessary.
Commands
ps aux | grep -E 'apt|dpkg'
df -h
df -i
sudo dpkg --configure -a
sudo apt -f install
Solutions.
- let the active process be completed
- free from space if necessary
- complete the dpkg configuration
- correct the wrong package before resuming updates
When to climb?
Escalader if dpkg still fails on the same critical system package or if the file system has errors.