Skip to content

Legacy apt package postgresql-9.6-postgis-scripts causes docker image build failure #120

@nam20485

Description

@nam20485

See below output.

Removing postgresql-9.6-postgis-scripts package from docker image dependency install in DOCKERFILE.db.development resolves problem and allows docker image build to successfully complete.

$ bin/build.sh -d
Building db_development
Step 1/6 : FROM postgres:9.6
 ---> 564cc4c97fef
Step 2/6 : LABEL maintainer "M. Edward (Ed) Borasky <znmeb@znmeb.net>"
 ---> Using cache
 ---> f4c01d1afc7c
Step 3/6 : RUN apt-get update   && apt-get install -qqy --no-install-recommends     postgis     postgresql-9.6-postgis-2.4     postgresql-9.6-postgis-2.4-scripts     postgresql-9.6-postgis-scripts     postgresql-9.6-pgrouting   && apt-get clean
 ---> Running in b58c58e643d8
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2,434 B]
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [484 kB]
Get:7 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease [46.3 kB]
Get:8 http://deb.debian.org/debian stretch-updates/main amd64 Packages [11.1 kB]
Get:9 http://deb.debian.org/debian stretch/main amd64 Packages [7,084 kB]
Get:10 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages [168 kB]
Get:11 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/9.6 amd64 Packages [1,829 B]
Fetched 8,100 kB in 1s (4,139 kB/s)
Reading package lists...
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'db_development' failed to build: The command '/bin/sh -c apt-get update   && apt-get install -qqy --no-install-recommends     postgis     postgresql-9.6-postgis-2.4     postgresql-9.6-postgis-2.4-scripts     postgresql-9.6-postgis-scripts     postgresql-9.6-pgrouting   && apt-get clean' returned a non-zero code: 100

Metadata

Metadata

Assignees

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