python version error in Ubuntu
时间:2010-08-10 来源:xxha000721
报错 :
File "/usr/bin/pycentral", line 1472, in run
runtimes = get_installed_runtimes()
File "/usr/bin/pycentral", line 276, in get_installed_runtimes
default_version = pyversions.default_version(version_only=True)
File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg:处理 python-rpm (--configure)时出错:
子进程 post-installation script 返回了错误号 1
在处理时有错误发生:
python-sqlite
python-rpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
软件包安装失败。正在试图恢复:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在读取扩展状态文件
正在初始化软件包状态... 完成
b506@b506-desktop:~$ cd /usr/
修改方法:
sudo rm /usr/bin/python && sudo ln -s python<your-version-number> /usr/bin/python
是系统自带库里的版本不匹配,可能太久了。
相关阅读 更多 +