> You are moving the symlink from libloc to libloc-database. I don't think > this will work reliably with prerm/postinst scripts, as there is no > ordering guarantee for which package is configured or > removed/deconfigured first. I think you need at least a Breaks/Replaces > relationship here: https://wiki.debian.org/PackageTransition
I do not think that this package needs a Breaks/Replaces: As mentioned in #1155122 for libloc-database, the symlink was never formally owned by this package. Maintainer scripts added the symlink, so dpkg does not track this move. The libloc-database package will have a Breaks so that this package's older prerm does not trigger unnecessarily. I clarified this in the changelog and made a new upload in https://mentors.debian.net/package/libloc/ -- Valters Jansons

