[Openstack-devel] Bug#722882: python-openstack.nose-plugin and python-openstack-common: error when trying to install together

Ralf Treinen treinen at free.fr
Sat Sep 14 07:48:24 UTC 2013


Package: python-openstack-common,python-openstack.nose-plugin
Version: python-openstack-common/0.1+git20120203-1
Version: python-openstack.nose-plugin/0.3-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2013-09-14
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 libffi6 libxslt1.1 libpython2.7-minimal python2.7-minimal
  mime-support libpython2.7-stdlib python2.7 python-minimal libpython-stdlib
  python python-pkg-resources python-nose python-colorama python-termcolor
  python-openstack.nose-plugin python-support libjs-jquery libjs-underscore
  libjs-sphinxdoc python-setuptools pep8 python-logilab-common
  python-logilab-astng pylint python-dns python-greenlet python-eventlet
  python-formencode python-lxml python-paste python-pastedeploy
  python-pastescript python-repoze.lru python-routes python-webob
  python-webtest python-mock python-openstack-common

Extracting templates from packages: 75%
Extracting templates from packages: 100%
Authentication warning overridden.
Selecting previously unselected package libxml2:amd64.
(Reading database ... 10882 files and directories currently installed.)
Unpacking libxml2:amd64 (from .../libxml2_2.9.1+dfsg1-3_amd64.deb) ...
Selecting previously unselected package libexpat1:amd64.
Unpacking libexpat1:amd64 (from .../libexpat1_2.1.0-4_amd64.deb) ...
Selecting previously unselected package libffi6:amd64.
Unpacking libffi6:amd64 (from .../libffi6_3.0.13-4_amd64.deb) ...
Selecting previously unselected package libxslt1.1:amd64.
Unpacking libxslt1.1:amd64 (from .../libxslt1.1_1.1.28-2_amd64.deb) ...
Selecting previously unselected package libpython2.7-minimal.
Unpacking libpython2.7-minimal (from .../libpython2.7-minimal_2.7.5-7_amd64.deb) ...
Selecting previously unselected package python2.7-minimal.
Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.5-7_amd64.deb) ...
Selecting previously unselected package mime-support.
Unpacking mime-support (from .../mime-support_3.54_all.deb) ...
Selecting previously unselected package libpython2.7-stdlib.
Unpacking libpython2.7-stdlib (from .../libpython2.7-stdlib_2.7.5-7_amd64.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.5-7_amd64.deb) ...
Selecting previously unselected package python-minimal.
Unpacking python-minimal (from .../python-minimal_2.7.5-5_amd64.deb) ...
Selecting previously unselected package libpython-stdlib:amd64.
Unpacking libpython-stdlib:amd64 (from .../libpython-stdlib_2.7.5-5_amd64.deb) ...
Selecting previously unselected package python.
Unpacking python (from .../python_2.7.5-5_amd64.deb) ...
Selecting previously unselected package python-pkg-resources.
Unpacking python-pkg-resources (from .../python-pkg-resources_0.6.49-2_all.deb) ...
Selecting previously unselected package python-nose.
Unpacking python-nose (from .../python-nose_1.3.0-2_all.deb) ...
Selecting previously unselected package python-colorama.
Unpacking python-colorama (from .../python-colorama_0.2.4-1.1_all.deb) ...
Selecting previously unselected package python-termcolor.
Unpacking python-termcolor (from .../python-termcolor_1.1.0-1_all.deb) ...
Selecting previously unselected package python-openstack.nose-plugin.
Unpacking python-openstack.nose-plugin (from .../python-openstack.nose-plugin_0.3-1_all.deb) ...
Selecting previously unselected package python-support.
Unpacking python-support (from .../python-support_1.0.15_all.deb) ...
Selecting previously unselected package libjs-jquery.
Unpacking libjs-jquery (from .../libjs-jquery_1.7.2+dfsg-3_all.deb) ...
Selecting previously unselected package libjs-underscore.
Unpacking libjs-underscore (from .../libjs-underscore_1.4.4-2_all.deb) ...
Selecting previously unselected package libjs-sphinxdoc.
Unpacking libjs-sphinxdoc (from .../libjs-sphinxdoc_1.1.3+dfsg-8_all.deb) ...
Selecting previously unselected package python-setuptools.
Unpacking python-setuptools (from .../python-setuptools_0.6.49-2_all.deb) ...
Selecting previously unselected package pep8.
Unpacking pep8 (from .../archives/pep8_1.4.6-1_all.deb) ...
Selecting previously unselected package python-logilab-common.
Unpacking python-logilab-common (from .../python-logilab-common_0.59.1-1_all.deb) ...
Selecting previously unselected package python-logilab-astng.
Unpacking python-logilab-astng (from .../python-logilab-astng_0.23.1-1_all.deb) ...
Selecting previously unselected package pylint.
Unpacking pylint (from .../pylint_0.25.1-1_all.deb) ...
Selecting previously unselected package python-dns.
Unpacking python-dns (from .../python-dns_2.3.6-2_all.deb) ...
Selecting previously unselected package python-greenlet.
Unpacking python-greenlet (from .../python-greenlet_0.4.0-2_amd64.deb) ...
Selecting previously unselected package python-eventlet.
Unpacking python-eventlet (from .../python-eventlet_0.13.0-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-lxml.
Unpacking python-lxml (from .../python-lxml_3.2.0-1+b1_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-3_all.deb) ...
Selecting previously unselected package python-pastescript.
Unpacking python-pastescript (from .../python-pastescript_1.7.5-3_all.deb) ...
Selecting previously unselected package python-repoze.lru.
Unpacking python-repoze.lru (from .../python-repoze.lru_0.6-3_all.deb) ...
Selecting previously unselected package python-routes.
Unpacking python-routes (from .../python-routes_1.13-2_all.deb) ...
Selecting previously unselected package python-webob.
Unpacking python-webob (from .../python-webob_1.2.3-4_all.deb) ...
Selecting previously unselected package python-webtest.
Unpacking python-webtest (from .../python-webtest_1.3.4-1_all.deb) ...
Selecting previously unselected package python-mock.
Unpacking python-mock (from .../python-mock_1.0.1-2_all.deb) ...
Selecting previously unselected package python-openstack-common.
Unpacking python-openstack-common (from .../python-openstack-common_0.1+git20120203-1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/python-openstack-common_0.1+git20120203-1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/pyshared/openstack/__init__.py', which is also in package python-openstack.nose-plugin 0.3-1
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/python-openstack-common_0.1+git20120203-1_amd64.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.7/dist-packages/openstack/__init__.py
  /usr/share/pyshared/openstack/__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