mysociety / mapit

A web service to map postcodes to administrative boundaries and more
Other
269 stars 88 forks source link

Install on trusty in Docker Hub fails #249

Closed MTRNord closed 8 years ago

MTRNord commented 8 years ago

Whatever I do the build always fails when trying to build in Docker Hub. Dockerfile is here: https://github.com/Nordgedanken/mapit-docker/blob/master/Dockerfile

Full Log:

Building in Docker Cloud's infrastructure...
Starting to clone
Cloning into '.'...
Cloning done
Starting Build
KernelVersion: 4.4.0-21-generic
Os: linux
BuildTime: 2016-07-28T22:11:10.070091404+00:00
ApiVersion: 1.24
Version: 1.12.0
GitCommit: 8eab29e
Arch: amd64
GoVersion: go1.6.3
Starting build of index.docker.io/nordgedanken/mapit-docker:latest...
Step 1 : FROM ubuntu:trusty
 ---> ff6011336327
Step 2 : MAINTAINER Matthew Landauer <matthew@oaf.org.au>
 ---> Running in bec9a698d377
 ---> 9c5e280c4c32
Removing intermediate container bec9a698d377
Step 3 : RUN apt-get update
 ---> Running in bb0ed0e963e9
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:3 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:4 http://archive.ubuntu.com trusty-updates/main Sources [471 kB]
Get:5 http://archive.ubuntu.com trusty-updates/restricted Sources [5247 B]
Get:6 http://archive.ubuntu.com trusty-updates/universe Sources [201 kB]
Get:7 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1105 kB]
Get:8 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [23.5 kB]
Get:9 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [474 kB]
Get:10 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:11 http://archive.ubuntu.com trusty-security/main Sources [150 kB]
Get:12 http://archive.ubuntu.com trusty-security/restricted Sources [3944 B]
Get:13 http://archive.ubuntu.com trusty-security/universe Sources [44.1 kB]
Get:14 http://archive.ubuntu.com trusty-security/main amd64 Packages [645 kB]
Get:15 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [20.2 kB]
Get:16 http://archive.ubuntu.com trusty-security/universe amd64 Packages [170 kB]
Get:17 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Get:18 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:19 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:20 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:21 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:22 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Fetched 22.1 MB in 5s (3698 kB/s)
Reading package lists...
 ---> 971e1560851c
Removing intermediate container bb0ed0e963e9
Step 4 : RUN apt-get upgrade -y
 ---> Running in cd70ecf029f5
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
  gnupg gpgv libgcrypt11
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1010 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgcrypt11 amd64 1.5.3-2ubuntu4.4 [238 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gpgv amd64 1.4.16-1ubuntu2.4 [161 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gnupg amd64 1.4.16-1ubuntu2.4 [611 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 1010 kB in 0s (1396 kB/s)
(Reading database ... 11558 files and directories currently installed.)
Preparing to unpack .../libgcrypt11_1.5.3-2ubuntu4.4_amd64.deb ...
Unpacking libgcrypt11:amd64 (1.5.3-2ubuntu4.4) over (1.5.3-2ubuntu4.3) ...
Preparing to unpack .../gpgv_1.4.16-1ubuntu2.4_amd64.deb ...
Unpacking gpgv (1.4.16-1ubuntu2.4) over (1.4.16-1ubuntu2.3) ...
Setting up gpgv (1.4.16-1ubuntu2.4) ...
(Reading database ... 11558 files and directories currently installed.)
Preparing to unpack .../gnupg_1.4.16-1ubuntu2.4_amd64.deb ...
Unpacking gnupg (1.4.16-1ubuntu2.4) over (1.4.16-1ubuntu2.3) ...
Setting up gnupg (1.4.16-1ubuntu2.4) ...
Setting up libgcrypt11:amd64 (1.5.3-2ubuntu4.4) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
 ---> 4a76bab47b70
Removing intermediate container cd70ecf029f5
Step 5 : RUN apt-get install -y language-pack-en software-properties-common wget
 ---> Running in 70978ad89713
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  ca-certificates gir1.2-glib-2.0 iso-codes krb5-locales language-pack-en-base
  libasn1-8-heimdal libcurl3-gnutls libdbus-glib-1-2 libgirepository-1.0-1
  libglib2.0-0 libglib2.0-data libgssapi-krb5-2 libgssapi3-heimdal
  libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
  libhx509-5-heimdal libidn11 libk5crypto3 libkeyutils1 libkrb5-26-heimdal
  libkrb5-3 libkrb5support0 libldap-2.4-2 libroken18-heimdal librtmp0
  libsasl2-2 libsasl2-modules libsasl2-modules-db libwind0-heimdal libxml2
  openssl python-apt-common python3-apt python3-dbus python3-gi python3-pycurl
  python3-software-properties sgml-base shared-mime-info unattended-upgrades
  xml-core xz-utils
Suggested packages:
  isoquery krb5-doc krb5-user libsasl2-modules-otp libsasl2-modules-ldap
  libsasl2-modules-sql libsasl2-modules-gssapi-mit
  libsasl2-modules-gssapi-heimdal python3-apt-dbg python-apt-doc
  python-dbus-doc python3-dbus-dbg libcurl4-gnutls-dev python3-pycurl-dbg
  sgml-base-doc bsd-mailx mail-transport-agent debhelper
The following NEW packages will be installed:
  ca-certificates gir1.2-glib-2.0 iso-codes krb5-locales language-pack-en
  language-pack-en-base libasn1-8-heimdal libcurl3-gnutls libdbus-glib-1-2
  libgirepository-1.0-1 libglib2.0-0 libglib2.0-data libgssapi-krb5-2
  libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhx509-5-heimdal libidn11 libk5crypto3 libkeyutils1
  libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
  libroken18-heimdal librtmp0 libsasl2-2 libsasl2-modules libsasl2-modules-db
  libwind0-heimdal libxml2 openssl python-apt-common python3-apt python3-dbus
  python3-gi python3-pycurl python3-software-properties sgml-base
  shared-mime-info software-properties-common unattended-upgrades wget
  xml-core xz-utils
0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded.
Need to get 8440 kB of archives.
After this operation, 47.1 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libroken18-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [40.0 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libasn1-8-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [161 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libkrb5support0 amd64 1.12+dfsg-2ubuntu5.2 [30.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libk5crypto3 amd64 1.12+dfsg-2ubuntu5.2 [79.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libkeyutils1 amd64 1.5.6-1 [7318 B]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libkrb5-3 amd64 1.12+dfsg-2ubuntu5.2 [262 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgssapi-krb5-2 amd64 1.12+dfsg-2ubuntu5.2 [114 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ trusty/main libidn11 amd64 1.28-1ubuntu2 [93.0 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libhcrypto4-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [83.9 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libheimbase1-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [28.9 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libwind0-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [47.8 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libhx509-5-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [104 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libkrb5-26-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [196 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libheimntlm0-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [15.2 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgssapi3-heimdal amd64 1.6~git20131207+dfsg-1ubuntu1.1 [89.8 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ trusty/main libsasl2-modules-db amd64 2.1.25.dfsg1-17build1 [14.9 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ trusty/main libsasl2-2 amd64 2.1.25.dfsg1-17build1 [56.5 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libldap-2.4-2 amd64 2.4.31-1+nmu2ubuntu8.3 [153 kB]
Get:19 http://archive.ubuntu.com/ubuntu/ trusty/main librtmp0 amd64 2.4+20121230.gitdf6c518-1 [57.5 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libcurl3-gnutls amd64 7.35.0-1ubuntu2.8 [165 kB]
Get:21 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libglib2.0-0 amd64 2.40.2-0ubuntu1 [1058 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ trusty/main libdbus-glib-1-2 amd64 0.100.2-1 [74.1 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libxml2 amd64 2.9.1+dfsg1-3ubuntu4.8 [573 kB]
Get:24 http://archive.ubuntu.com/ubuntu/ trusty/main sgml-base all 1.26+nmu4ubuntu1 [12.5 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ trusty-updates/main language-pack-en-base all 1:14.04+20160720 [484 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ trusty-updates/main language-pack-en all 1:14.04+20160720 [1820 B]
Get:27 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.19 [490 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]
Get:29 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgirepository-1.0-1 amd64 1.40.0-1ubuntu0.2 [85.6 kB]
Get:30 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gir1.2-glib-2.0 amd64 1.40.0-1ubuntu0.2 [124 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ trusty/main iso-codes all 3.52-1 [2073 kB]
Get:32 http://archive.ubuntu.com/ubuntu/ trusty-updates/main krb5-locales all 1.12+dfsg-2ubuntu5.2 [13.6 kB]
Get:33 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libglib2.0-data all 2.40.2-0ubuntu1 [116 kB]
Get:34 http://archive.ubuntu.com/ubuntu/ trusty/main libsasl2-modules amd64 2.1.25.dfsg1-17build1 [64.3 kB]
Get:35 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-apt-common all 0.9.3.5ubuntu2 [16.6 kB]
Get:36 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-apt amd64 0.9.3.5ubuntu2 [139 kB]
Get:37 http://archive.ubuntu.com/ubuntu/ trusty/main python3-dbus amd64 1.2.0-2build2 [82.1 kB]
Get:38 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-gi amd64 3.12.0-1ubuntu1 [154 kB]
Get:39 http://archive.ubuntu.com/ubuntu/ trusty/main shared-mime-info amd64 1.2-0ubuntu3 [415 kB]
Get:40 http://archive.ubuntu.com/ubuntu/ trusty-updates/main wget amd64 1.15-1ubuntu1.14.04.2 [271 kB]
Get:41 http://archive.ubuntu.com/ubuntu/ trusty/main xml-core all 0.13+nmu2 [23.3 kB]
Get:42 http://archive.ubuntu.com/ubuntu/ trusty/main python3-pycurl amd64 7.19.3-0ubuntu3 [47.5 kB]
Get:43 http://archive.ubuntu.com/ubuntu/ trusty/main xz-utils amd64 5.1.1alpha+20120614-2ubuntu2 [78.8 kB]
Get:44 http://archive.ubuntu.com/ubuntu/ trusty-updates/main unattended-upgrades all 0.82.1ubuntu2.4 [25.9 kB]
Get:45 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.7 [19.1 kB]
Get:46 http://archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37.7 [9356 B]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 8440 kB in 4s (1897 kB/s)
Selecting previously unselected package libroken18-heimdal:amd64.
(Reading database ... 11558 files and directories currently installed.)
Preparing to unpack .../libroken18-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../libasn1-8-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.12+dfsg-2ubuntu5.2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.12+dfsg-2ubuntu5.2) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.12+dfsg-2ubuntu5.2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.12+dfsg-2ubuntu5.2) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.6-1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.6-1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.12+dfsg-2ubuntu5.2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.12+dfsg-2ubuntu5.2) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.12+dfsg-2ubuntu5.2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.12+dfsg-2ubuntu5.2) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../libidn11_1.28-1ubuntu2_amd64.deb ...
Unpacking libidn11:amd64 (1.28-1ubuntu2) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../libhcrypto4-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../libheimbase1-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../libwind0-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../libhx509-5-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../libkrb5-26-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../libheimntlm0-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../libgssapi3-heimdal_1.6~git20131207+dfsg-1ubuntu1.1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../libsasl2-modules-db_2.1.25.dfsg1-17build1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.25.dfsg1-17build1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../libsasl2-2_2.1.25.dfsg1-17build1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.25.dfsg1-17build1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../libldap-2.4-2_2.4.31-1+nmu2ubuntu8.3_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.31-1+nmu2ubuntu8.3) ...
Selecting previously unselected package librtmp0:amd64.
Preparing to unpack .../librtmp0_2.4+20121230.gitdf6c518-1_amd64.deb ...
Unpacking librtmp0:amd64 (2.4+20121230.gitdf6c518-1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../libcurl3-gnutls_7.35.0-1ubuntu2.8_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.35.0-1ubuntu2.8) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../libglib2.0-0_2.40.2-0ubuntu1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
Selecting previously unselected package libdbus-glib-1-2:amd64.
Preparing to unpack .../libdbus-glib-1-2_0.100.2-1_amd64.deb ...
Unpacking libdbus-glib-1-2:amd64 (0.100.2-1) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../libxml2_2.9.1+dfsg1-3ubuntu4.8_amd64.deb ...
Unpacking libxml2:amd64 (2.9.1+dfsg1-3ubuntu4.8) ...
Selecting previously unselected package sgml-base.
Preparing to unpack .../sgml-base_1.26+nmu4ubuntu1_all.deb ...
Unpacking sgml-base (1.26+nmu4ubuntu1) ...
Selecting previously unselected package language-pack-en-base.
Preparing to unpack .../language-pack-en-base_1%3a14.04+20160720_all.deb ...
Unpacking language-pack-en-base (1:14.04+20160720) ...
Selecting previously unselected package language-pack-en.
Preparing to unpack .../language-pack-en_1%3a14.04+20160720_all.deb ...
Unpacking language-pack-en (1:14.04+20160720) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.1f-1ubuntu2.19_amd64.deb ...
Unpacking openssl (1.0.1f-1ubuntu2.19) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...
Unpacking ca-certificates (20160104ubuntu0.14.04.1) ...
Selecting previously unselected package libgirepository-1.0-1.
Preparing to unpack .../libgirepository-1.0-1_1.40.0-1ubuntu0.2_amd64.deb ...
Unpacking libgirepository-1.0-1 (1.40.0-1ubuntu0.2) ...
Selecting previously unselected package gir1.2-glib-2.0.
Preparing to unpack .../gir1.2-glib-2.0_1.40.0-1ubuntu0.2_amd64.deb ...
Unpacking gir1.2-glib-2.0 (1.40.0-1ubuntu0.2) ...
Selecting previously unselected package iso-codes.
Preparing to unpack .../iso-codes_3.52-1_all.deb ...
Unpacking iso-codes (3.52-1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../krb5-locales_1.12+dfsg-2ubuntu5.2_all.deb ...
Unpacking krb5-locales (1.12+dfsg-2ubuntu5.2) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../libglib2.0-data_2.40.2-0ubuntu1_all.deb ...
Unpacking libglib2.0-data (2.40.2-0ubuntu1) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../libsasl2-modules_2.1.25.dfsg1-17build1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.25.dfsg1-17build1) ...
Selecting previously unselected package python-apt-common.
Preparing to unpack .../python-apt-common_0.9.3.5ubuntu2_all.deb ...
Unpacking python-apt-common (0.9.3.5ubuntu2) ...
Selecting previously unselected package python3-apt.
Preparing to unpack .../python3-apt_0.9.3.5ubuntu2_amd64.deb ...
Unpacking python3-apt (0.9.3.5ubuntu2) ...
Selecting previously unselected package python3-dbus.
Preparing to unpack .../python3-dbus_1.2.0-2build2_amd64.deb ...
Unpacking python3-dbus (1.2.0-2build2) ...
Selecting previously unselected package python3-gi.
Preparing to unpack .../python3-gi_3.12.0-1ubuntu1_amd64.deb ...
Unpacking python3-gi (3.12.0-1ubuntu1) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../shared-mime-info_1.2-0ubuntu3_amd64.deb ...
Unpacking shared-mime-info (1.2-0ubuntu3) ...
Selecting previously unselected package wget.
Preparing to unpack .../wget_1.15-1ubuntu1.14.04.2_amd64.deb ...
Unpacking wget (1.15-1ubuntu1.14.04.2) ...
Selecting previously unselected package xml-core.
Preparing to unpack .../xml-core_0.13+nmu2_all.deb ...
Unpacking xml-core (0.13+nmu2) ...
Selecting previously unselected package python3-pycurl.
Preparing to unpack .../python3-pycurl_7.19.3-0ubuntu3_amd64.deb ...
Unpacking python3-pycurl (7.19.3-0ubuntu3) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../xz-utils_5.1.1alpha+20120614-2ubuntu2_amd64.deb ...
Unpacking xz-utils (5.1.1alpha+20120614-2ubuntu2) ...
Selecting previously unselected package unattended-upgrades.
Preparing to unpack .../unattended-upgrades_0.82.1ubuntu2.4_all.deb ...
Unpacking unattended-upgrades (0.82.1ubuntu2.4) ...
Selecting previously unselected package python3-software-properties.
Preparing to unpack .../python3-software-properties_0.92.37.7_all.deb ...
Unpacking python3-software-properties (0.92.37.7) ...
Selecting previously unselected package software-properties-common.
Preparing to unpack .../software-properties-common_0.92.37.7_all.deb ...
Unpacking software-properties-common (0.92.37.7) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libroken18-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libasn1-8-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libkrb5support0:amd64 (1.12+dfsg-2ubuntu5.2) ...
Setting up libk5crypto3:amd64 (1.12+dfsg-2ubuntu5.2) ...
Setting up libkeyutils1:amd64 (1.5.6-1) ...
Setting up libkrb5-3:amd64 (1.12+dfsg-2ubuntu5.2) ...
Setting up libgssapi-krb5-2:amd64 (1.12+dfsg-2ubuntu5.2) ...
Setting up libidn11:amd64 (1.28-1ubuntu2) ...
Setting up libhcrypto4-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libheimbase1-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libwind0-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libhx509-5-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libkrb5-26-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libheimntlm0-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libgssapi3-heimdal:amd64 (1.6~git20131207+dfsg-1ubuntu1.1) ...
Setting up libsasl2-modules-db:amd64 (2.1.25.dfsg1-17build1) ...
Setting up libsasl2-2:amd64 (2.1.25.dfsg1-17build1) ...
Setting up libldap-2.4-2:amd64 (2.4.31-1+nmu2ubuntu8.3) ...
Setting up librtmp0:amd64 (2.4+20121230.gitdf6c518-1) ...
Setting up libcurl3-gnutls:amd64 (7.35.0-1ubuntu2.8) ...
Setting up libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
No schema files found: doing nothing.
Setting up libdbus-glib-1-2:amd64 (0.100.2-1) ...
Setting up libxml2:amd64 (2.9.1+dfsg1-3ubuntu4.8) ...
Setting up sgml-base (1.26+nmu4ubuntu1) ...
Setting up openssl (1.0.1f-1ubuntu2.19) ...
Setting up ca-certificates (20160104ubuntu0.14.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Setting up libgirepository-1.0-1 (1.40.0-1ubuntu0.2) ...
Setting up gir1.2-glib-2.0 (1.40.0-1ubuntu0.2) ...
Setting up iso-codes (3.52-1) ...
Setting up krb5-locales (1.12+dfsg-2ubuntu5.2) ...
Setting up libglib2.0-data (2.40.2-0ubuntu1) ...
Setting up libsasl2-modules:amd64 (2.1.25.dfsg1-17build1) ...
Setting up python-apt-common (0.9.3.5ubuntu2) ...
Setting up python3-apt (0.9.3.5ubuntu2) ...
Setting up python3-dbus (1.2.0-2build2) ...
Setting up python3-gi (3.12.0-1ubuntu1) ...
Setting up shared-mime-info (1.2-0ubuntu3) ...
Setting up wget (1.15-1ubuntu1.14.04.2) ...
Setting up xml-core (0.13+nmu2) ...
Setting up python3-pycurl (7.19.3-0ubuntu3) ...
Setting up xz-utils (5.1.1alpha+20120614-2ubuntu2) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
Setting up unattended-upgrades (0.82.1ubuntu2.4) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Processing triggers for ureadahead (0.100.0-16) ...
Setting up python3-software-properties (0.92.37.7) ...
Setting up software-properties-common (0.92.37.7) ...
Setting up language-pack-en (1:14.04+20160720) ...
Setting up language-pack-en-base (1:14.04+20160720) ...
Generating locales...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
Generation complete.
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...
Updating certificates in /etc/ssl/certs... 173 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Processing triggers for sgml-base (1.26+nmu4ubuntu1) ...
 ---> 77ed5937851a
Removing intermediate container 70978ad89713
Step 6 : RUN apt-get install --reinstall ca-certificates
 ---> Running in e79ff62c0bdb
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 190 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main ca-certificates all 20160104ubuntu0.14.04.1 [190 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Fetched 190 kB in 0s (478 kB/s)
(Reading database ... 13582 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20160104ubuntu0.14.04.1_all.deb ...
Unpacking ca-certificates (20160104ubuntu0.14.04.1) over (20160104ubuntu0.14.04.1) ...
Setting up ca-certificates (20160104ubuntu0.14.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Processing triggers for ca-certificates (20160104ubuntu0.14.04.1) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
 ---> a36310f2c161
Removing intermediate container e79ff62c0bdb
Step 7 : ENV LANG en_GB.UTF-8
 ---> Running in befdc11384a2
 ---> 4973e6433d2d
Removing intermediate container befdc11384a2
Step 8 : ENV LC_ALL en_GB.UTF-8
 ---> Running in 67e1b68fd358
 ---> 4c0905bd8333
Removing intermediate container 67e1b68fd358
Step 9 : RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
 ---> Running in 0f668813afb8
OK
 ---> f36e009826cc
Removing intermediate container 0f668813afb8
Step 10 : RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list
 ---> Running in 7e4ff0419af6
 ---> 1c2f11f83932
Removing intermediate container 7e4ff0419af6
Step 11 : RUN apt-get update
 ---> Running in 60a7408de5e1
Ign http://archive.ubuntu.com trusty InRelease
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://archive.ubuntu.com trusty-updates/restricted Sources
Get:1 http://apt.postgresql.org trusty-pgdg InRelease [33.8 kB]
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty Release
Get:2 http://apt.postgresql.org trusty-pgdg/main amd64 Packages [98.4 kB]
Hit http://archive.ubuntu.com trusty-security/main Sources
Hit http://archive.ubuntu.com trusty-security/restricted Sources
Hit http://archive.ubuntu.com trusty-security/universe Sources
Hit http://archive.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Fetched 132 kB in 4s (27.5 kB/s)
Reading package lists...
 ---> 0bf84c110303
Removing intermediate container 60a7408de5e1
Step 12 : RUN apt-get install -y postgresql-9.4 postgresql-9.4-postgis-2.1
 ---> Running in c2723be7b1ee
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  fontconfig-config fonts-dejavu-core libarmadillo4 libarpack2 libblas3
  libdap11 libdapclient3 libedit2 libepsilon1 libfontconfig1 libfreetype6
  libfreexl1 libgdal1h libgeos-3.4.2 libgeos-c1 libgfortran3 libgif4
  libhdf4-0-alt libhdf5-7 libjasper1 libjbig0 libjpeg-turbo8 libjpeg8 libkml0
  liblapack3 liblcms2-2 libltdl7 liblwgeom-2.1.8 liblwgeom-2.2-5
  libmysqlclient18 libnetcdfc7 libodbc1 libogdi3.2 libpoppler44 libpq5
  libproj0 libquadmath0 libsensors4 libspatialite5 libtiff5 liburiparser1
  libwebp5 libxerces-c3.1 libxslt1.1 mysql-common odbcinst odbcinst1debian2
  pgdg-keyring postgresql-9.4-postgis-2.2 postgresql-9.4-postgis-2.2-scripts
  postgresql-9.4-postgis-scripts postgresql-client-9.4
  postgresql-client-common postgresql-common postgresql-contrib-9.4 proj-bin
  proj-data ssl-cert sysstat
Suggested packages:
  libhdf4-doc libhdf4-alt-dev hdf4-tools libnetcdf4 libjasper-runtime
  liblcms2-utils libmyodbc odbc-postgresql tdsodbc unixodbc-bin ogdi-bin
  poppler-data lm-sensors locales-all postgis postgresql-doc-9.4
  libdbd-pg-perl openssl-blacklist isag
The following NEW packages will be installed
  fontconfig-config fonts-dejavu-core libarmadillo4 libarpack2 libblas3
  libdap11 libdapclient3 libedit2 libepsilon1 libfontconfig1 libfreetype6
  libfreexl1 libgdal1h libgeos-3.4.2 libgeos-c1 libgfortran3 libgif4
  libhdf4-0-alt libhdf5-7 libjasper1 libjbig0 libjpeg-turbo8 libjpeg8 libkml0
  liblapack3 liblcms2-2 libltdl7 liblwgeom-2.1.8 liblwgeom-2.2-5
  libmysqlclient18 libnetcdfc7 libodbc1 libogdi3.2 libpoppler44 libpq5
  libproj0 libquadmath0 libsensors4 libspatialite5 libtiff5 liburiparser1
  libwebp5 libxerces-c3.1 libxslt1.1 mysql-common odbcinst odbcinst1debian2
  pgdg-keyring postgresql-9.4 postgresql-9.4-postgis-2.1
  postgresql-9.4-postgis-2.2 postgresql-9.4-postgis-2.2-scripts
  postgresql-9.4-postgis-scripts postgresql-client-9.4
  postgresql-client-common postgresql-common postgresql-contrib-9.4 proj-bin
  proj-data ssl-cert sysstat
0 to upgrade, 61 to newly install, 0 to remove and 0 not to upgrade.
Need to get 27.5 MB of archives.
After this operation, 113 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main libedit2 amd64 3.1-20130712-2 [86.7 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main libpq5 amd64 9.5.4-1.pgdg14.04+1 [127 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/universe libdap11 amd64 3.12.0-1 [347 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/universe libdapclient3 amd64 3.12.0-1 [94.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/universe libepsilon1 amd64 0.9.2-2 [40.3 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main fonts-dejavu-core all 2.34-1ubuntu1 [1,024 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/main fontconfig-config all 2.11.0-0ubuntu4.2 [47.4 kB]
Get:8 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main liblwgeom-2.1.8 amd64 2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1 [508 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libfreetype6 amd64 2.5.2-1ubuntu2.5 [304 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libfontconfig1 amd64 2.11.0-0ubuntu4.2 [123 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libquadmath0 amd64 4.8.4-2ubuntu1~14.04.3 [126 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgfortran3 amd64 4.8.4-2ubuntu1~14.04.3 [248 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ trusty/main libgif4 amd64 4.1.6-11 [28.6 kB]
Get:14 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main liblwgeom-2.2-5 amd64 2.2.2+dfsg-4.pgdg14.04+1 [640 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ trusty/universe libhdf5-7 amd64 1.8.11-5ubuntu7 [1,205 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ trusty/main libjpeg-turbo8 amd64 1.3.0-0ubuntu2 [104 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ trusty/main libjpeg8 amd64 8c-2ubuntu8 [2,194 B]
Get:18 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main pgdg-keyring all 2014.1 [5,898 B]
Get:19 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libjasper1 amd64 1.900.1-14ubuntu3.3 [130 kB]
Get:20 http://archive.ubuntu.com/ubuntu/ trusty-updates/main liblcms2-2 amd64 2.5-0ubuntu4.1 [131 kB]
Get:21 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-client-common all 175.pgdg14.04+1 [77.4 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ trusty/main libltdl7 amd64 2.4.2-1.7ubuntu1 [35.0 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ trusty-updates/main mysql-common all 5.5.50-0ubuntu0.14.04.1 [12.9 kB]
Get:24 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-client-9.4 amd64 9.4.9-1.pgdg14.04+1 [1,078 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libmysqlclient18 amd64 5.5.50-0ubuntu0.14.04.1 [595 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ trusty/main libodbc1 amd64 2.2.14p2-5ubuntu5 [175 kB]
Get:27 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libjbig0 amd64 2.0-2ubuntu4.1 [26.1 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libtiff5 amd64 4.0.3-7ubuntu0.4 [143 kB]
Get:29 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-common all 175.pgdg14.04+1 [212 kB]
Get:30 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libpoppler44 amd64 0.24.5-2ubuntu4.4 [702 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ trusty/main libsensors4 amd64 1:3.3.4-2ubuntu1 [27.2 kB]
Get:32 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-9.4 amd64 9.4.9-1.pgdg14.04+1 [3,666 kB]
Get:33 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe libfreexl1 amd64 1.0.0g-1ubuntu0.14.04.2 [26.8 kB]
Get:34 http://archive.ubuntu.com/ubuntu/ trusty/universe libgeos-3.4.2 amd64 3.4.2-4ubuntu1 [411 kB]
Get:35 http://archive.ubuntu.com/ubuntu/ trusty/universe libgeos-c1 amd64 3.4.2-4ubuntu1 [42.6 kB]
Get:36 http://archive.ubuntu.com/ubuntu/ trusty/universe proj-data amd64 4.8.0-2ubuntu2 [2,071 kB]
Get:37 http://archive.ubuntu.com/ubuntu/ trusty/universe libproj0 amd64 4.8.0-2ubuntu2 [118 kB]
Get:38 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-9.4-postgis-2.2-scripts all 2.2.2+dfsg-4.pgdg14.04+1 [1,061 kB]
Get:39 http://archive.ubuntu.com/ubuntu/ trusty/universe libspatialite5 amd64 4.1.1-5ubuntu1 [850 kB]
Get:40 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe libxerces-c3.1 amd64 3.1.1-5.1+deb8u3build0.14.04.1 [813 kB]
Get:41 http://archive.ubuntu.com/ubuntu/ trusty/main libxslt1.1 amd64 1.1.28-2build1 [145 kB]
Get:42 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-9.4-postgis-scripts all 2.2.2+dfsg-4.pgdg14.04+1 [454 kB]
Get:43 http://archive.ubuntu.com/ubuntu/ trusty/main odbcinst amd64 2.2.14p2-5ubuntu5 [12.6 kB]
Get:44 http://archive.ubuntu.com/ubuntu/ trusty/main odbcinst1debian2 amd64 2.2.14p2-5ubuntu5 [40.6 kB]
Get:45 http://archive.ubuntu.com/ubuntu/ trusty/main libwebp5 amd64 0.4.0-4 [146 kB]
Get:46 http://archive.ubuntu.com/ubuntu/ trusty/main libblas3 amd64 1.2.20110419-7 [215 kB]
Get:47 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-9.4-postgis-2.1 amd64 2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1 [600 kB]
Get:48 http://archive.ubuntu.com/ubuntu/ trusty/main liblapack3 amd64 3.5.0-2ubuntu1 [1,730 kB]
Get:49 http://archive.ubuntu.com/ubuntu/ trusty/universe libarpack2 amd64 3.1.5-2 [90.7 kB]
Get:50 http://archive.ubuntu.com/ubuntu/ trusty/universe libarmadillo4 amd64 1:4.200.0+dfsg-1 [66.4 kB]
Get:51 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-9.4-postgis-2.2 amd64 2.2.2+dfsg-4.pgdg14.04+1 [968 kB]
Get:52 http://archive.ubuntu.com/ubuntu/ trusty/universe libhdf4-0-alt amd64 4.2r10-0ubuntu1 [260 kB]
Get:53 http://archive.ubuntu.com/ubuntu/ trusty/universe liburiparser1 amd64 0.7.5-1ubuntu2 [34.0 kB]
Get:54 http://archive.ubuntu.com/ubuntu/ trusty/universe libkml0 amd64 1.3.0~r864-2 [311 kB]
Get:55 http://archive.ubuntu.com/ubuntu/ trusty/universe libnetcdfc7 amd64 1:4.1.3-7ubuntu2 [247 kB]
Get:56 http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg/main postgresql-contrib-9.4 amd64 9.4.9-1.pgdg14.04+1 [446 kB]
Get:57 http://archive.ubuntu.com/ubuntu/ trusty/universe libogdi3.2 amd64 3.2.0~beta2-7ubuntu1 [205 kB]
Get:58 http://archive.ubuntu.com/ubuntu/ trusty/universe libgdal1h amd64 1.10.1+dfsg-5ubuntu1 [3,699 kB]
Get:59 http://archive.ubuntu.com/ubuntu/ trusty/main ssl-cert all 1.0.33 [16.6 kB]
Get:60 http://archive.ubuntu.com/ubuntu/ trusty/main sysstat amd64 10.2.0-1 [283 kB]
Get:61 http://archive.ubuntu.com/ubuntu/ trusty/universe proj-bin amd64 4.8.0-2ubuntu2 [31.3 kB]
debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: Unable to re-open stdin: 
Fetched 27.5 MB in 5s (5,391 kB/s)
Selecting previously unselected package libedit2:amd64.
(Reading database ... 13582 files and directories currently installed.)
Preparing to unpack .../libedit2_3.1-20130712-2_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20130712-2) ...
Selecting previously unselected package libdap11:amd64.
Preparing to unpack .../libdap11_3.12.0-1_amd64.deb ...
Unpacking libdap11:amd64 (3.12.0-1) ...
Selecting previously unselected package libdapclient3:amd64.
Preparing to unpack .../libdapclient3_3.12.0-1_amd64.deb ...
Unpacking libdapclient3:amd64 (3.12.0-1) ...
Selecting previously unselected package libepsilon1:amd64.
Preparing to unpack .../libepsilon1_0.9.2-2_amd64.deb ...
Unpacking libepsilon1:amd64 (0.9.2-2) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../fonts-dejavu-core_2.34-1ubuntu1_all.deb ...
Unpacking fonts-dejavu-core (2.34-1ubuntu1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../fontconfig-config_2.11.0-0ubuntu4.2_all.deb ...
Unpacking fontconfig-config (2.11.0-0ubuntu4.2) ...
Selecting previously unselected package libfreetype6:amd64.
Preparing to unpack .../libfreetype6_2.5.2-1ubuntu2.5_amd64.deb ...
Unpacking libfreetype6:amd64 (2.5.2-1ubuntu2.5) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../libfontconfig1_2.11.0-0ubuntu4.2_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.11.0-0ubuntu4.2) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libgfortran3:amd64.
Preparing to unpack .../libgfortran3_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgfortran3:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libgif4:amd64.
Preparing to unpack .../libgif4_4.1.6-11_amd64.deb ...
Unpacking libgif4:amd64 (4.1.6-11) ...
Selecting previously unselected package libhdf5-7:amd64.
Preparing to unpack .../libhdf5-7_1.8.11-5ubuntu7_amd64.deb ...
Unpacking libhdf5-7:amd64 (1.8.11-5ubuntu7) ...
Selecting previously unselected package libjpeg-turbo8:amd64.
Preparing to unpack .../libjpeg-turbo8_1.3.0-0ubuntu2_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (1.3.0-0ubuntu2) ...
Selecting previously unselected package libjpeg8:amd64.
Preparing to unpack .../libjpeg8_8c-2ubuntu8_amd64.deb ...
Unpacking libjpeg8:amd64 (8c-2ubuntu8) ...
Selecting previously unselected package libjasper1:amd64.
Preparing to unpack .../libjasper1_1.900.1-14ubuntu3.3_amd64.deb ...
Unpacking libjasper1:amd64 (1.900.1-14ubuntu3.3) ...
Selecting previously unselected package liblcms2-2:amd64.
Preparing to unpack .../liblcms2-2_2.5-0ubuntu4.1_amd64.deb ...
Unpacking liblcms2-2:amd64 (2.5-0ubuntu4.1) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../libltdl7_2.4.2-1.7ubuntu1_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.2-1.7ubuntu1) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../mysql-common_5.5.50-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-common (5.5.50-0ubuntu0.14.04.1) ...
Selecting previously unselected package libmysqlclient18:amd64.
Preparing to unpack .../libmysqlclient18_5.5.50-0ubuntu0.14.04.1_amd64.deb ...
Unpacking libmysqlclient18:amd64 (5.5.50-0ubuntu0.14.04.1) ...
Selecting previously unselected package libodbc1:amd64.
Preparing to unpack .../libodbc1_2.2.14p2-5ubuntu5_amd64.deb ...
Unpacking libodbc1:amd64 (2.2.14p2-5ubuntu5) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../libjbig0_2.0-2ubuntu4.1_amd64.deb ...
Unpacking libjbig0:amd64 (2.0-2ubuntu4.1) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../libtiff5_4.0.3-7ubuntu0.4_amd64.deb ...
Unpacking libtiff5:amd64 (4.0.3-7ubuntu0.4) ...
Selecting previously unselected package libpoppler44:amd64.
Preparing to unpack .../libpoppler44_0.24.5-2ubuntu4.4_amd64.deb ...
Unpacking libpoppler44:amd64 (0.24.5-2ubuntu4.4) ...
Selecting previously unselected package libpq5:amd64.
Preparing to unpack .../libpq5_9.5.4-1.pgdg14.04+1_amd64.deb ...
Unpacking libpq5:amd64 (9.5.4-1.pgdg14.04+1) ...
Selecting previously unselected package libsensors4:amd64.
Preparing to unpack .../libsensors4_1%3a3.3.4-2ubuntu1_amd64.deb ...
Unpacking libsensors4:amd64 (1:3.3.4-2ubuntu1) ...
Selecting previously unselected package libfreexl1:amd64.
Preparing to unpack .../libfreexl1_1.0.0g-1ubuntu0.14.04.2_amd64.deb ...
Unpacking libfreexl1:amd64 (1.0.0g-1ubuntu0.14.04.2) ...
Selecting previously unselected package libgeos-3.4.2.
Preparing to unpack .../libgeos-3.4.2_3.4.2-4ubuntu1_amd64.deb ...
Unpacking libgeos-3.4.2 (3.4.2-4ubuntu1) ...
Selecting previously unselected package libgeos-c1.
Preparing to unpack .../libgeos-c1_3.4.2-4ubuntu1_amd64.deb ...
Unpacking libgeos-c1 (3.4.2-4ubuntu1) ...
Selecting previously unselected package proj-data.
Preparing to unpack .../proj-data_4.8.0-2ubuntu2_amd64.deb ...
Unpacking proj-data (4.8.0-2ubuntu2) ...
Selecting previously unselected package libproj0.
Preparing to unpack .../libproj0_4.8.0-2ubuntu2_amd64.deb ...
Unpacking libproj0 (4.8.0-2ubuntu2) ...
Selecting previously unselected package libspatialite5:amd64.
Preparing to unpack .../libspatialite5_4.1.1-5ubuntu1_amd64.deb ...
Unpacking libspatialite5:amd64 (4.1.1-5ubuntu1) ...
Selecting previously unselected package libxerces-c3.1:amd64.
Preparing to unpack .../libxerces-c3.1_3.1.1-5.1+deb8u3build0.14.04.1_amd64.deb ...
Unpacking libxerces-c3.1:amd64 (3.1.1-5.1+deb8u3build0.14.04.1) ...
Selecting previously unselected package libxslt1.1:amd64.
Preparing to unpack .../libxslt1.1_1.1.28-2build1_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.28-2build1) ...
Selecting previously unselected package odbcinst.
Preparing to unpack .../odbcinst_2.2.14p2-5ubuntu5_amd64.deb ...
Unpacking odbcinst (2.2.14p2-5ubuntu5) ...
Selecting previously unselected package odbcinst1debian2:amd64.
Preparing to unpack .../odbcinst1debian2_2.2.14p2-5ubuntu5_amd64.deb ...
Unpacking odbcinst1debian2:amd64 (2.2.14p2-5ubuntu5) ...
Selecting previously unselected package libwebp5:amd64.
Preparing to unpack .../libwebp5_0.4.0-4_amd64.deb ...
Unpacking libwebp5:amd64 (0.4.0-4) ...
Selecting previously unselected package libblas3.
Preparing to unpack .../libblas3_1.2.20110419-7_amd64.deb ...
Unpacking libblas3 (1.2.20110419-7) ...
Selecting previously unselected package liblapack3.
Preparing to unpack .../liblapack3_3.5.0-2ubuntu1_amd64.deb ...
Unpacking liblapack3 (3.5.0-2ubuntu1) ...
Selecting previously unselected package libarpack2.
Preparing to unpack .../libarpack2_3.1.5-2_amd64.deb ...
Unpacking libarpack2 (3.1.5-2) ...
Selecting previously unselected package libarmadillo4.
Preparing to unpack .../libarmadillo4_1%3a4.200.0+dfsg-1_amd64.deb ...
Unpacking libarmadillo4 (1:4.200.0+dfsg-1) ...
Selecting previously unselected package libhdf4-0-alt.
Preparing to unpack .../libhdf4-0-alt_4.2r10-0ubuntu1_amd64.deb ...
Unpacking libhdf4-0-alt (4.2r10-0ubuntu1) ...
Selecting previously unselected package liburiparser1.
Preparing to unpack .../liburiparser1_0.7.5-1ubuntu2_amd64.deb ...
Unpacking liburiparser1 (0.7.5-1ubuntu2) ...
Selecting previously unselected package libkml0:amd64.
Preparing to unpack .../libkml0_1.3.0~r864-2_amd64.deb ...
Unpacking libkml0:amd64 (1.3.0~r864-2) ...
Selecting previously unselected package libnetcdfc7.
Preparing to unpack .../libnetcdfc7_1%3a4.1.3-7ubuntu2_amd64.deb ...
Unpacking libnetcdfc7 (1:4.1.3-7ubuntu2) ...
Selecting previously unselected package libogdi3.2.
Preparing to unpack .../libogdi3.2_3.2.0~beta2-7ubuntu1_amd64.deb ...
Unpacking libogdi3.2 (3.2.0~beta2-7ubuntu1) ...
Selecting previously unselected package libgdal1h.
Preparing to unpack .../libgdal1h_1.10.1+dfsg-5ubuntu1_amd64.deb ...
Unpacking libgdal1h (1.10.1+dfsg-5ubuntu1) ...
Selecting previously unselected package liblwgeom-2.1.8.
Preparing to unpack .../liblwgeom-2.1.8_2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1_amd64.deb ...
Unpacking liblwgeom-2.1.8 (2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1) ...
Selecting previously unselected package liblwgeom-2.2-5.
Preparing to unpack .../liblwgeom-2.2-5_2.2.2+dfsg-4.pgdg14.04+1_amd64.deb ...
Unpacking liblwgeom-2.2-5 (2.2.2+dfsg-4.pgdg14.04+1) ...
Selecting previously unselected package pgdg-keyring.
Preparing to unpack .../pgdg-keyring_2014.1_all.deb ...
Unpacking pgdg-keyring (2014.1) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../postgresql-client-common_175.pgdg14.04+1_all.deb ...
Unpacking postgresql-client-common (175.pgdg14.04+1) ...
Selecting previously unselected package postgresql-client-9.4.
Preparing to unpack .../postgresql-client-9.4_9.4.9-1.pgdg14.04+1_amd64.deb ...
Unpacking postgresql-client-9.4 (9.4.9-1.pgdg14.04+1) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../ssl-cert_1.0.33_all.deb ...
Unpacking ssl-cert (1.0.33) ...
Selecting previously unselected package postgresql-common.
Preparing to unpack .../postgresql-common_175.pgdg14.04+1_all.deb ...
Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'
Unpacking postgresql-common (175.pgdg14.04+1) ...
Selecting previously unselected package postgresql-9.4.
Preparing to unpack .../postgresql-9.4_9.4.9-1.pgdg14.04+1_amd64.deb ...
Unpacking postgresql-9.4 (9.4.9-1.pgdg14.04+1) ...
Selecting previously unselected package postgresql-9.4-postgis-2.2-scripts.
Preparing to unpack .../postgresql-9.4-postgis-2.2-scripts_2.2.2+dfsg-4.pgdg14.04+1_all.deb ...
Unpacking postgresql-9.4-postgis-2.2-scripts (2.2.2+dfsg-4.pgdg14.04+1) ...
Selecting previously unselected package postgresql-9.4-postgis-scripts.
Preparing to unpack .../postgresql-9.4-postgis-scripts_2.2.2+dfsg-4.pgdg14.04+1_all.deb ...
Unpacking postgresql-9.4-postgis-scripts (2.2.2+dfsg-4.pgdg14.04+1) ...
Selecting previously unselected package postgresql-9.4-postgis-2.1.
Preparing to unpack .../postgresql-9.4-postgis-2.1_2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1_amd64.deb ...
Unpacking postgresql-9.4-postgis-2.1 (2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1) ...
Selecting previously unselected package postgresql-9.4-postgis-2.2.
Preparing to unpack .../postgresql-9.4-postgis-2.2_2.2.2+dfsg-4.pgdg14.04+1_amd64.deb ...
Unpacking postgresql-9.4-postgis-2.2 (2.2.2+dfsg-4.pgdg14.04+1) ...
Selecting previously unselected package postgresql-contrib-9.4.
Preparing to unpack .../postgresql-contrib-9.4_9.4.9-1.pgdg14.04+1_amd64.deb ...
Unpacking postgresql-contrib-9.4 (9.4.9-1.pgdg14.04+1) ...
Selecting previously unselected package sysstat.
Preparing to unpack .../sysstat_10.2.0-1_amd64.deb ...
Unpacking sysstat (10.2.0-1) ...
Selecting previously unselected package proj-bin.
Preparing to unpack .../proj-bin_4.8.0-2ubuntu2_amd64.deb ...
Unpacking proj-bin (4.8.0-2ubuntu2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libedit2:amd64 (3.1-20130712-2) ...
Setting up libdap11:amd64 (3.12.0-1) ...
Setting up libdapclient3:amd64 (3.12.0-1) ...
Setting up libepsilon1:amd64 (0.9.2-2) ...
Setting up fonts-dejavu-core (2.34-1ubuntu1) ...
Setting up fontconfig-config (2.11.0-0ubuntu4.2) ...
Setting up libfreetype6:amd64 (2.5.2-1ubuntu2.5) ...
Setting up libfontconfig1:amd64 (2.11.0-0ubuntu4.2) ...
Setting up libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgfortran3:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgif4:amd64 (4.1.6-11) ...
Setting up libhdf5-7:amd64 (1.8.11-5ubuntu7) ...
Setting up libjpeg-turbo8:amd64 (1.3.0-0ubuntu2) ...
Setting up libjpeg8:amd64 (8c-2ubuntu8) ...
Setting up libjasper1:amd64 (1.900.1-14ubuntu3.3) ...
Setting up liblcms2-2:amd64 (2.5-0ubuntu4.1) ...
Setting up libltdl7:amd64 (2.4.2-1.7ubuntu1) ...
Setting up mysql-common (5.5.50-0ubuntu0.14.04.1) ...
Setting up libmysqlclient18:amd64 (5.5.50-0ubuntu0.14.04.1) ...
Setting up libodbc1:amd64 (2.2.14p2-5ubuntu5) ...
Setting up libjbig0:amd64 (2.0-2ubuntu4.1) ...
Setting up libtiff5:amd64 (4.0.3-7ubuntu0.4) ...
Setting up libpoppler44:amd64 (0.24.5-2ubuntu4.4) ...
Setting up libpq5:amd64 (9.5.4-1.pgdg14.04+1) ...
Setting up libsensors4:amd64 (1:3.3.4-2ubuntu1) ...
Setting up libfreexl1:amd64 (1.0.0g-1ubuntu0.14.04.2) ...
Setting up libgeos-3.4.2 (3.4.2-4ubuntu1) ...
Setting up libgeos-c1 (3.4.2-4ubuntu1) ...
Setting up proj-data (4.8.0-2ubuntu2) ...
Setting up libproj0 (4.8.0-2ubuntu2) ...
Setting up libspatialite5:amd64 (4.1.1-5ubuntu1) ...
Setting up libxerces-c3.1:amd64 (3.1.1-5.1+deb8u3build0.14.04.1) ...
Setting up libxslt1.1:amd64 (1.1.28-2build1) ...
Setting up libwebp5:amd64 (0.4.0-4) ...
Setting up libblas3 (1.2.20110419-7) ...
update-alternatives: using /usr/lib/libblas/libblas.so.3 to provide /usr/lib/libblas.so.3 (libblas.so.3) in auto mode
Setting up liblapack3 (3.5.0-2ubuntu1) ...
update-alternatives: using /usr/lib/lapack/liblapack.so.3 to provide /usr/lib/liblapack.so.3 (liblapack.so.3) in auto mode
Setting up libarpack2 (3.1.5-2) ...
Setting up libarmadillo4 (1:4.200.0+dfsg-1) ...
Setting up libhdf4-0-alt (4.2r10-0ubuntu1) ...
Setting up liburiparser1 (0.7.5-1ubuntu2) ...
Setting up libkml0:amd64 (1.3.0~r864-2) ...
Setting up libnetcdfc7 (1:4.1.3-7ubuntu2) ...
Setting up libogdi3.2 (3.2.0~beta2-7ubuntu1) ...
Setting up liblwgeom-2.1.8 (2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1) ...
Setting up liblwgeom-2.2-5 (2.2.2+dfsg-4.pgdg14.04+1) ...
Setting up pgdg-keyring (2014.1) ...
Removing apt.postgresql.org key from trusted.gpg: OK
Importing apt.postgresql.org key: OK
Setting up postgresql-client-common (175.pgdg14.04+1) ...
Setting up postgresql-client-9.4 (9.4.9-1.pgdg14.04+1) ...
update-alternatives: using /usr/share/postgresql/9.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up ssl-cert (1.0.33) ...
debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Setting up postgresql-common (175.pgdg14.04+1) ...
debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Adding user postgres to group ssl-cert

Creating config file /etc/postgresql-common/createcluster.conf with new version

Creating config file /etc/logrotate.d/postgresql-common with new version
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql-9.4-postgis-2.2-scripts (2.2.2+dfsg-4.pgdg14.04+1) ...
Setting up postgresql-9.4-postgis-scripts (2.2.2+dfsg-4.pgdg14.04+1) ...
Setting up sysstat (10.2.0-1) ...
debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype

Creating config file /etc/default/sysstat with new version
update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode
Setting up proj-bin (4.8.0-2ubuntu2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up postgresql-9.4 (9.4.9-1.pgdg14.04+1) ...
debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Creating new cluster 9.4/main ...
  config /etc/postgresql/9.4/main
  data   /var/lib/postgresql/9.4/main
  locale C
  socket /var/run/postgresql
  port   5432
update-alternatives: using /usr/share/postgresql/9.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql-contrib-9.4 (9.4.9-1.pgdg14.04+1) ...
Setting up odbcinst1debian2:amd64 (2.2.14p2-5ubuntu5) ...
Setting up libgdal1h (1.10.1+dfsg-5ubuntu1) ...
Setting up postgresql-9.4-postgis-2.1 (2.1.8+dfsg-5~97.git43a09cc.pgdg14.04+1) ...
Setting up postgresql-9.4-postgis-2.2 (2.2.2+dfsg-4.pgdg14.04+1) ...
Setting up odbcinst (2.2.14p2-5ubuntu5) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
 ---> 13a337ce9a0d
Removing intermediate container c2723be7b1ee
Step 13 : ADD https://raw.github.com/mysociety/commonlib/master/bin/install-site.sh /install-site.sh

 ---> 085512874bd3
Removing intermediate container a42293c0bbe4
Step 14 : RUN service postgresql start; /bin/bash /install-site.sh --default mapit mapit localhost
 ---> Running in adda932d4552
 * Starting PostgreSQL 9.4 database server
   ...done.
==== Installing mapit
Updating package lists... done
Installing some core packages...
  git... debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: Unable to re-open stdin: 
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match rsync Default-Stop values (none)
invoke-rc.d: policy-rc.d denied execution of restart.
done
  lockfile-progs... done
  curl... debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: Unable to re-open stdin: 
done
  dnsutils... debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: Unable to re-open stdin: 
done
  lsb-release... done
Testing for being on EC2... done
Testing localhost's IP address... done
Generating locales... 
Generating locale en_GB... already done
done
Adding unix user... done
Updating APT sources... done
Cloning or updating repository... cloning... Cloning into '/var/www/mapit/mapit'...
done
debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: Unable to re-open stdin: 
invoke-rc.d: policy-rc.d denied execution of start.
Installing nginx... debconf: Unable to initialise frontend: Dialog
debconf: (TERM is not set so the dialogue frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: Unable to initialise frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: Unable to re-open stdin: 
invoke-rc.d: policy-rc.d denied execution of start.
done
Installing packages from repository packages file... 

Extract templates from packages: 38%
Extract templates from packages: 76%
Extract templates from packages: 100%
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
invoke-rc.d: policy-rc.d denied execution of start.
Creating new cluster 9.5/main ...
  config /etc/postgresql/9.5/main
  data   /var/lib/postgresql/9.5/main
  locale en_GB.UTF-8
  socket /var/run/postgresql
  port   5433
update-alternatives: using /usr/share/postgresql/9.5/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
invoke-rc.d: policy-rc.d denied execution of start.
Creating new cluster 9.3/main ...
  config /etc/postgresql/9.3/main
  data   /var/lib/postgresql/9.3/main
  locale en_GB.UTF-8
  socket /var/run/postgresql
  port   5434
invoke-rc.d: policy-rc.d denied execution of start.
  done
PostGIS support should already be available.
Setting up default conf/general.yml file... done
Setting up database... CREATE EXTENSION
New python executable in ../virtualenv-mapit/bin/python
Installing setuptools, pip...done.
/tmp/tmpm13kvm/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
/tmp/tmpm13kvm/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Collecting pip
  Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
Installing collected packages: pip
  Found existing installation: pip 1.5.4
    Uninstalling pip-1.5.4:
      Successfully uninstalled pip-1.5.4
Successfully installed pip-8.1.2
/tmp/tmpm13kvm/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Collecting setuptools==18.5
/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading setuptools-18.5-py2.py3-none-any.whl (462kB)
Installing collected packages: setuptools
  Found existing installation: setuptools 2.2
    Uninstalling setuptools-2.2:
      Successfully uninstalled setuptools-2.2
Successfully installed setuptools-18.5
Collecting distribute==0.7.3
/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading distribute-0.7.3.zip (145kB)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.7 in /var/www/mapit/virtualenv-mapit/lib/python2.7/site-packages (from distribute==0.7.3)
Building wheels for collected packages: distribute
  Running setup.py bdist_wheel for distribute: started
  Running setup.py bdist_wheel for distribute: finished with status 'done'
  Stored in directory: /home/mapit/.cache/pip/wheels/ef/17/3f/3f837ef0521dcfb5da75a00488fef1ac1747d74edbddeb27e6
Successfully built distribute
Installing collected packages: distribute
Successfully installed distribute-0.7.3
Obtaining file:///var/www/mapit/mapit
Collecting Django>=1.8.5 (from django-mapit==1.4)
/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading Django-1.10-py2.py3-none-any.whl (6.8MB)
Collecting libsass (from django-mapit==1.4)
  Downloading libsass-0.11.1-cp27-cp27mu-manylinux1_x86_64.whl (7.1MB)
Requirement already satisfied (use --upgrade to upgrade): psycopg2 in /usr/lib/python2.7/dist-packages (from django-mapit==1.4)
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/lib/python2.7/dist-packages (from django-mapit==1.4)
Requirement already satisfied (use --upgrade to upgrade): Shapely in /usr/lib/python2.7/dist-packages (from django-mapit==1.4)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from libsass->django-mapit==1.4)
Installing collected packages: Django, libsass, django-mapit
  Running setup.py develop for django-mapit
Successfully installed Django-1.10 django-mapit libsass-0.11.1
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 341, in execute
    django.setup()
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/apps/config.py", line 199, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/var/www/mapit/mapit/mapit/models.py", line 423, in <module>
    class Postcode(models.Model):
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/models/base.py", line 309, in __new__
    new_class._prepare()
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/models/base.py", line 349, in _prepare
    if not opts.managers or cls._requires_legacy_default_manager():
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/models/options.py", line 374, in managers
    manager = copy.copy(manager)
  File "/usr/lib/python2.7/copy.py", line 88, in copy
    rv = reductor(2)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/models/query.py", line 208, in __getstate__
    self._fetch_all()
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/models/query.py", line 1085, in _fetch_all
    self._result_cache = list(self.iterator())
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/models/query.py", line 54, in __iter__
    results = compiler.execute_sql()
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 835, in execute_sql
    cursor.execute(sql, params)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/var/www/mapit/virtualenv-mapit/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "mapit_postcode" does not exist
LINE 1: ...ode"."postcode", "mapit_postcode"."location" FROM "mapit_pos...
                                                             ^

Removing intermediate container adda932d4552
The command '/bin/sh -c service postgresql start; /bin/bash /install-site.sh --default mapit mapit localhost' returned a non-zero code: 1`
dracos commented 8 years ago

The Dockerfile you link to doesn't appear to match the output you quote, but I think I've diagnosed the issue anyway – you are installing Django 1.10 in that run, and Django 1.10 support will be added when https://github.com/mysociety/mapit/pull/248 is merged, it currently errors as you have seen. The LTS 1.8 version should work fine, if you want to get up and running before that's merged (though I should merge it today hopefully).

If you're using Docker, I guess you might want the database and application to run in separate containers, but I might have misunderstood :)

dracos commented 8 years ago

This is now merged, so do try again and reopen if it still doesn't work. I'll do a new pypi release soon.

MTRNord commented 8 years ago

Sorry about the dockerfile i linked the master (which i was working on :/ ) next time i will link an commit xD but thanks for help anyway