免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4052 | 回复: 4
打印 上一主题 下一主题

[系统管理] 怎么更改repomd.xml的地址? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-07-13 11:21 |只看该作者 |倒序浏览
本帖最后由 ewfafaw21 于 2012-07-13 11:22 编辑

我用yum时出现错误。
  1. Repository base is listed more than once in the configuration
  2. Repository updates is listed more than once in the configuration
  3. Repository addons is listed more than once in the configuration
  4. Repository extras is listed more than once in the configuration
  5. Repository centosplus is listed more than once in the configuration
  6. Repository contrib is listed more than once in the configuration
  7. Repository base is listed more than once in the configuration
  8. Repository updates is listed more than once in the configuration
  9. Repository addons is listed more than once in the configuration
  10. Repository extras is listed more than once in the configuration
  11. Repository centosplus is listed more than once in the configuration
  12. Repository contrib is listed more than once in the configuration
  13. Repository base is listed more than once in the configuration
  14. Repository updates is listed more than once in the configuration
  15. Repository extras is listed more than once in the configuration
  16. Repository centosplus is listed more than once in the configuration
  17. YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
  18. Eg. 5Server is not a valid release or hasnt been released yet/
  19. http://mirrors.sohu.com/centos/5Server/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
  20. Trying other mirror.
  21. Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again
复制代码
其中这一行的地址是错的
  1. http://mirrors.sohu.com/centos/5Server/addons/x86_64/repodata/repomd.xml
复制代码
,那个“5Server”应该是“5”,怎么更改?

论坛徽章:
0
2 [报告]
发表于 2012-07-13 11:53 |只看该作者
本帖最后由 anonymous0502 于 2012-07-13 11:55 编辑
  1. YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
复制代码
配置格式不对
类似这样的:
mirrorlist=http://mi..
用系统安装后默认的不行吗?

论坛徽章:
0
3 [报告]
发表于 2012-07-13 12:04 |只看该作者
别人写的,直接wget那个文件改下名字
http://www.5013.org/archives/129

论坛徽章:
0
4 [报告]
发表于 2012-07-13 12:43 |只看该作者
本帖最后由 ewfafaw21 于 2012-07-13 12:55 编辑
anonymous0502 发表于 2012-07-13 12:04
别人写的,直接wget那个文件改下名字
http://www.5013.org/archives/129

谢谢了!不过还是不行,我的配置文件没什么问题。还是提示上个错误

论坛徽章:
0
5 [报告]
发表于 2012-07-16 00:02 |只看该作者
清除yum cache 后再试一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP