V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Uni9k
V2EX  ›  CentOS

RedHat5.6 想要使用 yum

  •  
  •   Uni9k · 2016-08-24 18:05:01 +08:00 · 2824 次点击
    这是一个创建于 2773 天前的主题,其中的信息可能已经有所发展或是发生改变。

    配置了国内的 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

    8 条回复    2016-08-25 07:43:56 +08:00
    smileawei
        1
    smileawei  
       2016-08-24 18:19:42 +08:00
    点击链接 显示 404 不知道你为啥能下载到文件。
    Uni9k
        2
    Uni9k  
    OP
       2016-08-24 19:49:11 +08:00
    @smileawei 是啊 所以郁闷。。。
    jhaohai
        3
    jhaohai  
       2016-08-24 20:02:18 +08:00 via iPhone
    那个是 centos 的源,不是 rhel 的
    Uni9k
        4
    Uni9k  
    OP
       2016-08-24 21:18:27 +08:00
    @jhaohai 百度貌似说 centos 源能替换 rhel 默认的
    AstroProfundis
        5
    AstroProfundis  
       2016-08-24 21:27:49 +08:00
    5Server 换成 5 就行了
    julyclyde
        6
    julyclyde  
       2016-08-24 22:56:44 +08:00
    Uni9k
        7
    Uni9k  
    OP
       2016-08-24 23:03:36 +08:00
    @AstroProfundis 就是看到镜像站中是 5 我就换了 还是提示 404 但是 wget 能下下来 太诡异了
    Delbert
        8
    Delbert  
       2016-08-25 07:43:56 +08:00 via Android
    @Uni9k curl -I 看下头部有没有跳转
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5443 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:40 · PVG 15:40 · LAX 00:40 · JFK 03:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.