How to Handle “DPKG was Interrupted” Error
Remove lock in the dpkg directory: "sudo rm /var/lib/dpkg/lock"; , Delete all files in the updates @ /var/lib/dpkg/updates directory., Navigate to /var/lib/dpkg and set path to this location: "cd.." , Open the status file with text editor with admin...
Step-by-Step Guide
-
Step 1: Remove lock in the dpkg directory: "sudo rm /var/lib/dpkg/lock";
Type the command after navigating to the directory:
Type "cd /var/lib/dpkg/updates" Then "sudo rm *"
,, Here check the “Status” value in the log.
If this is a successful installation, status is “install ok installed”.
For a failed installation, it will be something different, something like “install partial installed”.
Now delete the data about the identified program. , This should be found under the same directory.
After that, you are done.....ready to install applications on your system here on. -
Step 2: Delete all files in the updates @ /var/lib/dpkg/updates directory.
-
Step 3: Navigate to /var/lib/dpkg and set path to this location: "cd.."
-
Step 4: Open the status file with text editor with admin privileges
-
Step 5: using: "sudo gedit status"
-
Step 6: Find your application and delete the data about it in the file.
-
Step 7: Repeat the deletion process for file "status-old."
Detailed Guide
Type the command after navigating to the directory:
Type "cd /var/lib/dpkg/updates" Then "sudo rm *"
,, Here check the “Status” value in the log.
If this is a successful installation, status is “install ok installed”.
For a failed installation, it will be something different, something like “install partial installed”.
Now delete the data about the identified program. , This should be found under the same directory.
After that, you are done.....ready to install applications on your system here on.
About the Author
Brenda Gonzales
Brings years of experience writing about DIY projects and related subjects.
Rate This Guide
How helpful was this guide? Click to rate: