Package: postgresql-common
Version: 255
Severity: minor

The package remove script for postgresql-client-* tries to source the maintscripts-functions that comes with postgresql-common.

If removing both packages at the same time, the dpkg system might decide to remove -common before -client, and thus the -client prerm script fails as it can't find the maintscripts-functions file anymore.

I don't know if it's possible to force the package removal order, but if not then some error handling should be added to the remove scripts, or the relevant function(s) should be included in-place in the -client remove scripts.

I ran into this issue when I was about to upgrade pgsql packages from 15 to 16, but then noticed that the server is actually using a different database backend, and then decided to remove the unnecessary pgsql packages. This going back and forth might have affected the package removal order.

Best Regards,

--
        Aleksi Suhonen

        () ascii ribbon campaign
        /\ support plain text e-mail

Reply via email to