论坛风格切换切换到宽版
  • 654阅读
  • 3回复

[问题求助][CentOS] YUM升级出问题的看看这里 [复制链接]

上一主题 下一主题
 
发帖
2168
C币
-60397
威望
407
贡献值
1
银元
-1
铜钱
4944
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
系统是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 编辑 ]           女人

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线xdlyly.
发帖
2058
C币
-139587
威望
385
贡献值
1
银元
0
铜钱
4510
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:[CentOS]
我咋用这个方法不管用呢

离线mofan.
发帖
2003
C币
-139169
威望
389
贡献值
1
银元
-2
铜钱
4649
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:[CentOS]
Error: Cannot retrieve repository metadata (repomd.xml) for repository: contrib. Please verify its path and try again

离线poomo.
发帖
2145
C币
-604700
威望
359
贡献值
5
银元
-3
铜钱
4675
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
Re:[CentOS]
有时也跟防火墙的拦截有关系。

快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个