[php-maint] Bug#534621: php-xml-util and php-pear: error when trying to install together

Ralf Treinen treinen at free.fr
Thu Jun 25 20:42:27 UTC 2009


Package: php-pear,php-xml-util
Version: php-pear/5.2.10.dfsg.1-1
Version: php-xml-util/1.1.4-2
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2009-06-25
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!
  libkeyutils1 libkrb5support0 libk5crypto3 libkrb5-3 libgssapi-krb5-2
  libmagic1 libpcre3 libxml2 mime-support ucf php5-common php5-cli php-pear
  php-xml-util
Preconfiguring packages ...
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package libkeyutils1.
(Reading database ... 8204 files and directories currently installed.)
Unpacking libkeyutils1 (from .../libkeyutils1_1.2-10_amd64.deb) ...
Selecting previously deselected package libkrb5support0.
Unpacking libkrb5support0 (from .../libkrb5support0_1.7dfsg~beta3-1_amd64.deb) ...
Selecting previously deselected package libk5crypto3.
Unpacking libk5crypto3 (from .../libk5crypto3_1.7dfsg~beta3-1_amd64.deb) ...
Selecting previously deselected package libkrb5-3.
Unpacking libkrb5-3 (from .../libkrb5-3_1.7dfsg~beta3-1_amd64.deb) ...
Selecting previously deselected package libgssapi-krb5-2.
Unpacking libgssapi-krb5-2 (from .../libgssapi-krb5-2_1.7dfsg~beta3-1_amd64.deb) ...
Selecting previously deselected package libmagic1.
Unpacking libmagic1 (from .../libmagic1_5.03-1_amd64.deb) ...
Selecting previously deselected package libpcre3.
Unpacking libpcre3 (from .../libpcre3_7.8-2_amd64.deb) ...
Selecting previously deselected package libxml2.
Unpacking libxml2 (from .../libxml2_2.7.3.dfsg-1_amd64.deb) ...
Selecting previously deselected package mime-support.
Unpacking mime-support (from .../mime-support_3.46-1_all.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../archives/ucf_3.0018_all.deb) ...
Moving old data out of the way
Selecting previously deselected package php5-common.
Unpacking php5-common (from .../php5-common_5.2.10.dfsg.1-1_amd64.deb) ...
Selecting previously deselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.2.10.dfsg.1-1_amd64.deb) ...
Selecting previously deselected package php-pear.
Unpacking php-pear (from .../php-pear_5.2.10.dfsg.1-1_all.deb) ...
Selecting previously deselected package php-xml-util.
Unpacking php-xml-util (from .../php-xml-util_1.1.4-2_all.deb) ...
dpkg: error processing /var/cache/apt/archives/php-xml-util_1.1.4-2_all.deb (--unpack):
 trying to overwrite `/usr/share/php/XML/Util.php', which is also in package php-pear
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/php-xml-util_1.1.4-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is a serious bug as it makes installation fail. Possible
solutions are to have the two packages conflict, to rename the common
file in one of the two packages, or to remove the file from one
package and have this package depend on the other package. File
diversions or a Replace relation are another possibility.

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/share/php/.registry/xml_util.reg
  usr/share/php/XML/Util.php
  

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.





More information about the pkg-php-maint mailing list