[Openstack-devel] Bug#671918: python-quantum and python-multipartposthandler: error when trying to install together

Ralf Treinen treinen at free.fr
Tue May 8 06:28:18 UTC 2012


Package: python-multipartposthandler,python-quantum
Version: python-multipartposthandler/0.1.0-2
Version: python-quantum/2012.1-2
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2012-05-08
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!
  libxml2 libexpat1 libxslt1.1 mime-support python2.7-minimal python2.7
  python-minimal python python-support libjs-jquery libjs-underscore
  libjs-sphinxdoc python-dns python-greenlet python-eventlet
  python-pkg-resources python-formencode python-gflags python-lxml
  python-paste python-pastedeploy python-repoze.lru python-routes python-mox
  python-simplejson python-sqlalchemy python-webob quantum-common
  python-quantumclient python-quantum python-multipartposthandler

Extracting templates from packages: 96%
Extracting templates from packages: 100%
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package libxml2:amd64.
(Reading database ... 10559 files and directories currently installed.)
Unpacking libxml2:amd64 (from .../libxml2_2.7.8.dfsg-9_amd64.deb) ...
Selecting previously unselected package libexpat1:amd64.
Unpacking libexpat1:amd64 (from .../libexpat1_2.1.0-1_amd64.deb) ...
Selecting previously unselected package libxslt1.1:amd64.
Unpacking libxslt1.1:amd64 (from .../libxslt1.1_1.1.26-11_amd64.deb) ...
Selecting previously unselected package mime-support.
Unpacking mime-support (from .../mime-support_3.52-1_all.deb) ...
Selecting previously unselected package python2.7-minimal.
Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.3~rc2-2.1_amd64.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.3~rc2-2.1_amd64.deb) ...
Selecting previously unselected package python-minimal.
Unpacking python-minimal (from .../python-minimal_2.7.2-10_all.deb) ...
Selecting previously unselected package python.
Unpacking python (from .../python_2.7.2-10_all.deb) ...
Selecting previously unselected package python-support.
Unpacking python-support (from .../python-support_1.0.14_all.deb) ...
Selecting previously unselected package libjs-jquery.
Unpacking libjs-jquery (from .../libjs-jquery_1.7.2-1_all.deb) ...
Selecting previously unselected package libjs-underscore.
Unpacking libjs-underscore (from .../libjs-underscore_1.3.3-1_all.deb) ...
Selecting previously unselected package libjs-sphinxdoc.
Unpacking libjs-sphinxdoc (from .../libjs-sphinxdoc_1.1.3+dfsg-3_all.deb) ...
Selecting previously unselected package python-dns.
Unpacking python-dns (from .../python-dns_2.3.6-1_all.deb) ...
Selecting previously unselected package python-greenlet.
Unpacking python-greenlet (from .../python-greenlet_0.3.3-1_amd64.deb) ...
Selecting previously unselected package python-eventlet.
Unpacking python-eventlet (from .../python-eventlet_0.9.16-2_all.deb) ...
Selecting previously unselected package python-pkg-resources.
Unpacking python-pkg-resources (from .../python-pkg-resources_0.6.24-1_all.deb) ...
Selecting previously unselected package python-formencode.
Unpacking python-formencode (from .../python-formencode_1.2.4-2_all.deb) ...
Selecting previously unselected package python-gflags.
Unpacking python-gflags (from .../python-gflags_1.5.1-1_all.deb) ...
Selecting previously unselected package python-lxml.
Unpacking python-lxml (from .../python-lxml_2.3.2-1_amd64.deb) ...
Selecting previously unselected package python-paste.
Unpacking python-paste (from .../python-paste_1.7.5.1-4.1_all.deb) ...
Selecting previously unselected package python-pastedeploy.
Unpacking python-pastedeploy (from .../python-pastedeploy_1.5.0-2_all.deb) ...
Selecting previously unselected package python-repoze.lru.
Unpacking python-repoze.lru (from .../python-repoze.lru_0.5-1_all.deb) ...
Selecting previously unselected package python-routes.
Unpacking python-routes (from .../python-routes_1.13-1_all.deb) ...
Selecting previously unselected package python-mox.
Unpacking python-mox (from .../python-mox_0.5.3-1_all.deb) ...
Selecting previously unselected package python-simplejson.
Unpacking python-simplejson (from .../python-simplejson_2.5.0-1_amd64.deb) ...
Selecting previously unselected package python-sqlalchemy.
Unpacking python-sqlalchemy (from .../python-sqlalchemy_0.7.7-1_all.deb) ...
Selecting previously unselected package python-webob.
Unpacking python-webob (from .../python-webob_1.1.1-1_all.deb) ...
Selecting previously unselected package quantum-common.
Unpacking quantum-common (from .../quantum-common_2012.1-1_all.deb) ...
Selecting previously unselected package python-quantumclient.
Unpacking python-quantumclient (from .../python-quantumclient_2012.1-1_all.deb) ...
Selecting previously unselected package python-quantum.
Unpacking python-quantum (from .../python-quantum_2012.1-2_all.deb) ...
Selecting previously unselected package python-multipartposthandler.
Unpacking python-multipartposthandler (from .../python-multipartposthandler_0.1.0-2_all.deb) ...
dpkg: error processing /var/cache/apt/archives/python-multipartposthandler_0.1.0-2_all.deb (--unpack):
 trying to overwrite '/usr/share/pyshared/doc/__init__.py', which is also in package python-quantum 2012.1-2
configured to not write apport reports
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/python-multipartposthandler_0.1.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/lib/python2.6/dist-packages/doc/__init__.py
  /usr/lib/python2.7/dist-packages/doc/__init__.py
  /usr/share/pyshared/doc/__init__.py

This bug has been filed against 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. You may then
also register in the BTS that the other package is affected by the bug.

-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 Openstack-devel mailing list