Comment 3 for bug 1293596

Revision history for this message
Alexander Schlarb (alexander255) wrote : Re: package postgresql-client-9.3 9.3.3-1bzr2 failed to install/upgrade: ErrorMessage: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 2 zurück

The reason this is happening is because the function `_link_manpages` in the file `/usr/share/postgresql-common/maintscripts-functions` searches for the string "auto mode" in the output of the command `update-alternatives --display postmaster.1.gz 2> /dev/null` however (since both mine and his system are using the german locale the string that is printed by `update-alternatives` is actually "Auto-Modus".

I can't test this anymore (applied the workaround given below already), but the solution would probably be to change the problematic command to `env LANGUAGE=C update-alternatives --display postmaster.1.gz 2> /dev/null`.

WORKAROUND:
 * Run this command: sudo update-alternatives --remove postmaster.1.gz /usr/share/postgresql/9.1/man/man1/postmaster.1.gz
 * Retry the upgrade using: sudo aptitude safe-upgrade