Обсуждение: Still errors on 9.2 with precise

Поиск
Список
Период
Сортировка

Still errors on 9.2 with precise

От
"Joshua D. Drake"
Дата:
Setting up libpq5 (9.2.4-1.pgdg12.4+1) ...
Setting up pgdg-keyring (2012.1) ...
Setting up postgresql-client-common (145.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 (145.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
    ...done.
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.

                                    Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
  postgresql-client-9.2
  postgresql-9.2
E: Sub-process /usr/bin/dpkg returned an error code (1)

--
Command Prompt, Inc. - http://www.commandprompt.com/  509-416-6579
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC, @cmdpromptinc
For my dreams of your image that blossoms
    a rose in the deeps of my heart. - W.B. Yeats


Re: Still errors on 9.2 with precise

От
"Joshua D. Drake"
Дата:
Hello,

As a followup, these errors cause 9.2 to not be installed. This is
precise with 9.1 already installed.

JD

--
Command Prompt, Inc. - http://www.commandprompt.com/  509-416-6579
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC, @cmdpromptinc
For my dreams of your image that blossoms
    a rose in the deeps of my heart. - W.B. Yeats


Re: Still errors on 9.2 with precise

От
Christoph Berg
Дата:
Re: Joshua D. Drake 2013-07-09 <51DC641C.3090706@commandprompt.com>
> 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

Fwiw, this was fixed in the 9.1 packages, but we forgot to include the
same fix in the 9.2 packages. Though the issue should have disappered
now because no "bad" 9.1.small or 9.2.small-or-beta packages should be
around anymore.

Christoph
--
cb@df7cb.de | http://www.df7cb.de/


Re: Still errors on 9.2 with precise

От
Christoph Berg
Дата:
Re: To Joshua D. Drake 2013-12-18 <20131218104832.GA22202@msgid.df7cb.de>
> Re: Joshua D. Drake 2013-07-09 <51DC641C.3090706@commandprompt.com>
> > 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
>
> Fwiw, this was fixed in the 9.1 packages, but we forgot to include the
> same fix in the 9.2 packages. Though the issue should have disappered
> now because no "bad" 9.1.small or 9.2.small-or-beta packages should be
> around anymore.

It just reappeared on IRC:

ubuntu@postgres91:~$ dpkg -l|grep postgresql
ii pgdg-keyring 2013.2 keyring for apt.postgresql.org
ii postgresql 9.1+129ubuntu1 object-relational SQL database (supported version)
ii postgresql-9.1 9.1.11-0ubuntu0.12.04 object-relational SQL database, version 9.1 server
iU postgresql-9.2 9.2.6-1.pgdg12.4+1 object-relational SQL database, version 9.2 server
iU postgresql-9.2-dbg 9.2.6-1.pgdg12.4+1 debug symbols for postgresql-9.2
iU postgresql-9.2-repmgr 2.0~beta1-2.pgdg12.4+1 replication manager support modules for PostgreSQL 9.2
ii postgresql-client-9.1 9.1.11-0ubuntu0.12.04 front-end programs for PostgreSQL 9.1
iF postgresql-client-9.2 9.2.6-1.pgdg12.4+1 front-end programs for PostgreSQL 9.2
ii postgresql-client-common 151.pgdg12.4+1 manager for multiple PostgreSQL client versions
ii postgresql-common 151.pgdg12.4+1 PostgreSQL database-cluster manager
ii postgresql-contrib-9.1 9.1.11-0ubuntu0.12.04 additional facilities for PostgreSQL
iU postgresql-contrib-9.2 9.2.6-1.pgdg12.4+1 additional facilities for PostgreSQL
ii postgresql-server-dev-9.1 9.1.11-0ubuntu0.12.04 development files for PostgreSQL 9.1 server-side programming
ii postgresql-server-dev-9.2 9.2.6-1.pgdg12.4+1 development files for PostgreSQL 9.2 server-side programming
ubuntu@postgres91:~$ sudo ls -l /var/lib/postgresql/9.2/main/
[sudo] password for ubuntu:
total 0
ubuntu@postgres91:~$

postgresql-server-dev-9.2 is already the newest version.
The following package was automatically installed and is no longer required:
libkrb5-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up postgresql-client-9.2 (9.2.6-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
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
dpkg: dependency problems prevent configuration of postgresql-contrib-9.2:
postgresql-contrib-9.2 depends on postgresql-9.2 (= 9.2.6-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
dpkg: dependency problems prevent configuration of postgresql-9.2-dbg:
postgresql-9.2-dbg depends on postgresql-9.2 (= 9.2.6-1.pgdg12.4+1); however:
Package postgresql-9.2 is not configured yet.
dpkg: error processing postgresql-9.2-dbg (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-9.2-repmgr:
postgresql-9.2-repmgr depends on postgresql-9.2; however:
Package postgresql-9.2 is not configured yet.
dpkg: error processing postgresql-9.2-repmgr (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
Errors were encountered while processing:
postgresql-client-9.2
postgresql-9.2
postgresql-contrib-9.2
postgresql-9.2-dbg
postgresql-9.2-repmgr
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@postgres91:~$

https://gist.github.com/milosgajdos83/8183253
https://gist.github.com/milosgajdos83/8183289

The user reports that 9.1.11 was installed before 9.2 was tried, so it
looks like there's still some upgrade path that doesn't trigger the
update-alternatives --remove fix in postgresql-9.1.postinst. Maybe we
should issue a more general fix there.

Christoph
--
cb@df7cb.de | http://www.df7cb.de/

Вложения