• cleaning up dead triggers

    From Christoph Anton Mitterer@21:1/5 to All on Fri Jul 2 17:00:02 2021
    Hey.

    I've recently noted that my systems have files in
    /var/lib/dpkg/triggers, which are no longer there on fresh
    installations.

    For example:
    /var/lib/dpkg/triggers/resolvconf-event /var/lib/dpkg/triggers/rkhunter-update-database

    which seem to have been previously used by their respective packages
    (before being renamed) and are now empty.


    Not sure if /var/lib/dpkg/triggers/Unincorp is another leftover (at
    least it's empty).


    Shouldn't packages clean up old triggers like /var/lib/dpkg/triggers/resolvconf-event?


    Thanks,
    Chris.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Guillem Jover@21:1/5 to Christoph Anton Mitterer on Sat Jul 3 05:50:01 2021
    On Fri, 2021-07-02 at 16:26:19 +0200, Christoph Anton Mitterer wrote:
    I've recently noted that my systems have files in
    /var/lib/dpkg/triggers, which are no longer there on fresh
    installations.

    All of your systems? Do they all contain the same files?

    For example:
    /var/lib/dpkg/triggers/resolvconf-event /var/lib/dpkg/triggers/rkhunter-update-database

    which seem to have been previously used by their respective packages
    (before being renamed) and are now empty.

    The changelogs for these packages seem to mention these having been
    renamed around 2011, dpkg only started doing fsync() for these files
    in 1.15.6 (around 2010, but the release that included the 1.15.x
    happened around 2011), perhaps you had system crashes then while using
    ext4 or a similarly new filesystem, when running with the old dpkg?

    Not sure if /var/lib/dpkg/triggers/Unincorp is another leftover (at
    least it's empty).

    That's the file holding the pending triggers. It's expected to be
    empty, while there are no pending triggers.

    Shouldn't packages clean up old triggers like /var/lib/dpkg/triggers/resolvconf-event?

    No, dpkg is supposed to do that.

    Thanks,
    Guillem

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)