Mistakenly ran "sudo apt-get remove python" (system is not working in normal mode, is there any solution?)

2

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?

Jeet

Posted 2011-11-15T05:34:09.263

Reputation:

Answers

1

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.

Bobby

Posted 2011-11-15T05:34:09.263

Reputation: 8 534

0

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

Robert Smith

Posted 2011-11-15T05:34:09.263

Reputation: 143

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. – None – 2011-11-15T05:53:05.533

1Thanks 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......... – None – 2011-11-15T06:16:04.657