Error: "dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem"
86,302
It is called when packages are broken, or the package installation is interrupted.
You should run sudo dpkg --configure -a
or its alternative apt-get -f install
to solve this problem.
Author by
gm1
Updated on September 18, 2022Comments
-
gm1 almost 2 years
I think I used something involving
dpkg
but I am not able to recall what. After that when I need to do somesudo-apt
get or even sudo-apt get update I am facing the following issue:
dpkg was interrupted, you must manually run sudo dpkg --configure -a to correct the problem.
Any clue what is wrong and how can I fix this?
-
QwertyChouskie over 8 yearsThen run
sudo dpkg --configure -a
is it says. -
Eduardo Cola over 8 yearsYou should read the output, as it says exactly what you must do.
-
goo over 8 yearsCheck your
.history
file, wherebash
stores commands you type.
-
-
red888 over 6 yearswhat does
sudo dpkg --configure -a
actually do? I see this command referenced multiple times but not sure what it actually does -
Olimjon over 6 years@red888, In Ubuntu, packages are in a .deb file format, which is a zip file that holds compiled source ported into Ubuntu. By installing a package (
apt install <package name>
ordpkg -i <package name>
) it downloads then unpacks into/
and finally configures the package. If package installation is interrupted by some circumstances in configuration phase then this problem occurs... -
Olimjon over 6 years@red888, So
dpkg --configure -a
(Syntax:dpkg
- package installer,--configure
- start configuration phase,-a
- all packages) starts the configuration phase again... Then,apt-get -f install
resolves unmet dependencies asapt-get
has an ability to automatically install, wheredpkg
can't...