If Ubuntu displays E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem., a previous package installation or upgrade did not finish successfully.
Solution
-
Connect to your server through SSH.
-
Complete the unfinished package configuration:
sudo dpkg --configure -a -
Refresh package information and repair broken dependencies:
sudo apt update sudo apt --fix-broken install -
Run the package installation, upgrade, or deployment command again.
If the problem continues
Do not delete APT or dpkg lock files while another package process may be running. Wait for any active package installation, upgrade, or unattended update to finish, then retry the commands above.
If the error remains, contact FlashPanel support and include the complete command output, your Ubuntu version, and the action that triggered the error.