Bug#578032: wdg-html-validator and xmlbeans: error when trying to install together

Ralf Treinen treinen at free.fr
Fri Apr 16 08:23:10 UTC 2010


Package: xmlbeans,wdg-html-validator
Version: xmlbeans/2.5.0-2
Version: wdg-html-validator/1.6.02-7
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2010-04-16
Architecture: amd64
Distribution: sid

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:


WARNING: The following packages cannot be authenticated!
  classpath-common openjdk-6-jre-lib ca-certificates-java tzdata-java
  java-common libavahi-common-data libavahi-common3 libdbus-1-3
  libavahi-client3 libcups2 liblcms1 libjpeg62 libnspr4-0d libnss3-1d
  libfreetype6 openjdk-6-jre-headless default-jre-headless liburi-perl
  libhtml-tagset-perl libhtml-parser-perl libhtml-tree-perl libio-string-perl
  libi18n-charset-perl libjconv2 libjconv-bin libosp5 libunicode-string-perl
  libunicode-map8-perl libwww-perl libxml-commons-resolver1.1-java
  libxmlbeans-java sgml-base opensp xml-core sgml-data w3c-dtd-xhtml
  wdg-html-validator xmlbeans

Extracting templates from packages: 78%
Extracting templates from packages: 100%
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package classpath-common.
(Reading database ... 12171 files and directories currently installed.)
Unpacking classpath-common (from .../classpath-common_2%3a0.98-6_all.deb) ...
Selecting previously deselected package openjdk-6-jre-lib.
Unpacking openjdk-6-jre-lib (from .../openjdk-6-jre-lib_6b18-1.8-1_all.deb) ...
Selecting previously deselected package ca-certificates-java.
Unpacking ca-certificates-java (from .../ca-certificates-java_20100412_all.deb) ...
Selecting previously deselected package tzdata-java.
Unpacking tzdata-java (from .../tzdata-java_2010h-1_all.deb) ...
Selecting previously deselected package java-common.
Unpacking java-common (from .../java-common_0.35_all.deb) ...
Selecting previously deselected package libavahi-common-data.
Unpacking libavahi-common-data (from .../libavahi-common-data_0.6.25-3_amd64.deb) ...
Selecting previously deselected package libavahi-common3.
Unpacking libavahi-common3 (from .../libavahi-common3_0.6.25-3_amd64.deb) ...
Selecting previously deselected package libdbus-1-3.
Unpacking libdbus-1-3 (from .../libdbus-1-3_1.2.24-1_amd64.deb) ...
Selecting previously deselected package libavahi-client3.
Unpacking libavahi-client3 (from .../libavahi-client3_0.6.25-3_amd64.deb) ...
Selecting previously deselected package libcups2.
Unpacking libcups2 (from .../libcups2_1.4.3-1_amd64.deb) ...
Selecting previously deselected package liblcms1.
Unpacking liblcms1 (from .../liblcms1_1.18.dfsg-1.2+b1_amd64.deb) ...
Selecting previously deselected package libjpeg62.
Unpacking libjpeg62 (from .../libjpeg62_6b-16.1_amd64.deb) ...
Selecting previously deselected package libnspr4-0d.
Unpacking libnspr4-0d (from .../libnspr4-0d_4.8.4-1_amd64.deb) ...
Selecting previously deselected package libnss3-1d.
Unpacking libnss3-1d (from .../libnss3-1d_3.12.6-2_amd64.deb) ...
Selecting previously deselected package libfreetype6.
Unpacking libfreetype6 (from .../libfreetype6_2.3.11-1_amd64.deb) ...
Selecting previously deselected package openjdk-6-jre-headless.
Unpacking openjdk-6-jre-headless (from .../openjdk-6-jre-headless_6b18-1.8-1_amd64.deb) ...
Selecting previously deselected package default-jre-headless.
Unpacking default-jre-headless (from .../default-jre-headless_1.6-35_amd64.deb) ...
Selecting previously deselected package liburi-perl.
Unpacking liburi-perl (from .../liburi-perl_1.54-1_all.deb) ...
Selecting previously deselected package libhtml-tagset-perl.
Unpacking libhtml-tagset-perl (from .../libhtml-tagset-perl_3.20-2_all.deb) ...
Selecting previously deselected package libhtml-parser-perl.
Unpacking libhtml-parser-perl (from .../libhtml-parser-perl_3.65-1_amd64.deb) ...
Selecting previously deselected package libhtml-tree-perl.
Unpacking libhtml-tree-perl (from .../libhtml-tree-perl_3.23-2_all.deb) ...
Selecting previously deselected package libio-string-perl.
Unpacking libio-string-perl (from .../libio-string-perl_1.08-2_all.deb) ...
Selecting previously deselected package libi18n-charset-perl.
Unpacking libi18n-charset-perl (from .../libi18n-charset-perl_1.394-2_all.deb) ...
Selecting previously deselected package libjconv2.
Unpacking libjconv2 (from .../libjconv2_2.8-6+b1_amd64.deb) ...
Selecting previously deselected package libjconv-bin.
Unpacking libjconv-bin (from .../libjconv-bin_2.8-6+b1_amd64.deb) ...
Selecting previously deselected package libosp5.
Unpacking libosp5 (from .../libosp5_1.5.2-8_amd64.deb) ...
Selecting previously deselected package libunicode-string-perl.
Unpacking libunicode-string-perl (from .../libunicode-string-perl_2.09-3+b1_amd64.deb) ...
Selecting previously deselected package libunicode-map8-perl.
Unpacking libunicode-map8-perl (from .../libunicode-map8-perl_0.13+dfsg-3_amd64.deb) ...
Selecting previously deselected package libwww-perl.
Unpacking libwww-perl (from .../libwww-perl_5.834-1_all.deb) ...
Selecting previously deselected package libxml-commons-resolver1.1-java.
Unpacking libxml-commons-resolver1.1-java (from .../libxml-commons-resolver1.1-java_1.2-5_all.deb) ...
Selecting previously deselected package libxmlbeans-java.
Unpacking libxmlbeans-java (from .../libxmlbeans-java_2.5.0-2_all.deb) ...
Selecting previously deselected package sgml-base.
Unpacking sgml-base (from .../sgml-base_1.26_all.deb) ...
Selecting previously deselected package opensp.
Unpacking opensp (from .../opensp_1.5.2-8_amd64.deb) ...
Selecting previously deselected package xml-core.
Unpacking xml-core (from .../archives/xml-core_0.13_all.deb) ...
Selecting previously deselected package sgml-data.
Unpacking sgml-data (from .../sgml-data_2.0.4_all.deb) ...
Selecting previously deselected package w3c-dtd-xhtml.
Unpacking w3c-dtd-xhtml (from .../w3c-dtd-xhtml_1.1-5_all.deb) ...
Selecting previously deselected package wdg-html-validator.
Unpacking wdg-html-validator (from .../wdg-html-validator_1.6.2-7_all.deb) ...
Selecting previously deselected package xmlbeans.
Unpacking xmlbeans (from .../xmlbeans_2.5.0-2_all.deb) ...
dpkg: error processing /var/cache/apt/archives/xmlbeans_2.5.0-2_all.deb (--unpack):
 trying to overwrite '/usr/bin/validate', which is also in package wdg-html-validator 0:1.6.2-7
Processing triggers for install-info ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/xmlbeans_2.5.0-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is a serious bug as it makes installation fail, and violates
sections 7.6.1 and 10.1 of the policy. An optimal solution would
consist in only one of the packages installing that file, and renaming
or removing the file in the other package. Depending on the
circumstances you might also consider Replace relations or file
diversions. If the conflicting situation cannot be resolved then, as a
last resort, the two packages have to declare a mutual
Conflict. Please take into account that Replaces, Conflicts and
diversions should only be used when packages provide different
implementations for the same functionality.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

  /usr/bin/validate

This bug is assigned to both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package.

-Ralf.

PS: for more information about the detection of file overwrite errors
of this kind see http://edos.debian.net/file-overwrites/.





More information about the pkg-java-maintainers mailing list