merlinnot / nominatim-docker

Fully-featured container for geocoding, reverse geocoding and address lookup based on Nominatim and Open Street Map data.
MIT License
55 stars 35 forks source link

E: Package 'postgresql-9.6-postgis-scripts' has no installation candidate #22

Open sepgh opened 4 years ago

sepgh commented 4 years ago

I've ran the build script as mentioned in README, and I get this error:

E: Package 'postgresql-9.6-postgis-scripts' has no installation candidate

A little more details:

Step 17/68 : USER root
 ---> Using cache
 ---> 57e6ed1b9d37
Step 18/68 : RUN apt-get install -y --no-install-recommends       apache2       build-essential       ca-certificates       cmake       curl       g++       git       libapache2-mod-php       libboost-dev       libboost-filesystem-dev       libboost-python-dev       libboost-system-dev       libbz2-dev       libexpat1-dev       libgeos-dev       libgeos++-dev       libpq-dev       libproj-dev       libxml2-dev      openssl       osmosis       php       php-db       php-intl       php-pear       php-pgsql       postgresql-${PGSQL_VERSION}-postgis-${POSTGIS_VERSION}       postgresql-${PGSQL_VERSION}-postgis-scripts       postgresql-contrib-${PGSQL_VERSION}       postgresql-server-dev-${PGSQL_VERSION}       python       python-pip       python-setuptools       sudo       zlib1g-dev
 ---> Running in 3f7ab2d8c047
Reading package lists...
Building dependency tree...
Reading state information...
Package postgresql-9.6-postgis-scripts is a virtual package provided by:
  postgresql-9.6-postgis-3-scripts 3.0.0+dfsg-2~exp1.pgdg16.04+1
  postgresql-9.6-postgis-2.5-scripts 2.5.3+dfsg-2.pgdg16.04+1

E: Package 'postgresql-9.6-postgis-scripts' has no installation candidate
The command '/bin/sh -c apt-get install -y --no-install-recommends       apache2       build-essential       ca-certificates       cmake       curl       g++       git       libapache2-mod-php       libboost-dev       libboost-filesystem-dev       libboost-python-dev       libboost-system-dev       libbz2-dev       libexpat1-dev       libgeos-dev       libgeos++-dev       libpq-dev       libproj-dev       libxml2-dev      openssl       osmosis       php       php-db       php-intl       php-pear       php-pgsql       postgresql-${PGSQL_VERSION}-postgis-${POSTGIS_VERSION}       postgresql-${PGSQL_VERSION}-postgis-scripts       postgresql-contrib-${PGSQL_VERSION}       postgresql-server-dev-${PGSQL_VERSION}       python       python-pip       python-setuptools       sudo       zlib1g-dev' returned a non-zero code: 100
manchkin2020 commented 4 years ago

I have this problem too =(

bryanrideshark commented 4 years ago

Rolling back to baseimage-docker:0.10.2 fixes it.

The latest version of baseimage-docker runs Ubuntu 18 - This dockerfile was written to target Ubuntu 16

UntitleDude commented 4 years ago

Can't you just clone the repo and remove this package until a fix is provided ?

UntitleDude commented 4 years ago

FROM phusion/baseimage:0.10.2

Doesn't fix it for Postgres 9.6 with postgis 2.4, unfortunately, the package is still missing (is this this one ?)

However, I don't have the remove this package with Postgres 9.5 and Postgis 2.3, somehow