you're reading...

Reinstall Ubuntu From Command Line

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.

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

sudo apt-get install -f

Thanks to aldeby and unixmen for this command.


About abdessemed mohamed amine



2 thoughts on “Reinstall Ubuntu From Command Line

  1. Hi, I have problems with a screen freeze which launchpad have not been able to resolve so I want to do a complete re-install. I tried the first command above but it got to a point where I did not know how to proceed – instruction was:dpkg-trigger must be called from a maintainer script (or with a — by-package option). Any suggestions? The next command led nowhere too. If a fresh install with a live cd is required – where can I find instructions?
    Thanks – Terry O’Brien

    Posted by Terry O'Brien | January 10, 2010, 11:41

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: