RedHat5.6 想要使用 yum

2016-08-24 18:05:01 +08:00
 Uni9k

配置了国内的 yum 源,提示下面的内容,之前用的阿里云的,奇怪的是也是提示 404 ,但是服务器实际上是能 ping 通,并且下载到那个文件的。

Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. http://mirrors.ustc.edu.cn/centos/5Server/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again

2839 次点击
所在节点    CentOS
8 条回复
smileawei
2016-08-24 18:19:42 +08:00
点击链接 显示 404 不知道你为啥能下载到文件。
Uni9k
2016-08-24 19:49:11 +08:00
@smileawei 是啊 所以郁闷。。。
jhaohai
2016-08-24 20:02:18 +08:00
那个是 centos 的源,不是 rhel 的
Uni9k
2016-08-24 21:18:27 +08:00
@jhaohai 百度貌似说 centos 源能替换 rhel 默认的
AstroProfundis
2016-08-24 21:27:49 +08:00
5Server 换成 5 就行了
julyclyde
2016-08-24 22:56:44 +08:00
Uni9k
2016-08-24 23:03:36 +08:00
@AstroProfundis 就是看到镜像站中是 5 我就换了 还是提示 404 但是 wget 能下下来 太诡异了
Delbert
2016-08-25 07:43:56 +08:00
@Uni9k curl -I 看下头部有没有跳转

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/301532

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX