Stanback / alpine-strongswan-vpn

Dockerfile and related configuration for setting up a roadwarrior IKEv2-based VPN
98 stars 49 forks source link

Fix unsatisfiable constraints libressl-dev and openssl-dev; #3

Closed f100024 closed 1 year ago

f100024 commented 6 years ago

To prevent conflicts:

ERROR: unsatisfiable constraints: libressl-dev-2.7.4-r0: conflicts: openssl-dev-1.0.2o-r1[pc:libcrypto=2.7.4] openssl-dev-1.0.2o-r1[pc:libssl=2.7.4] openssl-dev-1.0.2o-r1[pc:openssl=2.7.4] satisfies: curl-dev-7.60.0-r1[libressl-dev] libssh2-dev-1.8.0-r3[pc:libcrypto] libssh2-dev-1.8.0-r3[pc:libssl] openssl-dev-1.0.2o-r1: conflicts: libressl-dev-2.7.4-r0[pc:libcrypto=1.0.2o] libressl-dev-2.7.4-r0[pc:libssl=1.0.2o] libressl-dev-2.7.4-r0[pc:openssl=1.0.2o] satisfies: world[openssl-dev] libssh2-dev-1.8.0-r3[pc:libcrypto] libssh2-dev-1.8.0-r3[pc:libssl]

rc452860 commented 6 years ago

I have same issuse,I change FROM alpine:latest but not worked

f100024 commented 6 years ago

I've just rechecked. But seems it works. Did you reproduced same issue? Could you try to clean your old layers?

rc452860 commented 6 years ago

I use a clean new system test.it may be alpine package manage system issue.

rc452860 commented 6 years ago

finally I use libressl and libressl-dev to replace openssl and openssl-dev to work.

cwalv commented 6 years ago

finally I use libressl and libressl-dev to replace openssl and openssl-dev to work.

That fixed it for me too:

diff --git a/Dockerfile b/Dockerfile
index 4153b43..8424f50 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,8 +13,8 @@ RUN apk --update add build-base \
             ip6tables \
             iproute2 \
             iptables-dev \
-            openssl \
-            openssl-dev && \
+            libressl \
+            libressl-dev && \
     mkdir -p /tmp/strongswan && \
     curl -Lo /tmp/strongswan.tar.bz2 $STRONGSWAN_RELEASE && \
     tar --strip-components=1 -C /tmp/strongswan -xjf /tmp/strongswan.tar.bz2 && \