Re: Problems with apt.postgresql.org and precise

From: Christoph Berg <myon(at)debian(dot)org>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: PostgreSQL in Debian <pgsql-pkg-debian(at)postgresql(dot)org>
Subject: Re: Problems with apt.postgresql.org and precise
Date: 2013-05-08 19:27:58
Message-ID: 20130508192711.GA9243@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

Re: Joshua D. Drake 2013-05-07 <5189CD70(dot)2050306(at)commandprompt(dot)com>
> I have a bare precise (not changes except network). I tried to
> follow the instructions here:
>
> http://wiki.postgresql.org/wiki/Apt

Hi Joshua,

this bug was believed to be fixed, but apparently there is a corner
case left. Thanks for the detailed log, it will allow us to look into
this.

As a workaround, the issue should be resolved by running

update-alternatives --remove postmaster.1.gz /usr/share/postgresql/9.1/man/man1/postmaster.1.gz

and then reinstalling postgresql-9.1:

apt-get install -f
apt-get install --reinstall postgresql-9.1

> Which got me this:
>
> root(at)precise0:/etc/apt/sources.list.d# sudo apt-get install
> postgresql-9.2 postgresql-client-9.2 postgresql-contrib-9.2
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
> libpq5 pgdg-keyring postgresql-client-common postgresql-common
> Suggested packages:
> oidentd ident-server locales-all postgresql-doc-9.2 libdbd-pg-perl
> The following NEW packages will be installed:
> pgdg-keyring postgresql-9.2 postgresql-client-9.2 postgresql-contrib-9.2
> The following packages will be upgraded:
> libpq5 postgresql-client-common postgresql-common
> 3 upgraded, 4 newly installed, 0 to remove and 8 not upgraded.
> Need to get 6,718 kB of archives.
> After this operation, 25.0 MB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Get:1 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main
> libpq5 amd64 9.2.4-1.pgdg12.4+1 [536 kB]
> Get:2 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main
> pgdg-keyring all 2012.1 [4,102 B]
> Get:3 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main
> postgresql-client-common all 142.pgdg12.4+1 [68.4 kB]
> Get:4 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main
> postgresql-client-9.2 amd64 9.2.4-1.pgdg12.4+1 [1,394 kB]
> Get:5 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main
> postgresql-common all 142.pgdg12.4+1 [153 kB]
> Get:6 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main
> postgresql-9.2 amd64 9.2.4-1.pgdg12.4+1 [3,768 kB]
> Get:7 http://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main
> postgresql-contrib-9.2 amd64 9.2.4-1.pgdg12.4+1 [794 kB]
> Fetched 6,718 kB in 4s (1,446 kB/s)
> Preconfiguring packages ...
> (Reading database ... 78531 files and directories currently installed.)
> Preparing to replace libpq5 9.1.9-0ubuntu12.04 (using
> .../libpq5_9.2.4-1.pgdg12.4+1_amd64.deb) ...
> Unpacking replacement libpq5 ...
> Selecting previously unselected package pgdg-keyring.
> Unpacking pgdg-keyring (from .../pgdg-keyring_2012.1_all.deb) ...
> Preparing to replace postgresql-client-common 129ubuntu1 (using
> .../postgresql-client-common_142.pgdg12.4+1_all.deb) ...
> Unpacking replacement postgresql-client-common ...
> Selecting previously unselected package postgresql-client-9.2.
> Unpacking postgresql-client-9.2 (from
> .../postgresql-client-9.2_9.2.4-1.pgdg12.4+1_amd64.deb) ...
> Preparing to replace postgresql-common 129ubuntu1 (using
> .../postgresql-common_142.pgdg12.4+1_all.deb) ...
> Leaving 'diversion of /usr/bin/pg_config to
> /usr/bin/pg_config.libpq-dev by postgresql-common'
> Unpacking replacement postgresql-common ...
> Selecting previously unselected package postgresql-9.2.
> Unpacking postgresql-9.2 (from
> .../postgresql-9.2_9.2.4-1.pgdg12.4+1_amd64.deb) ...
> Selecting previously unselected package postgresql-contrib-9.2.
> Unpacking postgresql-contrib-9.2 (from
> .../postgresql-contrib-9.2_9.2.4-1.pgdg12.4+1_amd64.deb) ...
> Processing triggers for man-db ...
> Processing triggers for ureadahead ...
> ureadahead will be reprofiled on next reboot
> Setting up libpq5 (9.2.4-1.pgdg12.4+1) ...
> Setting up pgdg-keyring (2012.1) ...
> Setting up postgresql-client-common (142.pgdg12.4+1) ...
> Setting up postgresql-client-9.2 (9.2.4-1.pgdg12.4+1) ...
> update-alternatives: error: alternative pg_basebackup.1.gz can't be
> slave of psql.1.gz: it is a slave of postmaster.1.gz
> dpkg: error processing postgresql-client-9.2 (--configure):
> subprocess installed post-installation script returned error exit status 2
> Setting up postgresql-common (142.pgdg12.4+1) ...
> Installing new version of config file /etc/init.d/postgresql ...
> Installing new version of config file
> /etc/sysctl.d/30-postgresql-shm.conf ...
> * Starting PostgreSQL 9.1 database server
>
>
> [ OK ]
> dpkg: dependency problems prevent configuration of postgresql-9.2:
> postgresql-9.2 depends on postgresql-client-9.2; however:
> Package postgresql-client-9.2 is not configured yet.
> dpkg: error processing postgresql-9.2 (--configure):
> dependency problems - leaving unconfigured
> No apport report written because the error message indicates its a
> followup error from a previous failure.
>
> dpkg: dependency problems prevent
> configuration of postgresql-contrib-9.2:
> postgresql-contrib-9.2 depends on postgresql-9.2 (=
> 9.2.4-1.pgdg12.4+1); however:
> Package postgresql-9.2 is not configured yet.
> dpkg: error processing postgresql-contrib-9.2 (--configure):
> dependency problems - leaving unconfigured
> No apport report written because the error message indicates its a
> followup error from a previous failure.
>
> Processing triggers for libc-bin ...
> ldconfig deferred processing now taking place
> Errors were encountered while processing:
> postgresql-client-9.2
> postgresql-9.2
> postgresql-contrib-9.2
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> root(at)precise0:/etc/apt/sources.list.d#
>
> --
> Command Prompt, Inc. - http://www.commandprompt.com/
> PostgreSQL Support, Training, Professional Services and Development
> High Availability, Oracle Conversion, Postgres-XC
> @cmdpromptinc - 509-416-6579
>

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Christoph Berg 2013-05-11 05:08:16 Wrong version of libpq5 in squeeze/wheezy/lucid/precise on amd64
Previous Message Christoph Berg 2013-05-07 06:02:40 Re: Installation on Ubuntu 13.04