Bug#999760: opencv: libopencv-*4.5d: missing Breaks+Replaces: libopencv-*4.5

Andreas Beckmann anbe at debian.org
Tue Nov 16 09:26:15 GMT 2021


Source: opencv
Version: 4.5.4+dfsg-2
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'sid' to 'experimental'.
It installed fine in 'sid', then the upgrade to 'experimental' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.
This error may also be triggered by having a predecessor package from
'sid 'installed while installing the package from 'experimental'.

See policy 7.6 at
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces

>From the attached log (scroll to the bottom...):

  Preparing to unpack .../libopencv-core4.5d_4.5.4+dfsg-2_amd64.deb ...
  Unpacking libopencv-core4.5d:amd64 (4.5.4+dfsg-2) ...
  dpkg: error processing archive /var/cache/apt/archives/libopencv-core4.5d_4.5.4+dfsg-2_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libopencv_core.so.4.5.4', which is also in package libopencv-core4.5:amd64 4.5.4+dfsg-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../libopencv-flann4.5d_4.5.4+dfsg-2_amd64.deb ...
  Unpacking libopencv-flann4.5d:amd64 (4.5.4+dfsg-2) ...
  dpkg: error processing archive /var/cache/apt/archives/libopencv-flann4.5d_4.5.4+dfsg-2_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libopencv_flann.so.4.5.4', which is also in package libopencv-flann4.5:amd64 4.5.4+dfsg-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../libopencv-imgproc4.5d_4.5.4+dfsg-2_amd64.deb ...
  Unpacking libopencv-imgproc4.5d:amd64 (4.5.4+dfsg-2) ...
  dpkg: error processing archive /var/cache/apt/archives/libopencv-imgproc4.5d_4.5.4+dfsg-2_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.4.5.4', which is also in package libopencv-imgproc4.5:amd64 4.5.4+dfsg-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../libopencv-features2d4.5d_4.5.4+dfsg-2_amd64.deb ...
  Unpacking libopencv-features2d4.5d:amd64 (4.5.4+dfsg-2) ...
  dpkg: error processing archive /var/cache/apt/archives/libopencv-features2d4.5d_4.5.4+dfsg-2_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libopencv_features2d.so.4.5.4', which is also in package libopencv-features2d4.5:amd64 4.5.4+dfsg-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../libopencv-calib3d4.5d_4.5.4+dfsg-2_amd64.deb ...
  Unpacking libopencv-calib3d4.5d:amd64 (4.5.4+dfsg-2) ...
  dpkg: error processing archive /var/cache/apt/archives/libopencv-calib3d4.5d_4.5.4+dfsg-2_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libopencv_calib3d.so.4.5.4', which is also in package libopencv-calib3d4.5:amd64 4.5.4+dfsg-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Errors were encountered while processing:
   /var/cache/apt/archives/libopencv-core4.5d_4.5.4+dfsg-2_amd64.deb
   /var/cache/apt/archives/libopencv-flann4.5d_4.5.4+dfsg-2_amd64.deb
   /var/cache/apt/archives/libopencv-imgproc4.5d_4.5.4+dfsg-2_amd64.deb
   /var/cache/apt/archives/libopencv-features2d4.5d_4.5.4+dfsg-2_amd64.deb
   /var/cache/apt/archives/libopencv-calib3d4.5d_4.5.4+dfsg-2_amd64.deb

This seems to affect all libopencv-*4.5d packages.


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libopencv-core4.5=4.5.4+dfsg-1_libopencv-core4.5d=4.5.4+dfsg-2.log.gz
Type: application/gzip
Size: 7980 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20211116/659c05f3/attachment.gz>


More information about the debian-science-maintainers mailing list