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
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: postgresql/ 9.1/man/ man1/postmaster .1.gz
* Run this command: sudo update-alternatives --remove postmaster.1.gz /usr/share/
* Retry the upgrade using: sudo aptitude safe-upgrade