首页 > 网事如风 > MBL强制升级到python2.7
2014
03-20

MBL强制升级到python2.7

Debian5 (lenny)上安装的python是2.5的,goagent要求的最低版本是2.7,2.5版本无法使用,升级吧。
参考网络上的经验,用apt的方法升级,但现在升级中遇到一些错误,在此提供最新的升级方法。

1、修改源
sudo vim /etc/apt/sources.list
#添加
deb http://ftp.us.debian.org/debian/ unstable main contrib non-free
2、更新
sudo apt-get update
提示错误:

W: GPG error: http://ftp.us.debian.org unstable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553
W: You may want to run apt-get update to correct these problems

输入命令:
gpg --keyserver subkeys.pgp.net --recv 8B48AD6246925553
等待提示:

gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

输入命令:
gpg --export --armor 8B48AD6246925553 | sudo apt-key add -
确认OK后继续输入:
sudo apt-get update
3、安装
sudo apt-get install python2.7
apt-get -f install
提示错误:

Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.18-4_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

输入命令:
dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.18-4_powerpc.deb
完成安装后使用python2.7命令启动2.7版python

觉得文章有用,微信打赏一元。



留下一个回复

你的email不会被公开。