<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 27/01/19 à 09:54, Laurent Bigonville
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:627acaf2-6e52-5e1b-6bde-56dfa733c9b3@debian.org">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
On Thu, 17 Jan 2019 15:35:54 +0100 Andreas Beckmann <a
class="moz-txt-link-rfc2396E" href="mailto:anbe@debian.org"
moz-do-not-send="true"><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>
</blockquote>
An other solution is to remove this version check and just remove
unconditionally these symlinks in /sbin as they are not created by
any other packages (including iptables)<br>
</body>
</html>