Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem (Free Forever)

If you are certain no other update is running, you may need to manually remove the lock files that are preventing dpkg from working:

: Closing the terminal window or pressing Ctrl + C while a critical update was running. If you are certain no other update is

– You can copy the status and available files after successful updates: This ensures that if your Wi-Fi drops, the

without having your laptop plugged into a wall outlet. The next time you try to use APT

: If you are updating a server over SSH, use tools like Screen or Tmux . This ensures that if your Wi-Fi drops, the update process will continue running safely on the server background.

During a package operation (e.g., apt install , apt upgrade , apt remove ), dpkg locks its database to prevent corruption. If this process is unexpectedly interrupted – for example, by a power failure, a system crash, a forced reboot, or closing the terminal during an update – the lock may remain in place. The next time you try to use APT or dpkg , the system detects that the previous operation was not completed and displays:

X

THANK YOU TO OUR SPONSORS