If you are new to WebUpd8, do not forget to subscribe: 
Subscribe To Web Upd8 RSS Feed!
Subscribe to our YouTube channel!
Follow WebUpd8 on Twitter!
Andrew on Last.fm
Like us on Facebook!
Follow us on Google Buzz!





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]