Bug#138217: additional info
(To Ollie: see the bug, and below. Maybe you're interested as well.)
The culprit was postgresql-client / libpgsql2:
# apt-get install postgresql-client
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libdbd-pg-perl libecpg3 libpam-pgsql libpgperl libpgsql2 postgresql postgresql-contrib python-pygresql
python2.1-egenix-mxdatetime python2.1-egenix-mxtools trafstats
The following packages will be REMOVED:
libpgsql2.1
The following NEW packages will be installed:
libpgsql2 python2.1-egenix-mxdatetime python2.1-egenix-mxtools
9 packages upgraded, 3 newly installed, 1 to remove and 537 not upgraded.
Need to get 0B/2662kB of archives. After unpacking 1665kB will be used.
Do you want to continue? [Y/n]
E: Internal Error, Couldn't configure a pre-depend
[same for libpgsql2]
# dpkg -s postgresql-client
Package: postgresql-client
Status: install ok installed
Priority: optional
Section: non-US
Installed-Size: 756
Maintainer: Oliver Elphick <Oliver.Elphick@lfix.co.uk>
Source: postgresql
Version: 7.1.3-5
Replaces: postgresql (<< 7.1.1-4)
Depends: libc6 (>= 2.2.4-4), libpgsql2.1 (>= 7.1), libreadline4 (>= 4.2), libssl0.9.6, zlib1g (>= 1:1.1.3)
Suggests: postgresql-doc, pgdocs
Conflicts: postgresql (<< 7.1.1-4)
Conffiles:
/etc/postgresql/postgresql.env 66e03639996790dbd1e25b7567820c85
Description: Front-end programs for PostgreSQL
# dpkg -s libpgsql2
Package: libpgsql2
Status: purge ok not-installed
Priority: optional
Section: libs
# dpkg -s libpgsql2.1
Package: libpgsql2.1
Status: install ok installed
Priority: optional
Section: non-US
Installed-Size: 188
Maintainer: Oliver Elphick <Oliver.Elphick@lfix.co.uk>
Source: postgresql
Version: 7.1.3-5
Replaces: libpgsql2, postgresql (<< 7.1)
Provides: libpgsql2
Depends: libc6 (>= 2.2.4-4), libssl0.9.6, libstdc++2.10-glibc2.2 (>= 1:2.95.4-0.010810)
Suggests: postgresql-doc, postgresql-client
Conflicts: libpq1, postgres95, libpgsql2
Description: Shared library libpq.so.2.1 for PostgreSQL
# dpkg --info postgresql-client_7.2-5_i386.deb
new debian package, version 2.0.
size 277836 bytes: control archive= 5178 bytes.
31 bytes, 1 lines conffiles
835 bytes, 20 lines control
5435 bytes, 79 lines md5sums
634 bytes, 20 lines * postinst #!/bin/bash
147 bytes, 5 lines * postrm #!/bin/sh
3187 bytes, 122 lines * preinst #!/bin/bash
2283 bytes, 78 lines * prerm #!/bin/bash
Package: postgresql-client
Version: 7.2-5
Section: non-US
Priority: optional
Architecture: i386
Depends: libc6 (>= 2.2.4-4), libpam0g (>= 0.72-1), libreadline4 (>= 4.2a-4), libssl0.9.6, zlib1g (>= 1:1.1.3),libpgsql2 (>= 7.2-3)
Suggests: postgresql-doc,pgdocs
Conflicts: postgresql (<<7.1.1-4)
Replaces: postgresql (<< 7.1.1-4)
Installed-Size: 760
Maintainer: Oliver Elphick <Oliver.Elphick@lfix.co.uk>
Source: postgresql
Description: Front-end programs for PostgreSQL
# dpkg --info libpgsql2_7.2-5_i386.deb
new debian package, version 2.0.
size 64080 bytes: control archive= 2939 bytes.
700 bytes, 17 lines control
389 bytes, 6 lines md5sums
473 bytes, 17 lines * postinst #!/bin/bash
3187 bytes, 122 lines * preinst #!/bin/bash
2343 bytes, 79 lines * prerm #!/bin/bash
89 bytes, 3 lines shlibs
Package: libpgsql2
Version: 7.2-5
Section: non-US
Priority: optional
Architecture: i386
Depends: libc6 (>= 2.2.4-4), libssl0.9.6, libstdc++2.10-glibc2.2 (>= 1:2.95.4-0.010810)
Suggests: postgresql-doc,postgresql-client
Conflicts: libpq1,postgres95,libpgsql2.1,libpgsql2.2
Replaces: libpgsql2.2,postgresql (<< 7.1),libpgsql2.1
Provides: libpgsql2.1
Installed-Size: 196
Maintainer: Oliver Elphick <Oliver.Elphick@lfix.co.uk>
Source: postgresql
Description: Shared library libpq.so.2 for PostgreSQL
C and C++ libraries to enable user programs to communicate with
the PostgreSQL database backend. The backend can be on another machine and
accessed through TCP/IP. This package obsoletes libpgsql2.1.
Trying to upgrade it with dpkg:
# dpkg -i libpgsql2_7.2-5_i386.deb postgresql*
dpkg: considering removing libpgsql2.1 in favour of libpgsql2 ...
dpkg: no, cannot remove libpgsql2.1 (--auto-deconfigure will help):
postgresql-contrib depends on libpgsql2.1 (>= 7.1)
libpgsql2.1 is to be removed.
dpkg: regarding libpgsql2_7.2-5_i386.deb containing libpgsql2:
libpgsql2 conflicts with libpgsql2.1
libpgsql2.1 (version 7.1.3-5) is installed.
dpkg: error processing libpgsql2_7.2-5_i386.deb (--install):
conflicting packages - not installing libpgsql2
(Reading database ... 79336 files and directories currently installed.)
Preparing to replace postgresql-client 7.1.3-5 (using postgresql-client_7.2-5_i386.deb) ...
Saving old binaries
Unpacking replacement postgresql-client ...
Preparing to replace postgresql-contrib 7.1.3-5 (using postgresql-contrib_7.2-5_i386.deb) ...
Unpacking replacement postgresql-contrib ...
Preparing to replace postgresql-dev 7.1.3-5 (using postgresql-dev_7.2-5_i386.deb) ...
Unpacking replacement postgresql-dev ...
Preparing to replace postgresql-doc 7.1.3-5 (using postgresql-doc_7.2-5_all.deb) ...
Document `postgresql-guide' is not installed, cannot remove.
Unpacking replacement postgresql-doc ...
Preparing to replace postgresql 7.1.3-5 (using postgresql_7.2-5_i386.deb) ...
Stopping PostgreSQL postmaster.
Stopped /usr/lib/postgresql/bin/postmaster (pid 821).
Found an existing database directory at /var/postgres/data
Stopping PostgreSQL postmaster.
Stopped /usr/lib/postgresql/bin/postmaster (pid 821 9748).
Unpacking replacement postgresql ...
dpkg: warning - unable to delete old file /var/lib/postgres': Directory not empty
dpkg: dependency problems prevent configuration of postgresql-client:
postgresql-client depends on libpgsql2 (>= 7.2-3); however:
Package libpgsql2 is not installed.
dpkg: error processing postgresql-client (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-contrib:
postgresql-contrib depends on libpgsql2 (>= 7.2-3); however:
Package libpgsql2 is not installed.
postgresql-contrib depends on libpgperl (>= 7.2); however:
Version of libpgperl on system is 7.1.3-5.
dpkg: error processing postgresql-contrib (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-dev:
postgresql-dev depends on libpgsql2 (>= 7.2-3); however:
Package libpgsql2 is not installed.
dpkg: error processing postgresql-dev (--install):
dependency problems - leaving unconfigured
Setting up postgresql-doc (7.2-5) ...
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-client; however:
Package postgresql-client is not configured yet.
dpkg: error processing postgresql (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libpgsql2_7.2-5_i386.deb
postgresql-client
postgresql-contrib
postgresql-dev
postgresql
Oh okay, then let's auto-deconfigure it:
# dpkg --auto-deconfigure -i libpgsql2_7.2-5_i386.deb postgresql*
dpkg: considering removing libpgsql2.1 in favour of libpgsql2 ...
dpkg: yes, will remove libpgsql2.1 in favour of libpgsql2.
(Reading database ... 79622 files and directories currently installed.)
Unpacking libpgsql2 (from libpgsql2_7.2-5_i386.deb) ...
De-configuring python-pygresql, so that we can remove libpgsql2.1 ...
De-configuring libecpg3, so that we can remove libpgsql2.1 ...
De-configuring trafstats, so that we can remove libpgsql2.1 ...
Stopping trafstats: trafstats.
De-configuring libpgperl, so that we can remove libpgsql2.1 ...
De-configuring libdbd-pg-perl, so that we can remove libpgsql2.1 ...
De-configuring libpam-pgsql, so that we can remove libpgsql2.1 ...
Old binaries should already have been saved.
Segmentation fault (core dumped)
Oh my! Try again... pray...
# dpkg --configure -a
dpkg: dependency problems prevent configuration of python-pygresql:
python-pygresql depends on libpgsql2.1 (>= 7.1); however:
Package libpgsql2.1 is not installed.
dpkg: error processing python-pygresql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libecpg3:
libecpg3 depends on libpgsql2.1 (>= 7.1); however:
Package libpgsql2.1 is not installed.
dpkg: error processing libecpg3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of trafstats:
trafstats depends on libpgsql2.1 (>= 7.1release); however:
Package libpgsql2.1 is not installed.
dpkg: error processing trafstats (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpgperl:
libpgperl depends on libpgsql2.1 (>= 7.1); however:
Package libpgsql2.1 is not installed.
dpkg: error processing libpgperl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libdbd-pg-perl:
libdbd-pg-perl depends on libpgsql2.1 (>= 7.1release); however:
Package libpgsql2.1 is not installed.
dpkg: error processing libdbd-pg-perl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-pgsql:
libpam-pgsql depends on libpgsql2.1 (>= 7.0.3-3); however:
Package libpgsql2.1 is not installed.
dpkg: error processing libpam-pgsql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-dev:
postgresql-dev depends on libecpg3; however:
Package libecpg3 is not configured yet.
dpkg: error processing postgresql-dev (--configure):
dependency problems - leaving unconfigured
Setting up libpgsql2 (7.2-5) ...
dpkg: dependency problems prevent configuration of postgresql-contrib:
postgresql-contrib depends on libpgperl (>= 7.2); however:
Version of libpgperl on system is 7.1.3-5.
dpkg: error processing postgresql-contrib (--configure):
dependency problems - leaving unconfigured
Setting up postgresql-client (7.2-5) ...
[...etc...]
Seems many packages needs this lib, so it couldn't be removed, but
it couldn't be upgraded either, so apt jumps off the cliff. I agree
that the depends are insane this time, but apt still could share more
info on what failed (I had to trial & error it all over).
Reply to: