setup-akprepos fails if proxy-variables are set
If proxy-variables are set, setup-apkrepos
fails to download any thing. You'll only see a message telling that the resource is temporarily unavailable. Looking deeper into it it seems that the proxy set is accessed, but not useful within the script.
# setup-apkrepos
wget: error getting response: Resource temporarily unavailable
wget: error getting response: Invalid argument
r) Add random from the above list
f) Detect and add fastest mirror from above list
e) Edit /etc/apk/repositories with text editor
Enter mirror number (1-0) or URL to add (or r/f/e/done) [1]
# export
export RSYNC_PROXY='<server>:3128'
export ftp_proxy='http://<server>:3128'
export gopher_proxy='http://<server>:3128'
export http_proxy='http://<server>:3128'
export https_proxy='http://<server>:3128'
export no_proxy='localhost,::,127.0.0.1'
export rsync_proxy='http://<server>:3128'
Downloading from shell:
# wget -qO- https://mirrors.alpinelinux.org/MIRRORS.txt
http://dl-cdn.alpinelinux.org/alpine/
http://uk.alpinelinux.org/alpine/
http://dl-2.alpinelinux.org/alpine/
http://dl-4.alpinelinux.org/alpine/
[http://dl-5.alpinelinux.org/alpine/
http://mirror.yandex.ru/mirrors/alpine/
http://mirrors.gigenet.com/alpinelinux/
http://mirror1.hs-esslingen.de/pub/Mirrors/alpine/
http://mirror.leaseweb.com/alpine/
[...]
But for it to function you'll have to change mirrors.txt
to MIRRORS.txt
.