How to Reinstall Ubuntu Via Command Line

By Dustin Thornton

Ubuntu is a version of the Linux operating system, an open-source operating system available for free online. If you have a computer running Ubuntu and you experience operating system conflicts and problems you aren't able to resolve manually, you can choose to completely reinstall the Ubuntu distribution package and reconfigure the operating system to its system default settings. Reinstalling Ubuntu is as simple as inputting a single command into the Linux terminal. Note that reinstalling Ubuntu may take up to an hour or more.

Step 1

Click on "Applications" in the top left corner of your desktop. A drop-down menu appears.

Step 2

Scroll down and hover your mouse over "Accessories." Click on "Terminal." The Ubuntu terminal appears. The terminal is an application that allows you to enter command-line text to perform operating system functions.

Step 3

Input "sudo dpkg-reconfigure -phigh -a" into the terminal and press "Enter." Allow the command to process and the system to reinstall the Ubuntu distribution package.

Tips & Warnings

  • Input "sudo apt-get install -f" into the terminal to repair the Ubuntu installation instead of reinstall it.
  • Reinstalling Ubuntu completely erases any saved settings, files or documents; back up any information you wish to preserve before reinstalling.