Thanks for filing this bug in Ubuntu. You seem to have a non-ubuntu package installed that is causing problems:
insserv: There is a loop between service OpManagerServer and udev if started In particular: insserv: warning: script 'S98OpManagerServer' missing LSB tags and overrides insserv: warning: script 'OpManagerServer' missing LSB tags and overrides You should contact whoever provided OpManagerServer and have them fix the LSB headers of its SysV initscript. Alternatively, you could temporarily remove it from your system, proceed with the removal of postgresql as you intended, and then reinstall it. ** Changed in: postgresql-common (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to postgresql-common in Ubuntu. https://bugs.launchpad.net/bugs/1718350 Title: package postgresql-common 173 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1 Status in postgresql-common package in Ubuntu: Invalid Bug description: fix the summarize issue ProblemType: Package DistroRelease: Ubuntu 16.04 Package: postgresql-common 173 ProcVersionSignature: Ubuntu 4.4.0-93.116-generic 4.4.79 Uname: Linux 4.4.0-93-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.10 Architecture: amd64 Date: Wed Sep 20 11:21:55 2017 ErrorMessage: subprocess installed post-removal script returned error exit status 1 InstallationDate: Installed on 2017-08-18 (32 days ago) InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1) PackageArchitecture: all RelatedPackageVersions: dpkg 1.18.4ubuntu1.2 apt 1.2.24 SourcePackage: postgresql-common Title: package postgresql-common 173 failed to install/upgrade: subprocess installed post-removal script returned error exit status 1 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1718350/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp