Single Command to Reinstall Ubuntu

Did you screw up your Ubuntu install? No need to download all the packages or get our your Ubuntu CD for a new installation. A single command can help you reinstall Ubuntu and reinstall all the packages from core and reconfigure them.

To reinstall or restore Ubuntu to a factory install from the command line, run the following command:

   1: sudo dpkg-reconfigure -phigh -a

To run minor restores and dependency issues, you can run the command:

   1: sudo apt-get install -f

Don’t forget to your data before you run any of the commands.

Reinstall Ubuntu automatically [via Kabatology]

One thought on “Single Command to Reinstall Ubuntu”

  1. Quick question, does this simply remove all settings or actually remove all packages and software installed as well as delete all user accounts etc, exactly as if a clean reinstall?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>