I run testing and upgrade every 24 - 72 hours. When I upgraded today I managed to the packaging system into a state I can't get it out of. I have included a transcript of what I did, if anyone can point out what I did and how to fix it I would appreciate it.
elroy:/home/hgebel# apt-get -u upgrade Reading Package Lists... Done Building Dependency Tree... Done The following packages have been kept back libpgsql2.1 libpgtcl postgresql postgresql-client postgresql-dev python-pygresql realplayer The following packages will be upgraded bzip2 cron glibc-doc libbz2-1.0 libbz2-dev libc6 libc6-dev libggi-target-x libggi2 libggi2-dev libpam-doc libpam-runtime libpam0g libpam0g-dev libpcre3 libscrollkeeper-dev libscrollkeeper0 locales man-db navigator netscape-base-4 perlmagick postgresql-doc scrollkeeper 24 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded. Need to get 16.9MB of archives. After unpacking 10.4MB will be used. Do you want to continue? [Y/n] n Abort. elroy:/home/hgebel# apt-get -u install postgresql Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: libpgsql2.1 postgresql-client The following packages will be REMOVED: libpgsql2 libpgtcl postgresql-pl The following packages will be upgraded libpgsql2.1 postgresql postgresql-client 3 packages upgraded, 0 newly installed, 3 to remove and 27 not upgraded. Need to get 2487kB of archives. After unpacking 6250kB will be used. Do you want to continue? [Y/n] Get:1 http://non-us.debian.org testing/non-US/main postgresql-client 7.1release-4 [245kB] Get:2 http://non-us.debian.org testing/non-US/main postgresql 7.1release-4 [2188kB] Get:3 http://non-us.debian.org testing/non-US/main libpgsql2.1 7.1release-4 [53.8kB] Fetched 2487kB in 42s (57.9kB/s) (Reading database ... 90160 files and directories currently installed.) Removing libpgsql2 ... Removing libpgtcl ... Removing postgresql-pl ... Removing postgresql ... Stopping PostgreSQL postmaster Stopped /usr/lib/postgresql/bin/postmaster (pid 289). PostgreSQL is listening on port 5341 for a schema dump Starting PostgreSQL postmaster Stopping PostgreSQL postmaster No /usr/lib/postgresql/bin/postmaster found running; none killed. dpkg - warning: while removing postgresql, directory `/var/lib/postgres' not empty so not removed. dpkg - warning: while removing postgresql, directory `/usr/lib/postgresql/dumpall' not empty so not removed. dpkg - warning: while removing postgresql, directory `/etc/postgresql' not empty so not removed. (Reading database ... 90077 files and directories currently installed.) Preparing to replace postgresql-client 7.0.3-4 (using .../postgresql-client_7.1release-4_i386.deb) ... Saving old binaries Unpacking replacement postgresql-client ... Selecting previously deselected package postgresql. Unpacking postgresql (from .../postgresql_7.1release-4_i386.deb) ... Found an existing database directory at /var/lib/postgres/data Preparing to replace libpgsql2.1 7.0.3-4 (using .../libpgsql2.1_7.1release-4_i386.deb) ... /var/lib/dpkg/info/libpgsql2.1.prerm: /etc/postgresql/postmaster.conf: No such file or directory dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... dpkg: ... it looks like that went OK. /var/lib/dpkg/tmp.ci/preinst: /etc/postgresql/postmaster.conf: No such file or directory dpkg: error processing /var/cache/apt/archives/libpgsql2.1_7.1release-4_i386.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/libpgsql2.1_7.1release-4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) You have mail in /var/spool/mail/hgebel elroy:/home/hgebel# apt-get -uf install Reading Package Lists... Done Building Dependency Tree... Done Correcting dependencies... Done The following extra packages will be installed: libpgsql2.1 The following packages will be upgraded libpgsql2.1 1 packages upgraded, 0 newly installed, 0 to remove and 27 not upgraded. 2 packages not fully installed or removed. Need to get 0B/53.8kB of archives. After unpacking 33.8kB will be used. Do you want to continue? [Y/n] (Reading database ... 90642 files and directories currently installed.) Preparing to replace libpgsql2.1 7.0.3-4 (using .../libpgsql2.1_7.1release-4_i386.deb) ... /var/lib/dpkg/info/libpgsql2.1.prerm: /etc/postgresql/postmaster.conf: No such file or directory dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... dpkg: ... it looks like that went OK. /var/lib/dpkg/tmp.ci/preinst: /etc/postgresql/postmaster.conf: No such file or directory dpkg: error processing /var/cache/apt/archives/libpgsql2.1_7.1release-4_i386.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/libpgsql2.1_7.1release-4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) elroy:/home/hgebel# apt-get install libpgsql2.1 Reading Package Lists... Done Building Dependency Tree... Done 1 packages upgraded, 0 newly installed, 0 to remove and 27 not upgraded. 2 packages not fully installed or removed. Need to get 0B/53.8kB of archives. After unpacking 33.8kB will be used. (Reading database ... 90642 files and directories currently installed.) Preparing to replace libpgsql2.1 7.0.3-4 (using .../libpgsql2.1_7.1release-4_i386.deb) ... /var/lib/dpkg/info/libpgsql2.1.prerm: /etc/postgresql/postmaster.conf: No such file or directory dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... dpkg: ... it looks like that went OK. /var/lib/dpkg/tmp.ci/preinst: /etc/postgresql/postmaster.conf: No such file or directory dpkg: error processing /var/cache/apt/archives/libpgsql2.1_7.1release-4_i386.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/libpgsql2.1_7.1release-4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) elroy:/home/hgebel# apt-get remove postgresql Reading Package Lists... Done Building Dependency Tree... Done You might want to run `apt-get -f install' to correct these: Sorry, but the following packages have unmet dependencies: postgresql-client: Depends: libpgsql2.1 (>= 7.1) but 7.0.3-4 is to be installed Depends: libpgsql2.1 (>= 7.1) but 7.0.3-4 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). elroy:/home/hgebel# apt-get remove libpgsql2.1 Reading Package Lists... Done Building Dependency Tree... Done You might want to run `apt-get -f install' to correct these: Sorry, but the following packages have unmet dependencies: mpsql: Depends: libpgsql2.1 (>= 7.0.3-3) but it is not going to be installed postgresql: Depends: libpgsql2.1 (>= 7.1) but it is not going to be installed Depends: libpgsql2.1 but it is not going to be installed postgresql-client: Depends: libpgsql2.1 (>= 7.1) but it is not going to be installed Depends: libpgsql2.1 (>= 7.1) but it is not going to be installed postgresql-dev: Depends: libpgsql2.1 but it is not going to be installed python-psycopg: Depends: libpgsql2.1 (>= 7.0.3-3) but it is not going to be installed python-pygresql: Depends: libpgsql2 python2-psycopg: Depends: libpgsql2.1 (>= 7.0.3-3) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). elroy:/home/hgebel# apt-get -f install Reading Package Lists... Done Building Dependency Tree... Done Correcting dependencies... Done The following extra packages will be installed: libpgsql2.1 1 packages upgraded, 0 newly installed, 0 to remove and 27 not upgraded. 2 packages not fully installed or removed. Need to get 0B/53.8kB of archives. After unpacking 33.8kB will be used. Do you want to continue? [Y/n] (Reading database ... 90642 files and directories currently installed.) Preparing to replace libpgsql2.1 7.0.3-4 (using .../libpgsql2.1_7.1release-4_i386.deb) ... /var/lib/dpkg/info/libpgsql2.1.prerm: /etc/postgresql/postmaster.conf: No such file or directory dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... dpkg: ... it looks like that went OK. /var/lib/dpkg/tmp.ci/preinst: /etc/postgresql/postmaster.conf: No such file or directory dpkg: error processing /var/cache/apt/archives/libpgsql2.1_7.1release-4_i386.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/libpgsql2.1_7.1release-4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) elroy:/home/hgebel#
pgpyU25VTITfc.pgp
Description: PGP signature