Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

=> ERROR [openvpn 2/5] RUN apk add --update bash openvpn easy-rsa iptables && ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && wget https://gi 10.3s #262

Open
w1sleycode opened this issue Jan 4, 2024 · 3 comments

Comments

@w1sleycode
Copy link

[+] Building 10.4s (6/9) docker:default
=> [openvpn internal] load build definition from Dockerfile.openvpn 0.0s
=> => transferring dockerfile: 637B 0.0s
=> [openvpn internal] load .dockerignore 0.0s
=> => transferring context: 329B 0.0s
=> [openvpn internal] load metadata for docker.io/library/alpine:3.16 0.0s
=> CACHED [openvpn 1/5] FROM docker.io/library/alpine:3.16 0.0s
=> [openvpn internal] load build context 0.0s
=> => transferring context: 136B 0.0s
=> ERROR [openvpn 2/5] RUN apk add --update bash openvpn easy-rsa iptables && ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && wget https://gi 10.3s

[openvpn 2/5] RUN apk add --update bash openvpn easy-rsa iptables && ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-amd64.tar.gz -O - | tar xz -C /usr/local/bin && rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*:
0.277 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
5.281 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.16/main: temporary error (try again later)
5.281 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/main: No such file or directory
5.281 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
10.29 ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.16/community: temporary error (try again later)
10.29 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/community: No such file or directory
10.29 ERROR: unable to select packages:
10.29 bash (no such package):
10.29 required by: world[bash]
10.29 easy-rsa (no such package):
10.29 required by: world[easy-rsa]
10.29 iptables (no such package):
10.29 required by: world[iptables]
10.29 openvpn (no such package):
10.29 required by: world[openvpn]


failed to solve: process "/bin/sh -c apk add --update bash openvpn easy-rsa iptables && ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-${TARGETARCH}.tar.gz -O - | tar xz -C /usr/local/bin && rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*" did not complete successfully: exit code: 4

@pashcovich
Copy link
Contributor

is this problem still reproducing?

@m0x61h0x64i
Copy link

yes, still reproducing

my error:

 => ERROR [openvpn 2/5] RUN apk add --update bash openvpn easy-rsa iptables  &&     ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin &&     wget https://github.c  1.3s
------                                                                                                                                                                  
 > [openvpn 2/5] RUN apk add --update bash openvpn easy-rsa iptables  &&     ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin &&     wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-amd64.tar.gz -O - | tar xz -C /usr/local/bin &&     rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*:                                                                                                                                                                  
0.697 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz                                                                                     
0.704 ERROR: fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
0.705 https://dl-cdn.alpinelinux.org/alpine/v3.16/main: network error (check Internet connection and firewall)
0.705 WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/main: No such file or directory
1.111 ERROR: unable to select packages:
1.164   bash (no such package):
1.164     required by: world[bash]
1.164   iptables (no such package):
1.164     required by: world[iptables]
1.164   openvpn (no such package):
1.164     required by: world[openvpn]
1.164   openssl (no such package):
1.164     required by: easy-rsa-3.0.8-r0[openssl]
------
failed to solve: process "/bin/sh -c apk add --update bash openvpn easy-rsa iptables  &&     ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin &&     wget https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-${TARGETARCH}.tar.gz -O - | tar xz -C /usr/local/bin &&     rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*" did not complete successfully: exit code: 5

@Alizamani2731
Copy link

Hi set this variable ${TARGETARCH} manualy into dockerfiles. for example:
https://github.com/pashcovich/openvpn-user/releases/download/v1.0.4/openvpn-user-linux-amd64.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants