minus34 / gnaf-loader

A quick way to get started with Geoscape's open GNAF & Admin Boundaries
Apache License 2.0
185 stars 66 forks source link

docker-compose up failed dependencies #34

Closed sean-finocchiaro closed 5 years ago

sean-finocchiaro commented 6 years ago

Attempting to run the docker image and getting this issue:

Reading package lists... Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: postgis : Depends: libgdal1h (>= 1.9.0) but it is not installable Depends: libgeos-c1 (>= 3.4.2) but it is not installable Depends: liblwgeom-2.4-0 (>= 2.0.0) but it is not going to be installed postgresql-client-9.6 : Depends: libpq5 (>= 9.6.9) but 9.6.7-0+deb9u1 is to be installed E: Unable to correct problems, you have held broken packages. ERROR: Service 'loader' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends postgresql-client-9.6 postgis && apt-get autoremove -y --purge && apt-get clean && rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*' returned a non-zero code: 100

hampsterx commented 6 years ago
FROM python:3.6-jessie

seems "python:3.6" is using stretch but the lines below are for jessie.

akapei commented 6 years ago

@hampsterx Thanks! That worked for me.

hughcameron commented 5 years ago

@hampsterx - your comment helped me out as well - thanks!

So https://github.com/minus34/gnaf-loader/blob/master/Dockerfile#L1 should be: FROM python:3.6-jessie instead of: FROM python:3.6

minus34 commented 5 years ago

Issue fixed in latest commit