apk add error: unsatisfiable constraints: (geos) missing
#1
Sat, 2017-08-26 16:59
coolcade283
-
- Offline
- 6 months 4 weeks ago
- 2017-08-26
Hi everyone, having some issues installing the geos package. I'm using alpine in docker, and trying to apk add --no-cache geos
, but it seems geos isn't in the package index, even though I can find it here: https://pkgs.alpinelinux.org/package/edge/testing/x86_64/geos
Here's the start of my dockerfile, the last line is where building fails:
FROM alpine:edge RUN cat /etc/apk/repositories # update alpine linux package manager RUN echo "ipv6" >> /etc/modules RUN apk update # basic flask environment RUN apk add --no-cache bash git nginx uwsgi uwsgi-python3 \ && pip3 install --upgrade pip \ && pip3 install flask # for psycopg2 RUN apk add --no-cache postgresql-dev gcc python3-dev musl-dev # for shapely RUN apk add --no-cache geos-dev
And here's the output I get while running that
Building test-db Step 1/17 : FROM alpine:edge ---> e020ea09df00 Step 2/17 : RUN cat /etc/apk/repositories ---> Running in d93c154cf8ec http://dl-cdn.alpinelinux.org/alpine/edge/main http://dl-cdn.alpinelinux.org/alpine/edge/community ---> 5d3d2001fbf6 Removing intermediate container d93c154cf8ec Step 3/17 : RUN echo "ipv6" >> /etc/modules ---> Running in 40392c4cf80e ---> 0b43123104ff Removing intermediate container 40392c4cf80e Step 4/17 : RUN apk update ---> Running in 5dc512bd2ab3 fetch <a href="http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz fetch" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz fetch</a> <a href="http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz v3.6.0-2841-g5fabc632fa" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz v3.6.0-2841-g5fabc632fa</a> [<a href="http://dl-cdn.alpinelinux.org/alpine/edge/main" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/edge/main</a>] v3.6.0-2839-g254a5b384e [<a href="http://dl-cdn.alpinelinux.org/alpine/edge/community" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/edge/community</a>] OK: 8718 distinct packages available ---> e363eca14c82 Removing intermediate container 5dc512bd2ab3 Step 5/17 : RUN apk add --no-cache geos-dev ---> Running in 7ca2f6337c40 fetch <a href="http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz fetch" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz fetch</a> <a href="http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz ERROR:" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz ERROR:</a> unsatisfiable constraints: geos-dev (missing): required by: world[geos-dev] ERROR: Service 'test-db' failed to build: The command '/bin/sh -c apk add --no-cache geos-dev' returned a non-zero code: 1
Bumping this if that's okay, still having this issue.
Can you confirm that the repositories in the /etc/apk/repositories file are uncommented? Also, I just pulled the alpine:edge image and cat the file:
You see here: https://pkgs.alpinelinux.org/package/edge/testing/x86/geos-dev
that the package is in the
testing
repo, try adding:http://mirror.leaseweb.com/alpine/edge/testing
to the repo list
like:
Let me know if this works for you! :)
That fixed it! Thank you so much Inkognitov!