Categories: TutorialsUbuntu

How to Fix : dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem

When you try to install a package or a tool, you get the following error: “dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem” as shown below when I tried to install the neofetch utility.

Sponsored

In order to solve this problem, try to first update your package repository using the command :

sudo apt-get update

Read: How to remove broken packages in Ubuntu

Next, run the dpkg configure command :

sudo dpkg –configure -a

This command will configure any packages that were left in an incomplete state due to the interruption.

It’s important to note that running this command may cause some packages to be removed or installed in order to resolve any dependency issues.

Read: How to install and uninstall applications on Ubuntu – A Beginner’s guide

Sponsored

Therefore, it’s important to make sure that you have a backup of your data and that you have the necessary permissions before running the command.

Finally, run the following commands in the order shown below :

sudo rm /var/lib/apt/lists/lock

sudo rm /var/cache/apt/archives/lock

cd /var/lib/dpkg/updates

sudo rm *

sudo apt-get update

You should be able to solve your problem as was the case with me :

The post How to Fix : dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem appeared first on net2.

Ubuntu Server Admin

Recent Posts

Revolutionizing Web Page Creation: How Structured Content is Slashing Design and Development Time

Co-authored with Julie Muzina A year ago, during our Madrid Engineering Sprint, we challenged ourselves…

13 hours ago

Ubuntu Weekly Newsletter Issue 897

Welcome to the Ubuntu Weekly Newsletter, Issue 897 for the week of June 15 –…

1 day ago

Ubuntu Core is now available on MediaTek’s Genio platform

This is the first optimized Ubuntu Core image available on MediaTek’s Genio 350, 510, 700,…

2 days ago

Effective infrastructure automation to reduce data center costs

Data centers are expensive: automation is the solution Today, managing a data center requires striking…

5 days ago

What are our partners building for device makers? Explore the highlights from Ubuntu IoT Day Singapore

Our first Ubuntu IoT Day in Southeast Asia – and our first ever event in…

6 days ago

Fixes available for local privilege escalation vulnerability in libblockdev using udisks

Qualys discovered two vulnerabilities in various Linux distributions which allow local attackers to escalate privileges.…

6 days ago