Package: wireless-tools
Version: 30~pre9-22
Severity: serious
Justification: fails to upgrade from testing

libiw30t64 fails to install when libiw30 is present, because the
Conflicts field hardcodes a version bound that the installed
libiw30 (e.g. 30~pre9-16+b1) does not satisfy:

  Conflicts: libiw30 (<< 30~pre9)

dpkg --compare-versions "30~pre9-16+b1" ge "30~pre9" is true, so the
conflict never triggers and libiw30t64 tries to overwrite a file still
owned by libiw30:

  dpkg: error processing archive .../libiw30t64_30~pre9-22_amd64.deb
(--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libiw.so.30', which is
   also in package libiw30:amd64 (30~pre9-16+b1)

Fix: use unconditional Conflicts/Replaces, since libiw30t64 and libiw30
can never coexist regardless of version:

  Conflicts: libiw30
  Replaces: libiw30

Reported by a user via email after upgrading from testing.

-- Ahmed Alaoui

Reply via email to