Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

marked as duplicate by Braiam, guntbert, bain, Radu Rădeanu Jun 22 at 17:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

2 Answers 2

What about :

sudo apt-get install ubuntu-desktop

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

share|improve this answer
    
Multiple statements saying: Failed to fetch us.archive.ubuntu.com/ubuntu/pool/main/u/…. Could not resolve 'us.archive.ubuntu.com' I purged a lot of stuff, I honestly have no idea... –  Adam May 1 '13 at 18:10
1  
Do you have an internet connection ? Can you ping google? If not, perhaps best to simply re-install. –  bodhi.zazen May 1 '13 at 18:30
add comment

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
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.