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

Stop Wallpaper Moving when Switching Workspace in Ubuntu 24.04

For GNOME users who don’t like the default workspace switch animation, here’s an extension that…

12 hours ago

Warzone 2100 Released 4.6.0 with Spectator Host Mode

Warzone 2100, the free open-source 3D real-time strategy game, released new major 4.6.0 version few…

2 days ago

What our users make with Ubuntu Pro – Episode 2

How Vaultara achieved FedRAMP compliance with Ubuntu Pro Ubuntu Pro helps businesses worldwide to innovate…

2 days ago

How To Install Zabbix Server 7.4 On Ubuntu 22.04

Zabbix is smart monitoring system on your network. This software written by php mysql. So…

3 days ago

How To Install Zabbix Server 7.2 On Ubuntu 22.04

Zabbix is smart monitoring system on your network. This software written by php mysql. So…

3 days ago

SuperTuxKart 1.5 RC2 added GUI option to Choose Vulkan or DirectX 9

SuperTuxKart, the 3D kart racing game, announced the second release candidate for the next 1.5…

3 days ago