30 December 2009 0 Comments

Reinstall Ubuntu With A Single Command Automatically

There is a very simple command that reinstalls all the distribution packages and reconfigures them automatically. This is particularly helpful when you have done a partial upgrade and eventually have broken the system dependencies tree.

1
sudo dpkg-reconfigure -phigh -a

since this command would take a lot of time to process (~1 hour) depending on your hardware in case you have a minor dependency problem you can fix it via

1
sudo apt-get install -f

[tip via aldeby.org]

Note: Depending on what you are looking to accomplish, it might just be better to reinstall. (It takes a lot less than an hour, these days.)