Ubuntu / Linux news and application reviews.

The following command will reinstall all the packages and reconfigures them automatically:

sudo dpkg-reconfigure -phigh -a


This is very useful in case of an unsuccessful upgrade or when something went very bad and you don't have a back-up.

If, however, you have some minor dependency errors, instead of the command above (which will take about an hour to finish), use this command instead (I'm sure you already know it):

sudo apt-get install -f


[tip via aldeby.org]