Package: postgresql-9.6
Version: 9.6.15-0+deb9u1
Severity: important
Dear Maintainer,
when updating the "postgresql-9.6" package from version
"9.6.13-0+deb9u1" to "9.6.15-0+deb9u1" the installation crashes with
subprocess new pre-removal script returned error exit status 1
Here is the full log:
> aptitude install postgresql-9.6
The following packages will be upgraded:
postgresql-9.6
The following packages are RECOMMENDED but will NOT be installed:
postgresql-contrib-9.6
1 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/4,293 kB of archives. After unpacking 6,144 B will be used.
Do you want to continue? [Y/n/?] y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 43500 files and directories currently installed.)
Preparing to unpack .../postgresql-9.6_9.6.15-0+deb9u1_amd64.deb ...
Job for postgresql@9.6-main.service canceled.
dpkg: warning: subprocess old pre-removal script returned error exit
status 1
dpkg: trying script from the new package instead ...
Job for postgresql@9.6-main.service canceled.
dpkg: error processing archive
/var/cache/apt/archives/postgresql-9.6_9.6.15-0+deb9u1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/postgresql-9.6_9.6.15-0+deb9u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The system is an up-to-date Debian stretch server.
Regards
Matthias