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.

Share:
86,302
gm1
Author by

gm1

Updated on September 18, 2022

Comments

  • gm1
    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 some

    sudo-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
      QwertyChouskie over 8 years
      Then run sudo dpkg --configure -a is it says.
    • Eduardo Cola
      Eduardo Cola over 8 years
      You should read the output, as it says exactly what you must do.
    • goo
      goo over 8 years
      Check your .history file, where bash stores commands you type.
  • red888
    red888 over 6 years
    what does sudo dpkg --configure -a actually do? I see this command referenced multiple times but not sure what it actually does
  • Olimjon
    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> or dpkg -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
    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 as apt-get has an ability to automatically install, where dpkg can't...