Skip to content

Unsatisfiable constraints when installing postgresql-dev on ruby:2.4-alpine #110

Closed
@ChrisPatten

Description

@ChrisPatten

Attempting to add postgresql-dev via APK in order to use this image as a base for a Rails application yields an unsatisfiable constraints error around the versions of libcrypto, libssl, and openssl (1.0.2j vs. 2.4.4). It appears that this was introduced after ruby:2.3.1-alpine as that image doesn't give the same issue.

Steps to Reproduce

Create Dockerfile with:

FROM ruby:2.4-alpine

RUN apk add --update --no-cache postgresql-dev

CMD /bin/sh

When built:

Sending build context to Docker daemon 2.048 kB
Step 1 : FROM ruby:2.4-alpine
 ---> 4962d9cd701f
Step 2 : RUN apk add --update --no-cache postgresql-dev
 ---> Running in 73cb484470a3
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  openssl-dev-1.0.2j-r2:
    conflicts:
               libressl-dev-2.4.4-r0[pc:libcrypto=1.0.2j]
               libressl-dev-2.4.4-r0[pc:libssl=1.0.2j]
               libressl-dev-2.4.4-r0[pc:openssl=1.0.2j]
    satisfies: .ruby-rundeps-0[openssl-dev]
  libressl-dev-2.4.4-r0:
    conflicts:
               openssl-dev-1.0.2j-r2[pc:libcrypto=2.4.4]
               openssl-dev-1.0.2j-r2[pc:libssl=2.4.4]
               openssl-dev-1.0.2j-r2[pc:openssl=2.4.4]
    satisfies:
               postgresql-dev-9.6.1-r0[libressl-dev]
The command '/bin/sh -c apk add --update --no-cache postgresql-dev' returned a non-zero code: 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions