Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While trying to free some space by unistalling some useless applications, I accidently have choosen the python file to be unistalled, then something wrong happens, most of programs of Ubuntu 10.10 were unistalled and much worse, the laptop was not responding.

I tried to restart, then I had the bad surprise: and error message saying that the graphic interface is not available anymore, i can access in a textual mode, do you think that i can get back my installation without reinstalling all the OS?

Please help me if you can.

share|improve this question
  • To reinstall, run this from the command line (you said you can still access 'text mode'):

    sudo apt-get install ubuntu-minimal ubuntu-standard ubuntu-desktop

    This should get your base setup working again, but I cannot say if any programs you manually installed will still be there as python is a critical package as you now know*.

  • If this does not work, you can try to recover your system with a live CD. See this answer about how to access your broken system from a live CD via chroot.

    At point 6 you would need to reinstall all the things that were removed. As I don't know the current state of your broken system, you may or may not need to run the commands from the linked answer. Then, like above, run:

    apt-get install ubuntu-minimal ubuntu-standard ubuntu-desktop

*) If you didn't choose to also delete configuration files, you might be able to easily reinstall the software via Synaptic: select the Not installed (residual config) item in the left pane, then select the software in the right pane for reinstallation:

enter image description here

share|improve this answer
thanks A Lot i'll try it and get back to you – Hopedz May 13 '11 at 23:04
well unfortunately i tried both and it didn't work!!! – Hopedz May 14 '11 at 3:42
Can you be more specific? What exactly didn't work? What were the errors you got? – htorque May 14 '11 at 7:43
hi, again when i run the first command sudo apt-get install ubuntu-minimal ubuntu-standard ubuntu-desktop , i got the error message : E: impossible to get ..... and when i tried to use the second method (live CD) i had same kind of message, i think that the problem is in the sources.list file, but i don't know how to add a link in the sources.file while i have only access to the command line. – Hopedz May 14 '11 at 19:52
@wafadz Have you been connected to the internet when trying the live CD? – htorque May 15 '11 at 7:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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