//
you're reading...
ubuntu

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 these ads

About abdessmed mohamed amine

abdessmed mohamed amine from batna algeria

Discussion

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

Facebook

December 2009
S M T W T F S
« Nov   Feb »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

  • 342,332 Visit !
Follow

Get every new post delivered to your Inbox.

Join 396 other followers

%d bloggers like this: