I wanted to remove and reinstall python2.7 interpreter on 12.04
But when I did sudo apt-get remove python2.7, The crazy terminal started to remove everything!!! Any idea how I can restore whatever I've removed?
|
I wanted to remove and reinstall python2.7 interpreter on 12.04 But when I did |
|||||||||
|
|
Removing Python is not a good idea as much of Ubuntu depends on it. You may have seen a warning telling you which packages depend on python and thus will be removed with Python. When proceeding you end up with a quite stripped down OS. Reinstalling Ubuntu would now be the easiest and safest way to get it back. Take care not to delete your HOME when you do so. |
|||||||||||||
|
|
While reinstalling Ubuntu is probably the easiest way, it's worth pointing out that it's possible to recover without reinstalling everything. To do this, manually download the In the future, if you need to reinstall a package, instead use
or
which reinstalls the package without having to remove the dependencies. |
|||
|
|
|
If it's not too late for anyone, or if you have come across this problem lately, this is how I got it running: I followed Mechanical snail's advice and downloaded all the packages using Synaptic. I selected all the relevant packages, basically everything with "python", "python2", "python3", "apt", "python-apt", etc., that was already installed in my computer, tagged them for reinstallation, and when I hit apply, I made sure I downloaded them only. Then, under root, I went into the
Anyway, I was getting this Running the script outside of Aptana by calling |
||||
|
|
OOPS Running this command
and watching helplessly removal of all packages embarrassing nothing comes in mind except to bang in room walls, where has the heartbeat gone why not some warnings given :(:( |
||||
|
|
|
you can recover desktop using live CD using chroot http://alok.fossguru.in/content/rescuing-system-chroot |
|||
|
|