Bug#901045: libopenjpa-java: fails to upgrade from 'stretch' - trying to overwrite /usr/share/doc/libopenjpa-java/examples/image-gallery/pom.xml.gz

Andreas Beckmann anbe at debian.org
Fri Jun 8 12:39:34 BST 2018


Package: libopenjpa-java
Version: 2.4.2-4
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
'stretch'.
It installed fine in 'stretch', then the upgrade to 'buster' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.

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

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

  Selecting previously unselected package libopenjpa-java.
  Preparing to unpack .../31-libopenjpa-java_2.4.2-4_all.deb ...
  Unpacking libopenjpa-java (2.4.2-4) ...
  dpkg: error processing archive /tmp/apt-dpkg-install-NFPJRg/31-libopenjpa-java_2.4.2-4_all.deb (--unpack):
   trying to overwrite '/usr/share/doc/libopenjpa-java/examples/image-gallery/pom.xml.gz', which is also in package libopenjpa-java-doc 2.4.0-4
  Errors were encountered while processing:
   /tmp/apt-dpkg-install-NFPJRg/31-libopenjpa-java_2.4.2-4_all.deb


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libopenjpa-java-doc=2.4.0-4_libopenjpa-java=2.4.2-4.log.gz
Type: application/gzip
Size: 10757 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20180608/a711d530/attachment.gz>


More information about the pkg-java-maintainers mailing list