Skip to content

E: Version '2.3.2+dfsg-1~exp2.pgdg80+1' for 'postgresql-9.6-postgis-2.3' was not found #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vladimirmyshkovski opened this issue Aug 7, 2017 · 6 comments

Comments

@vladimirmyshkovski
Copy link

vladimirmyshkovski commented Aug 7, 2017

Hey. When I try to use it with Django, I get such a mistake.

Previously, everything worked, but now this error:

E: Version '2.3.2+dfsg-1~exp2.pgdg80+1' for 'postgresql-9.6-postgis-2.3' was not found
E: Version '2.3.2+dfsg-1~exp2.pgdg80+1' for 'postgresql-9.6-postgis-2.3-scripts' was not found
E: Version '2.3.2+dfsg-1~exp2.pgdg80+1' for 'postgis' was not found

@cecemel
Copy link

cecemel commented Aug 10, 2017

It seems to work to change it to: POSTGIS_VERSION 2.3.3+dfsg-1.pgdg80+1

@md5
Copy link
Contributor

md5 commented Aug 10, 2017

@narnikgamarnikus I guess you were building your own version of the image? That shouldn't be necessary.

This error happens whenever a new PostGIS version is released, since the Postgres PGDG repo purges old packages. Running make update should fix things, but I'm pressed for time at the moment and can't do that right now. If someone wants to run make update and submit a PR, that would be great.

@tdamsma
Copy link

tdamsma commented Oct 13, 2017

@md5 done, see #63

@cactail
Copy link

cactail commented Nov 7, 2017

I changed POSTGIS_VERSION to 2.3.3+dfsg-1.pgdg80+1 but now I have only this error
E: Version '2.3.3+dfsg-1.pgdg80+1' for 'postgis' was not found

@md5
Copy link
Contributor

md5 commented Nov 10, 2017

@cactail That's addressed in #64 by removing the version constraint on the postgis package.

@md5 md5 closed this as completed Nov 10, 2017
@mhyousefi
Copy link

I'm doing the following:

FROM postgres:10
MAINTAINER Mike Dillon <[email protected]>
ENV POSTGIS_MAJOR 2.4
ENV POSTGIS_VERSION 2.3.3+dfsg-1.pgdg80+1
RUN apt-get update \
      && apt-get install -y --no-install-recommends \
           postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR=$POSTGIS_VERSION \
           postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts=$POSTGIS_VERSION \
           postgis=$POSTGIS_VERSION \
      && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /docker-entrypoint-initdb.d
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh
COPY ./update-postgis.sh /usr/local/bin

And I still get:

E: Version '2.3.3+dfsg-1.pgdg80+1' for 'postgresql-10-postgis-2.4' was not found
E: Version '2.3.3+dfsg-1.pgdg80+1' for 'postgresql-10-postgis-2.4-scripts' was not found
E: Version '2.3.3+dfsg-1.pgdg80+1' for 'postgis' was not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants