<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On Thu, 17 Jan 2019 15:35:54 +0100 Andreas Beckmann
    <a class="moz-txt-link-rfc2396E" href="mailto:anbe@debian.org"><anbe@debian.org></a> wrote:<br>
    > <br>
    > Hi,<br>
    <p>Hello<br>
    </p>
    > <br>
    > 0m33.7s ERROR: FAIL: Broken symlinks:<br>
    > /sbin/ebtables-restore -> /usr/sbin/ebtables-restore<br>
    > /sbin/ebtables-save -> /usr/sbin/ebtables-save<br>
    > /sbin/ebtables -> /usr/sbin/ebtables<br>
    <p>I can confirm this.</p>
    <p>These symlinks are created by the postinst script of ebtables but
      are not properly removed by theĀ  pre/postrm one.</p>
    <p>The prerm script is doing the following:</p>
    <pre>if [ "$1" = "remove" ] ; then
    iptables_version=$(dpkg-query -W -f='${Version;3}\n' iptables)
    if [[ "$iptables_version" < 1.8 ]]; then
        LIST="/sbin/ebtables /sbin/ebtables-save /sbin/ebtables-restore"

        for i in $LIST ; do
            if [ -L "$i" ] ; then
                rm $i
            fi
        done
    fi
fi

</pre>
    <p>First remark, shouldn't dpkg --compare-versions be used instead
      of just the < sign?</p>
    <p>Then, these symlinks must also be created/removed in the iptables
      package itself for this to work, this is not the case ATM.
      Otherwise, if ebtables is removed and then iptables package is
      removed, the symlinks will stay on the filesystem forever.</p>
    <p>Again all of this needs to be coordinated between ip/eb/arptables
      packages, could all of this be fixed in a consistent way?<br>
    </p>
  </body>
</html>