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.
1 Answer
I fixed uninstallation problem by putting back "sitecustomize.py" It was deleted during upgrading to python3.3 so I could not purge python. I searched for it by "locate sitecustomize.py" luckily I found it in remastersys folder. I copied it into sudo cp /home/remastersys/remastersys/dummysys/etc/python2.7/sitecustomize.py /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/sitecustomize.py’
error again.
I navigated using cd /usr/lib/python2.7/
then executed ls
.
to my surprize "sitecustomize.py" 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/sitecustomize.py" into " /usr/lib/python2.7/" then ran sudo dpkg --configure -a
. Problem fixed.
apt-get
. Anyways, can you show what error messages you get... the ones that convinced you you can't revert to2.7.4
?