package postgresql-9.5 9.5.14-0ubuntu0.16.04 failed to install/upgrade: subprocess new pre-removal script returned error exit status 2 and don't let me use apt-get anymore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-9.5 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
package postgresql-9.5 9.5.14-
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: postgresql-9.5 9.5.14-
ProcVersionSign
Uname: Linux 4.15.0-48-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Tue Jun 25 19:42:26 2019
DpkgHistoryLog:
Start-Date: 2019-06-25 19:42:25
Commandline: apt-get install -f
Requested-By: arthur (1000)
Upgrade: postgresql-
ErrorMessage: subprocess new pre-removal script returned error exit status 2
InstallationDate: Installed on 2017-11-11 (591 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
RelatedPackageV
dpkg 1.18.4ubuntu1.5
apt 1.2.31
SourcePackage: postgresql-9.5
Title: package postgresql-9.5 9.5.14-
UpgradeStatus: Upgraded to xenial on 2018-09-17 (280 days ago)
tags: | removed: need-duplicate-check |
Hi, client- common which is installed as dependency.
this kind of issue is often triggered by using packages from outside the Ubuntu archive.
The file you are missing is of package postgresql-
You can double check via: postgresql- common/ maintscripts- functions client- common: /usr/share/ postgresql- common/ maintscripts- functions client- common client- common client- common: archive. ubuntu. com/ubuntu xenial-updates/main amd64 Packages security. ubuntu. com/ubuntu xenial- security/ main amd64 Packages dpkg/status archive. ubuntu. com/ubuntu xenial/main amd64 Packages
root@x:~# dpkg -S /usr/share/
postgresql-
root@x:~# dpkg --verify postgresql-
root@x:~# apt-cache policy postgresql-
postgresql-
Installed: 173ubuntu0.3
Candidate: 173ubuntu0.3
Version table:
*** 173ubuntu0.3 500
500 http://
500 http://
100 /var/lib/
173 500
500 http://
And report that back here.
If you happen to have an external postgresql-common please rest back to the one matching postgresql-9.5 from the archvie then things should work again.
If you happened to remove the file by accident a re-install of the package helps:
$ apt install --reinstall postgresql-common