Ubuntu – How to continue configuration if apt-get was interrupted

apt

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?

Best Answer

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