红联Linux门户
Linux帮助

centos5.2更新问题,大虾请进

发布时间:2009-06-08 21:53:28来源:红联作者:Mr.R
[i=s] 本帖最后由 Mr.R 于 2009-6-8 21:56 编辑 [/i]

我在虚拟机VM6.5中装了一个centos5.2 更新不了,但是可以上网。
情况一:
打开添加删除程序就出现如下图中的提示
情况二:
在终端里用yum 更新或者安装任何软件都出现这样的报错
ftp://ftp3.tsinghua.edu.cn/mirror/centos/5.2/updates/i386/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] timed out
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: update. Please verify its path and try again

而且yum源我也设置过多次了,改了很多网上说的比较快的源 ,但是还是出现一样 的错误。出现这样的错误会不会是跟装在虚拟机里有关系?
另附上我的CentOS-Base.repo文件
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-5 - Base
repo=os
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/centos/5.2/os/$basearch/
gpgcheck=1
gpgkey=ftp://ftp3.tsinghua.edu.cn/mirror/centos/RPM-GPG-KEY-CentOS-5

[update]
name=CentOS-5 - Updates
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/centos/5.2/updates/$basearch/
gpgcheck=1
gpgkey=ftp://ftp3.tsinghua.edu.cn/mirror/centos/RPM-GPG-KEY-CentOS-5

[addons]
name=CentOS-5 - Addons
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/centos/5.2/addons/$basearch/
gpgcheck=1
gpgkey=ftp://ftp3.tsinghua.edu.cn/mirror/centos/RPM-GPG-KEY-CentOS-5

[extras]
name=CentOS-5 - Extras
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/centos/5.2/extras/$basearch/
gpgcheck=1
gpgkey=ftp://ftp3.tsinghua.edu.cn/mirror/centos/RPM-GPG-KEY-CentOS-5

[centosplus]
name=CentOS-5 - Plus
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/centos/5.2/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=ftp://ftp3.tsinghua.edu.cn/mirror/centos/RPM-GPG-KEY-CentOS-5

[contrib]
name=CentOS-5 - Contrib
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/centos/5.2/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=ftp://ftp3.tsinghua.edu.cn/mirror/centos/RPM-GPG-KEY-CentOS-5

[eyemagnet]
name=Eyemagnet Core $releasever - Stable - Community Repository
baseurl=http://www.eyemagnet.com/repo/$releasever/$basearch/
gpgcheck=1
enabled=1
failovermethod=priority
gpgkey=http://www.eyemagnet.com/repo/RPM-GPG-KEY-eyemagnet
文章评论

共有 15 条评论

  1. cikee 于 2010-04-07 19:56:37发表:

    无效,还是没法更新。。(5ty(

  2. zhuangwenhai 于 2009-07-28 05:17:33发表:

    我想问下CentOS在哪有镜像下载

  3. jagub 于 2009-06-10 22:16:21发表:

    sorry,刚才说的是fedora的
    CentOS的话是yum-fastestmirror[code]yum install yum-fastestmirror[/code]

  4. jagub 于 2009-06-10 21:57:20发表:

    引用:

    嗯 好的,我 试试 谢了
    Mr.R 发表于 2009/6/9 23:30

    名称是yum-plugin-fastestmirror

    可以用[code]yum install yum-plugin-fastestmirror [/code]

  5. fkzh2651 于 2009-06-10 19:47:39发表:

    有没有正常联网啊

  6. hanzhijie_2005 于 2009-06-10 16:09:00发表:

    是不是软件的问题阿?

  7. jagub 于 2009-06-10 08:53:20发表:

    网速快,并不代表CentOS的更新源就快,用的人一多就堵塞了。
    我在公司是1000M光缆(其实只能用100M),CentOS更新的时候照样慢

  8. Mr.R 于 2009-06-09 23:30:57发表:

    引用:
    试试看安装plugin -> fastestmirror
    jagub 发表于 2009-6-9 21:04

    嗯 好的,我 试试 谢了

  9. Mr.R 于 2009-06-09 23:30:12发表:

    3# yvcxun

    我联网是没有问题的, 用火狐可以正常上网且网速不慢

  10. Mr.R 于 2009-06-09 23:27:31发表:

    首先先感谢各位同仁的支持,这两天都没有摸电脑。我在centos 里是可以自由上网的

  11. jagub 于 2009-06-09 21:04:12发表:

    试试看安装plugin -> fastestmirror

  12. 微宝贝 于 2009-06-09 12:57:27发表:

    在网速快点的时候再试试,在这之前你最好检查一下你的网络连接是不是正常

  13. jagub 于 2009-06-09 12:35:31发表:

    更新的人太多了

  14. yvcxun 于 2009-06-08 22:50:23发表:

    有没有正常联网啊

  15. 微宝贝 于 2009-06-08 22:14:16发表:

    但是就是网速的问题,,,,要不就是源失效了,,,