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
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-9.6 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Crashes
ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: postgresql-
ProcVersionSign
Uname: Linux 4.10.0-22-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: amd64
Date: Mon Jun 12 14:42:21 2017
DpkgTerminalLog:
Removing postgresql-
update-
[1mdpkg:[0m error processing package postgresql-
subprocess installed pre-removal script returned error exit status 2
ErrorMessage: subprocess installed pre-removal script returned error exit status 2
InstallationDate: Installed on 2017-05-06 (37 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
RelatedPackageV
dpkg 1.18.10ubuntu2
apt 1.4
SourcePackage: postgresql-9.6
Title: package postgresql-
UpgradeStatus: No upgrade log present (probably fresh install)
Hi,
thank you for your report and your help to make Ubuntu better.
I tried to recreate: postgresql/ 9.6/man/ man1/postmaster .1.gz postgresql/ 9.6/man/ man1/postmaster .1.gz
$ apt install postgresql
$ dpkg -S /usr/share/
postgresql-9.6: /usr/share/
$ apt remove postgresql
And I see: contrib- 9.6 (9.6.3- 0ubuntu0. 17.04) ... alternatives: warning: forcing reinstallation of alternative /usr/share/ postgresql/ 9.6/man/ man1/postmaster .1.gz because link group postmaster.1.gz is broken
Removing postgresql-
update-
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: 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
update-
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 :-/ postgresql/ 9.6/man/ man1/postmaster .1* postgresql/ 9.6/man/ man1/postmaster .1*
Could you report back what the following shows you:
$ dpkg -S /usr/share/
$ ls -laF /usr/share/
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?