V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
sdrzlyz
V2EX  ›  全球工单系统

[阿里云] 镜像地址重定向到内网啦

  •  
  •   sdrzlyz · 2021-06-02 14:44:10 +08:00 · 1173 次点击
    这是一个创建于 1052 天前的主题,其中的信息可能已经有所发展或是发生改变。

    起因,alpine 镜像内部安装一个依赖,一串提示错误。。。

    apk add --no-cache mycli --repository=http://mirrors.aliyun.com/alpine/edge/testing
    

    测试发现

    curl -v http://mirrors.aliyun.com/alpine/edge/testing
    

    返回

    *   Trying 180.163.121.242...
    * TCP_NODELAY set
    * Connected to mirrors.aliyun.com (180.163.121.242) port 80 (#0)
    > GET /alpine/edge/testing HTTP/1.1
    > Host: mirrors.aliyun.com
    > User-Agent: curl/7.64.1
    > Accept: */*
    >
    < HTTP/1.1 301 Moved Permanently
    < Server: Tengine
    < Content-Type: text/html
    < Content-Length: 239
    < Connection: keep-alive
    < Date: Wed, 02 Jun 2021 06:38:54 GMT
    < Location: http://pub.mirrors.aliyun.com/alpine/edge/testing/
    < Expires: Wed, 02 Jun 2021 08:38:54 GMT
    < Cache-Control: max-age=7200
    < Via: cn1996.l1, vcache8.cn1996, l2cn1809.l2, cache24.l2cn1809, e09a05507.eu13, cache24.l2cn1809[23,22,301-0,M], cache37.l2cn1809[24,0], vcache8.cn1996[0,0,301-0,H], vcache7.cn1996[1,0]
    < Ali-Swift-Global-Savetime: 1622615934
    < Age: 41
    < X-Cache: HIT TCP_MEM_HIT dirn:-2:-2
    < X-Swift-SaveTime: Wed, 02 Jun 2021 06:38:54 GMT
    < X-Swift-CacheTime: 7200
    < Timing-Allow-Origin: *
    < EagleId: b4a3791b16226159750377258e
    <
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html>
    <head><title>301 Moved Permanently</title></head>
    <body>
    <center><h1>301 Moved Permanently</h1></center>
    <hr/>Powered by Tengine<hr><center>tengine</center>
    </body>
    </html>
    * Connection #0 to host mirrors.aliyun.com left intact
    * Closing connection 0
    

    301 到了一个内网的地址上,只有用阿里云的服务器才能内网解析: http://pub.mirrors.aliyun.com/alpine/edge/testing/

    curl -v http://mirrors.aliyun.com/alpine/edge/testing/
    

    多了一个斜线就是正常的。。。

    当然,如果 apk add 后面地址改一下就能成的话,就没有必要创建这个 topic 了,他内部还有其他依赖,然后也都解析不了了。

    前段时间还好好的,改配置改炸了?

    imdong
        1
    imdong  
       2021-06-02 15:15:15 +08:00 via iPhone
    众所周知:PUA 公司的产品经常说没就突然没了。

    阿里云镜像源最近一段时间,打开好几次都在维护中,应该是真的凉了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5251 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 09:21 · PVG 17:21 · LAX 02:21 · JFK 05:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.