红联Linux门户
Linux帮助

CentOS 5 教育网yum有点改动

发布时间:2008-01-13 13:16:16来源:红联作者:dexin
使用yum时会出现类似这样的错误:
引用:
http://centos.ustc.edu.cn/centos/5.0/updates/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: update


原因:在http://centos.ustc.edu.cn/centos/5.0/readme中这么说:
......
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
修改时间:2008-01-13
文章评论

共有 2 条评论

  1. Fromlung 于 2008-01-13 15:51:25发表:

    学习

  2. relaaxx 于 2008-01-13 14:33:26发表:

    不错,谢谢