Ubuntu: How to reinstall Ubuntu From Terminal? [duplicate]



Question:

This question already has an answer here:

Is there any way to reinstall Ubuntu 12.04 straight from the terminal? My terminal works but I literally almost purged my entire operating system by accident (bad advice from a community member). The terminal runs on a black screen now but it works. Any ideas?


Solution:1

What about :

sudo apt-get install ubuntu-desktop  

If that does not work, what did you remove . Any links to other questions elsewhere ?


Solution:2

Just try updating Ubuntu to keep all your stuff and fix the problem.

sudo do-release-upgrade  sudo sed -i 's/quantal/raring/' /etc/apt/sources.list  sudo apt-get update && apt-get dist-upgrade  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »