Hi,
this kind of issue is often triggered by using packages from outside the Ubuntu
archive.
The file you are missing is of package postgresql-client-common which is
installed as dependency.
You can double check via:
root@x:~# dpkg -S /usr/share/postgresql-common/maintscripts-functions
postgresql-client-common: /usr/share/postgresql-common/maintscripts-functions
root@x:~# dpkg --verify postgresql-client-common
root@x:~# apt-cache policy postgresql-client-common
postgresql-client-common:
Installed: 173ubuntu0.3
Candidate: 173ubuntu0.3
Version table:
*** 173ubuntu0.3 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64
Packages
100 /var/lib/dpkg/status
173 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
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
** Changed in: postgresql-9.5 (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/1834230
Title:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-9.5/+bug/1834230/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs