Dpkg Was Interrupted You Must Manually Run Sudo Dpkg Configure To Correct The Problem -

| Error Message | Likely Solution | |---------------|----------------| | Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? | Remove lock files (as shown above) or kill other apt processes. | | E: Sub-process /usr/bin/dpkg returned an error code (1) | Run sudo dpkg --configure -a , then sudo apt --fix-broken install . | | dpkg: error: parsing file '/var/lib/dpkg/status' near line ... | Restore a backup of the status file or regenerate from logs. | | Could not get lock /var/lib/apt/lists/lock | Remove the lock with sudo rm /var/lib/apt/lists/lock . |

sudo lsof /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend /var/lib/apt/lists/lock /var/cache/apt/archives/lock

Avoid running system updates on a laptop unless it is plugged into a power source. | | dpkg: error: parsing file '/var/lib/dpkg/status' near

Follow these solutions in order. Start with Step 1, which resolves the vast majority of cases. Step 1: Run the Suggested Command

After running these two commands, your package manager should work normally again. then sudo apt --fix-broken install .

If you identify a package (e.g., broken-package ), try:

sudo kill -9 PID

Once this completes, try running your original installation command again. Solution 2: Fixing Broken Dependencies

: If you see an error like "Could not get lock," another process might be using the package manager. Close other installers (like Synaptic or Update Manager) or manually remove the locks as suggested on BigBearTechWorld sudo rm /var/lib/dpkg/lock Remove Pending Updates | | dpkg: error: parsing file '/var/lib/dpkg/status' near