Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dig9I-0005Bm-HI for pgsql-admin@arkaria.postgresql.org; Fri, 18 Aug 2017 12:13:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dig9H-0003lA-88 for pgsql-admin@arkaria.postgresql.org; Fri, 18 Aug 2017 12:13:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dig7U-0000b6-L1 for pgsql-admin@postgresql.org; Fri, 18 Aug 2017 12:11:20 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dig7Q-0005ZE-Nd for pgsql-admin@postgresql.org; Fri, 18 Aug 2017 12:11:18 +0000 X-Originating-IP: 81.242.198.27 Received: from [172.16.2.116] (27.198-242-81.adsl-dyn.isp.belgacom.be [81.242.198.27]) (Authenticated sender: marco.mailbox@debooy.eu) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 732B2C5A73 for ; Fri, 18 Aug 2017 14:11:13 +0200 (CEST) To: pgsql-admin@postgresql.org From: Marco DE BOOIJ Subject: Problems when upgrading postgresql-contrib-9.6 Message-ID: Date: Fri, 18 Aug 2017 14:11:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Last week I tried to upgradpostgresql-contrib-9.6e my Debian server. There was a patch for postgresql-contrib-9.6. The upgrade failed because postgresql-9.6 was not configured. I searched the web and tried several solutions (apt-get remove, apt-get install postgres, use the --force option) but nothing helped. I do not want to do a purge because it is a production server. This there a way to update this version 9.6 or should I wait for version 9.7 or 10.0? Below is some information. root:~# dpkg-query -l | grep postgres ii pgdg-keyring 2017.1 iU postgresql 9.6+184.pgdg80+1 iF postgresql-9.6 9.6.4-1.pgdg80+1 ii postgresql-client-9.6 9.6.4-1.pgdg80+1 ii postgresql-client-common 184.pgdg80+1 ii postgresql-common 184.pgdg80+1 iU postgresql-contrib 9.6+184.pgdg80+1 iU postgresql-contrib-9.6 9.6.4-1.pgdg80+1 root:~# apt-get install postgresql postgresql-contrib Reading package lists... Done Building dependency tree Reading state information... Done postgresql is already the newest version. postgresql-contrib is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up postgresql-9.6 (9.6.4-1.pgdg80+1) ... dpkg: error processing package postgresql-9.6 (--configure): subprocess installed post-installation script returned error exit status 102 dpkg: dependency problems prevent configuration of postgresql: postgresql depends on postgresql-9.6; however: Package postgresql-9.6 is not configured yet. dpkg: error processing package postgresql (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of postgresql-contrib-9.6: postgresql-contrib-9.6 depends on postgresql-9.6 (= 9.6.4-1.pgdg80+1); however: Package postgresql-9.6 is not configured yet. dpkg: error processing package postgresql-contrib-9.6 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of postgresql-contrib: postgresql-contrib depends on postgresql-contrib-9.6; however: Package postgresql-contrib-9.6 is not configured yet. dpkg: error processing package postgresql-contrib (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: postgresql-9.6 postgresql postgresql-contrib-9.6 postgresql-contrib E: Sub-process /usr/bin/dpkg returned an error code (1) root:~# cat /etc/apt/sources.list.d/pgdg.list deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main root:~# systemctl | grep postgres srv-postgres.mount loaded active mounted /srv/postgres postgresql.service loaded active exited PostgreSQL RDBMS postgresql@9.6-main.service loaded active running PostgreSQL Cluster 9.6-main system-postgresql.slice loaded active active system-postgresql.slice root:~# -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin