Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I'm in complete trouble with my Ubuntu 13.04 distro. Today I wanted to try python 3.3, I compiled it and installed from source. It broke my system, many packages wait for apt-get remove cmmand. I tried to purge python by issuing "sudo apt-get remove –purge python*" after then I still can not revert to python 2.7.4. Most importantly how can I reinstall my system? I feel like hanging in gallow, please help.

share|improve this question
That version of Ubuntu already has Python 3.3, meaning you could have simply installed it via apt-get. Anyways, can you show what error messages you get... the ones that convinced you you can't revert to 2.7.4? – Tshepang Sep 9 '13 at 23:10
It was a known bug with python 2.7.4. The error message was "IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/'" Here is the filed bug : – kenn Sep 10 '13 at 7:43
I know 13.04 has python3.3 but mine was using python2.7.4. Upgrading to 3.3 borked my system – kenn Sep 10 '13 at 7:59
same problem with me – user01 Feb 18 '14 at 7:54
up vote 1 down vote accepted

I fixed uninstallation problem by putting back "" It was deleted during upgrading to python3.3 so I could not purge python. I searched for it by "locate" luckily I found it in remastersys folder. I copied it into sudo cp /home/remastersys/remastersys/dummysys/etc/python2.7/ /usr/lib/python2.7/ then ran sudo dpkg -a --configure uninstallation problem fixed. Thank you Tshepang for answer

Edit: Today after system updated python, I met the IOError: [Errno 2] No such file or directory: ‘/usr/lib/python2.7/’ error again. I navigated using cd /usr/lib/python2.7/ then executed ls.

to my surprize "" was in the list in red. I think it was a symlink and main file was deleted during update. So I removed symlink and copied main file I found in "/home/remastersys/remastersys/dummysys/etc/python2.7/" into " /usr/lib/python2.7/" then ran sudo dpkg --configure -a. Problem fixed.

share|improve this answer

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.