背景
有使用较老的Centos 5 系统内部安装软件无法正常报错,是由于系统叫老yum源存在问题
处理方法
更换下述yum源,可以将其他repo源文件备份移动到其他目录,添加下述源后重新测试
[C5.11-base]
name=CentOS-5.11
baseurl=http://vault.centos.org/5.11/os/$basearch/gpgcheck=1
#gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 如果出现下述报错将此行注释
enabled=1
临时解决就是换个不同的镜像,比如:
baseurl= http://archive.kernel.org/centos-vault/5.11/os/$basearch/
如果出现下述报错提示
result = func(*args)
File "/usr/lib64/python2.4/urllib2.py", line 565, in http_error_302
return self.parent.open(new)
File "/usr/lib64/python2.4/urllib2.py", line 358, in open
response = self._open(req, data)
File "/usr/lib64/python2.4/urllib2.py", line 376, in _open
'_open', req)
File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/li