不是 setup.noarch
就是 setuptool.i386
yum install setup.noarch
yum install setup.i386
=================================有些问题很奇妙,妙不可言
[root@bydaili ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=addonserror was
[Errno 4] IOError: <urlopen error (-3,'\xe5\x9f\x9f\xe5\x90\x8d\xe8\xa7\xa3\xe6\x9e\x90\xe6\x9a\x82\xe6\x97\xb6\xe5\xa4\xb1\xe8\xb4\xa5')>
Error: Cannot find a valid baseurl for repo: addons
已经解决,是 /etc/resolv.conf未设置DNS.
原因:......
you should use /5/ and not /5.0/ in your path....
......
解决方法:
在所有后缀名为repo的文件中,比如CentOS-Base.repo,或者edu.repo(也可能没有这个文件)
所有出现5.0的地方都改为5,比如将
http://centos.ustc.edu.cn/centos/5.0/contrib/$basearch/
改为:
http://centos.ustc.edu.cn/centos/5/contrib/$basearch/
环境:CentOS 5
转载于:https://blog.51cto.com/584250550/1358586