19

In case there were some problems during the last apt-get operation, is there a command that checks if something has to be continued in apt-get?

rubo77
  • 34,024
  • 52
  • 172
  • 299

3 Answers3

29

Use the command:

sudo apt-get -f install

If that doesn't work, you can direct dpkg to finish setting up any packages that were only partially set up:

sudo dpkg --configure -a

If it doesn't work than you can reconfigure all the packages with:

sudo dpkg-reconfigure -a
Wil
  • 843
Frantique
  • 8,673
8

In addition to the response by @Frantique, I would like to add:

sudo dpkg --configure -a

That solved my issue when the upgrade was interrupted during the process.

2

I had the same issue and in my case a Deb package was corrupted. I had to

  1. delete the cached packages from /var/cache/apt/archives with

    sudo apt-get clean
    
  2. before running

    sudo apt-get -f install
    
David Foerster
  • 36,890
  • 56
  • 97
  • 151