getodk / central

ODK Central is a server that is easy to use, very fast, and stuffed with features that make data collection easier. Contribute and make the world a better place! ✨🗄✨
https://docs.getodk.org/central-intro/
Apache License 2.0
125 stars 151 forks source link

docker-compose build fails on Ubuntu Docker 18.06.1~ce~3 on 18.04 #44

Closed yanokwa closed 5 years ago

yanokwa commented 5 years ago
root@test:~/central# docker-compose build
postgres uses an image, skipping
Building mail
Step 1/2 : FROM namshi/smtp
 ---> 524b2f546192
Step 2/2 : RUN apt-get update && apt-get dist-upgrade -y
 ---> Using cache
 ---> 4b374ea2d639
Successfully built 4b374ea2d639
Successfully tagged central_mail:latest
Building service
Step 1/11 : FROM node:carbon
 ---> 55b43107a63d
Step 2/11 : WORKDIR /usr/odk
 ---> Using cache
 ---> dd4ac806ee2f
Step 3/11 : RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main" > /etc/apt/sources.list.d/pgdg.list;   wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc |   apt-key add -;   apt-get update; apt-get install -y cron gettext postgresql-client-9.6
 ---> Running in 8462e003ed6c
Warning: apt-key output should not be parsed (stdout is not a terminal)
key 7FCC7D46ACCC4CF8:
2 signatures not checked due to missing keys
OK
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt jessie-pgdg InRelease [56.5 kB]
Ign:3 http://deb.debian.org/debian stretch InRelease
Get:4 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2434 B]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [467 kB]
Get:8 http://apt.postgresql.org/pub/repos/apt jessie-pgdg/main amd64 Packages [109 kB]
Get:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages [5152 B]
Get:10 http://deb.debian.org/debian stretch/main amd64 Packages [7089 kB]
Fetched 8034 kB in 2s (3030 kB/s)
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:
 postgresql-client-9.6 : Depends: libpq5 (>= 9.6.11) but 9.6.10-0+deb9u1 is to be installed
E: Unable to correct problems, you have held broken packages.
ERROR: Service 'service' failed to build: The command '/bin/sh -c echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main" > /etc/apt/sources.list.d/pgdg.list;   wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc |   apt-key add -;   apt-get update; apt-get install -y cron gettext postgresql-client-9.6' returned a non-zero code: 100
root@test:~/central# uname -a
Linux test 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@test:~/central#

Related?

issa-tseng commented 5 years ago

seems like some sort of weird configuration problem with the latest carbon base image.

when i pin the version to 8.11.3 it works perfectly. so i'm just going to do that for now because tbh these sorts of apt problems are far, far beyond me.