never delete the system default Python!!! under/usr/bin Remember.
The Ubuntu10.04 lts version is used, with Python 2.6.5. A few days ago preface, the Python upgrade to 2.7.3.
#./configure--prefix=/usr/local/python2.7 # make
# make install
# cd/usr/bin
# ln-sf/usr/local/bin/ Python python
Everything's fine. Wow, there's no problem.
But, however, I did the evil thing of a step
Ln-sf/usr/local/bin/python python2.6
This is the step wow, put me on the point of no return, the system can not use a variety of functions, such as the Ubuntu Software Center. Apt-get upgrade also have problems, suggesting that the Python version does not match, and changes to the default version. But I have removed the python2.6 to cover.
I thought to switch to 2.6 on the line, download the 2.6.8,2.6.5 compile installation is not good, it seems only to find the original python2.6, but also fortunately I had installed 10.04 of the virtual machine, copied from the above to solve the problem.
so again, do not delete the/usr/bin under the pythonx.x, never move it. It's best to back it up.
~end~