Docker-alpine: apk add of libcurl and stunnel yields ERROR: unsatisfiable constraints

Created on 23 Mar 2016  路  3Comments  路  Source: gliderlabs/docker-alpine

dockerfile:

FROM alpine:3.3

RUN apk upgrade
RUN apk add --update \
    autoconf \
    bash \
    bison \
    build-base \
    bzip2 \
    curl \
    findutils \
    git \
    imagemagick \
    libbz2 \
    libcurl \
    libc6-compat \
    libevent \
    musl \
    openjdk7 \
    openjdk7-jre \
    openssh-client \
    openssh \
    postgresql-client \
    postgresql \
    python \
    python-dev \
    ruby \
    ruby-dev \
    socat \
    stunnel \
    syslinux \
    tar \
    zip
$ docker build -t alpine-test .
Sending build context to Docker daemon 8.224 MB
Step 1 : FROM alpine:3.3
 ---> 70c557e50ed6
Step 2 : RUN apk upgrade
 ---> Using cache
 ---> a60d09d244b5
Step 3 : RUN apk add --update     autoconf     bash     bison     build-base     bzip2     curl     findutils     git     imagemagick     libbz2     libcurl     libc6-compat     libevent     musl     openjdk7     openjdk7-jre     openssh-client     openssh     postgresql-client     postgresql     python     python-dev     ruby     ruby-dev     socat     stunnel     syslinux     tar     zip
 ---> Running in 910d02334906
fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.3/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  libcurl (missing):
    required by: world[libcurl]
  stunnel (missing):
    required by: world[stunnel]
The command '/bin/sh -c apk add --update     autoconf     bash     bison     build-base     bzip2     curl     findutils     git     imagemagick     libbz2     libcurl     libc6-compat     libevent     musl     openjdk7     openjdk7-jre     openssh-client     openssh     postgresql-client     postgresql     python     python-dev     ruby     ruby-dev     socat     stunnel     syslinux     tar     zip' returned a non-zero code: 2

I see the packages in the package list on alpinelinux.org.
https://pkgs.alpinelinux.org/package/main/x86_64/libcurl
https://pkgs.alpinelinux.org/package/testing/x86_64/stunnel

Halp! :smile:

question

Most helpful comment

Yeah @andyshinn hit me up on Slack. This ended up working for me

FROM alpine:3.3

RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
RUN apk update
RUN apk add --update \
    curl \
    stunnel
... snip ...

All 3 comments

That would be probably better to ask alpine guys. But you can use
apk search libcurl
which shows only curl, I don't know why you can't install only libcurl, but it seems little wierd that on
https://pkgs.alpinelinux.org/package/main/x86_64/curl
is libcurl noted as Dependency and also Subpackage

For stunnel, you can see it is avalaible in testing repository.

Yeah @andyshinn hit me up on Slack. This ended up working for me

FROM alpine:3.3

RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
RUN apk update
RUN apk add --update \
    curl \
    stunnel
... snip ...

Ping me in Slack is you need some more help with it. Definitely interested in what you were talking about earlier in regards to Alpine buildpacks and happy to help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dinogun picture dinogun  路  3Comments

crsrivats picture crsrivats  路  5Comments

IdanAdar picture IdanAdar  路  4Comments

mterzo picture mterzo  路  4Comments

robinmonjo picture robinmonjo  路  4Comments