Hi,
thank you for your report and your help to make Ubuntu better.

I tried to recreate:
$ apt install postgresql
$ dpkg -S /usr/share/postgresql/9.6/man/man1/postmaster.1.gz 
  postgresql-9.6: /usr/share/postgresql/9.6/man/man1/postmaster.1.gz
$ apt remove postgresql

And I see:
Removing postgresql-contrib-9.6 (9.6.3-0ubuntu0.17.04) ...
update-alternatives: warning: forcing reinstallation of alternative 
/usr/share/postgresql/9.6/man/man1/postmaster.1.gz because link group 
postmaster.1.gz is broken

So both our cases have that file missing, yet in my repro-case dpkg
detects that and removes it correctly.

The file itself is a very old compat name:
update-alternatives: using /usr/share/postgresql/9.6/man/man1/postmaster.1.gz 
to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
Quoting from that:
"postmaster is a deprecated alias of postgres."

So in your case something seems to break that - but I can't see from the logs 
what :-/
Could you report back what the following shows you:
$ dpkg -S /usr/share/postgresql/9.6/man/man1/postmaster.1*
$ ls -laF /usr/share/postgresql/9.6/man/man1/postmaster.1*

Maybe we find some sort of half installed or half removed file that causes this.
Other than that I wanted to ask if you have any sort of third party packages 
installed that could cause this?

** Changed in: postgresql-9.6 (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1697675

Title:
  package postgresql-contrib-9.6 9.6.3-0ubuntu0.17.04 failed to
  install/upgrade: subprocess installed pre-removal script returned
  error exit status 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-9.6/+bug/1697675/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to