Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

migrated from stackoverflow.com Nov 15 '11 at 7:33

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

2 Answers

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
add comment

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: ubuntuforums.org/showpost.php?p=10029998&postcount=6. Original thread: ubuntuforums.org/showthread.php?t=1606409 –  Robert Smith Nov 15 '11 at 6:02
1  
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
add comment

Your Answer

 
discard

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