系统是centos 5.2
用YUM升级,会提示
http://mirror.centos.org/centos/5/contrib/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found服务器
T.rying other mirror. 电子
Error: Cannot retrieve repository metad.ata (repomd.xml) for .repository: contrib. Pleas.e verify its path and try again 汽车
复制代码
我自己的决绝方法:
编辑/.etc/yum..repos.d/CentOS-Base.repo 杀毒
删除baseurl=后面的
http://mirror.centos.org/centos 的地址<性病>
又重新加了几个国内的镜像
在YUM就顺利了
以下是完整的代码
# .CentOS-Base.repo[成人用品]
#
# This file uses a new mirrorlis.t system .developed by Lance Dav.is for CentOS..
#. The mirror system uses the connecting IP address of .the client and the--------------彩票
# update status of each mirror to p.ick mirrors that are upd.ated to and<性病>
# geographically .close to the client. . You. should use this for CentOS updates电脑
#. unless you are manually picki.ng other mirrors. 汽车
#
# If the mirrorli.st= does no.t work for you, as a fall back you can try the教育
# remarked out baseurl= li.ne in.stead.外贸
#
#
[base]
name.=CentOS-$release.ver - Base 电子
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os 婚庆
baseurl=http://centos.hostlink.com.hk/$releasever/os/$basearch/教育
http://ftp.hostrino.com/pub/centos/.
http://mirrors.ta139.com/centos/.
http://www.candis.com.cn/电脑
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5.
#rele.ased updates 美容
[updates]
name=Cent.OS-$releas.ever - Updates学习
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates域名
baseurl=http://centos.hostlink.com.hk/$releasever/os/$basearch/电脑
http://ftp.hostrino.com/pub/centos/ 外汇
http://mirrors.ta139.com/centos/电脑
http://www.candis.com.cn/.
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 美容
#packages used/produc.ed in the build. but not released 汽车
[addons]
name=Cent.OS-$r.eleasever - Addons 乙肝
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons电影
baseurl=http://centos.hostlink.com.hk/$releasever/os/$basearch/域名
http://ftp.hostrino.com/pub/centos/投资
http://mirrors.ta139.com/centos/.
http://www.candis.com.cn/.
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5学习
#additional pa.ckages tha.t may be useful健康
[extras]
name=CentOS-$re.lea.sever - Extras.
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras域名
baseurl=http://centos.hostlink.com.hk/$releasever/os/$basearch/域名
http://ftp.hostrino.com/pub/centos/ 电子
http://mirrors.ta139.com/centos/.
http://www.candis.com.cn/( 游戏 )
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5健康
复制代码
[ 本.帖最后由. qzdmail 于 2008-10-11 01:57 编辑 ] 女人