更新Python版本为系统默认版本,解决软件中心打不开的问题

1、首先看一下当前系统的python指向

william@william-VirtualBox:/usr/bin$ ll | grep python
-rwxr-xr-x  1 root   root      30284  4月 18  2012 dh_python2*
lrwxrwxrwx  1 root   root         23  1月  8 01:32 pdb2.7 -> ../lib/python2.7/pdb.py*
lrwxrwxrwx  1 root   root          7  4月  5 17:09 python -> python2*
lrwxrwxrwx  1 root   root          9  1月  8 01:32 python2 -> python2.7*
-rwxr-xr-x  1 root   root    2799288  8月  1  2012 python2.7*
lrwxrwxrwx  1 root   root         29  1月  8 01:32 pyversions -> ../share/python/pyversions.py*

 我软件中心打不开 是因为我自己替换了Python的版本。我系统里装了python2.7.3 和python3.3,系统默认的版本是2.7。上图看到的是我已经修改过了的,如果没有指向系统默认的2.7版本,需要修改。

2、修改python软链接的指向

sudo rm -rf ./python
sudo ln -s python2 ./python

 

猜你喜欢

转载自no-mor.iteye.com/blog/1842302
今日推荐