mirrorz-org / mirrorz-help

https://help.mirrorz.org
MIT License
57 stars 38 forks source link

bug: Alpine: Incorrect `sed` code to change apk mirror source, double `alpine` in url #100

Closed scbzfarmingtest closed 1 year ago

scbzfarmingtest commented 1 year ago

先决条件 (Prerequisites)

发生了什么(What happened)

$ sed -i 's#https\?://dl-cdn.alpinelinux.org#http://mirror.nju.edu.cn/alpine#g' /etc/apk/repositories
$ apk update
> fetch http://mirror.nju.edu.cn/alpine/alpine/v3.18/main/aarch64/APKINDEX.tar.gz  ##double alpine 
> ...  

期望的现象(What you expected to happen)

delete /alpine

sed -i 's#https\?://dl-cdn.alpinelinux.org#http://mirror.nju.edu.cn#g' /etc/apk/repositories

如何重现此问题(How to reproduce it)

omitted

操作系统(OS Version)

arm64-based docker alpine

浏览器(如果适用)(Browser version, if applicable)

omitted

其他环境(Other environments)

omitted

其他需要说明的事项(Anything else we need to know)

Alpine Mirror-z Help (NJU)