sudo rm /var/lib/dpkg/lock-frontend sudo rm /var/lib/dpkg/lock sudo rm /var/lib/apt/lists/lock
The dpkg was interrupted error looks scary, but it’s designed to protect your system. One command— sudo dpkg --configure -a —is usually all you need.
Try forcing the install of any pending packages:
If the basic command fails or hangs, follow these steps in order: Fix Broken Dependencies cannot resolve the state on its own, use to force a fix for broken packages: sudo apt-get install -f Use code with caution. Copied to clipboard Clear Stale Update Files