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...

7 Steps 1 min read Medium

Step-by-Step Guide

  1. 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.
  2. Step 2: Delete all files in the updates @ /var/lib/dpkg/updates directory.

  3. Step 3: Navigate to /var/lib/dpkg and set path to this location: "cd.."

  4. Step 4: Open the status file with text editor with admin privileges

  5. Step 5: using: "sudo gedit status"

  6. Step 6: Find your application and delete the data about it in the file.

  7. 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

B

Brenda Gonzales

Brings years of experience writing about DIY projects and related subjects.

151 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: