Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

By mistake I ran the following command:

sudo apt-get remove python

After this my PC is no longer working properly.

It shows graphics problem during restarting and every time it starts in Grub loader mode

Is there any solution to recover it back into normal mode so that I don't need to reconfigure all the settings of my packages?

share|improve this question

migrated from Nov 15 '11 at 7:33

This question came from our site for professional and enthusiast programmers.

Settings shouldn't be effected by this at all. The problem you're now facing is, that pretty big parts of the userland1 have been removed.

How to recover this mess? Well, if you can, boot up to the Login-Screen and hit Ctrl+Alt+F1. If it doesn't boot anymore to the login screen, boot into the "Recovery Console", which is selectable in the Grub bootmenu. From there it's pretty straight forward:

  • Login
  • Make sure you're connected to a network, if not, connect to one
  • Reinstall the core of Ubuntu: sudo apt-get install ubuntu-desktop
  • Reboot

1: Yes, userland. In the list of Robert Smiths list is no real system package, so the basic system is fine.

share|improve this answer

Sorry to hear that. Maybe there is a silver bullet out there, but it should be better to reinstall the whole thing.

I haven't tried this approach (obviously), but it shouldn't worsen the situation:

sudo apt-get update
sudo apt-get install python
share|improve this answer
Thanks a lot for your positive response but i have tried that but that command is not working in my case, I am doing with "sudo apt-get upgrade" If u have any other way then please reply me as early as possible. – Jeet Nov 15 '11 at 5:53
Try this: Original thread: – Robert Smith Nov 15 '11 at 6:02
Thanks a lot for these links as second link has the same problem as i have, and may be that will help me to solve my problem. I will come back to you shortly......... – Jeet Nov 15 '11 at 6:16

Your Answer


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