起因,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 了,他内部还有其他依赖,然后也都解析不了了。
前段时间还好好的,改配置改炸了?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.