[pkg-bacula-devel] Bug#767058: bareos-tools and bacula-director-common: error when trying to install together

Ralf Treinen treinen at free.fr
Tue Oct 28 07:54:55 UTC 2014


Package: bacula-director-common,bareos-tools
Version: bacula-director-common/5.2.6+dfsg-9.3
Version: bareos-tools/14.2.1+20141017gitc6c5b56-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2014-10-28
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:


Preconfiguring packages ...
Selecting previously unselected package libdb5.3:amd64.
(Reading database ... 10889 files and directories currently installed.)
Preparing to unpack .../libdb5.3_5.3.28-6_amd64.deb ...
Unpacking libdb5.3:amd64 (5.3.28-6) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a6.0.0+dfsg-6_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Selecting previously unselected package libnettle4:amd64.
Preparing to unpack .../libnettle4_2.7.1-3_amd64.deb ...
Unpacking libnettle4:amd64 (2.7.1-3) ...
Selecting previously unselected package libhogweed2:amd64.
Preparing to unpack .../libhogweed2_2.7.1-3_amd64.deb ...
Unpacking libhogweed2:amd64 (2.7.1-3) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.1-2_amd64.deb ...
Unpacking libffi6:amd64 (3.1-2) ...
Preparing to unpack .../libp11-kit0_0.20.7-1_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.20.7-1) over (0.18.5-3) ...
Selecting previously unselected package libtasn1-6:amd64.
Preparing to unpack .../libtasn1-6_4.2-2_amd64.deb ...
Unpacking libtasn1-6:amd64 (4.2-2) ...
Selecting previously unselected package libgnutls-deb0-28:amd64.
Preparing to unpack .../libgnutls-deb0-28_3.3.8-3_amd64.deb ...
Unpacking libgnutls-deb0-28:amd64 (3.3.8-3) ...
Selecting previously unselected package liblockfile-bin.
Preparing to unpack .../liblockfile-bin_1.09-6_amd64.deb ...
Unpacking liblockfile-bin (1.09-6) ...
Selecting previously unselected package liblockfile1:amd64.
Preparing to unpack .../liblockfile1_1.09-6_amd64.deb ...
Unpacking liblockfile1:amd64 (1.09-6) ...
Selecting previously unselected package libwrap0:amd64.
Preparing to unpack .../libwrap0_7.6.q-25_amd64.deb ...
Unpacking libwrap0:amd64 (7.6.q-25) ...
Selecting previously unselected package libpython2.7-minimal:amd64.
Preparing to unpack .../libpython2.7-minimal_2.7.8-11_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.8-11) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../mime-support_3.57_all.deb ...
Unpacking mime-support (3.57) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../libexpat1_2.1.0-6_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-6) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../libpython2.7-stdlib_2.7.8-11_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.8-11) ...
Selecting previously unselected package libpython2.7:amd64.
Preparing to unpack .../libpython2.7_2.7.8-11_amd64.deb ...
Unpacking libpython2.7:amd64 (2.7.8-11) ...
Selecting previously unselected package bacula-common.
Preparing to unpack .../bacula-common_5.2.6+dfsg-9.3_amd64.deb ...
Adding user 'bacula'... Ok.
Unpacking bacula-common (5.2.6+dfsg-9.3) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.1j-1_amd64.deb ...
Unpacking openssl (1.0.1j-1) ...
Selecting previously unselected package liblzo2-2:amd64.
Preparing to unpack .../liblzo2-2_2.08-1_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.08-1) ...
Selecting previously unselected package bareos-common.
Preparing to unpack .../bareos-common_14.2.1+20141017gitc6c5b56-1_amd64.deb ...
Unpacking bareos-common (14.2.1+20141017gitc6c5b56-1) ...
dpkg: error processing archive /var/cache/apt/archives/bareos-common_14.2.1+20141017gitc6c5b56-1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/bsmtp.1.gz', which is also in package bacula-common 5.2.6+dfsg-9.3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package bareos-tools.
Preparing to unpack .../bareos-tools_14.2.1+20141017gitc6c5b56-1_amd64.deb ...
Unpacking bareos-tools (14.2.1+20141017gitc6c5b56-1) ...
Selecting previously unselected package libbsd0:amd64.
Preparing to unpack .../libbsd0_0.7.0-2_amd64.deb ...
Unpacking libbsd0:amd64 (0.7.0-2) ...
Selecting previously unselected package exim4-config.
Preparing to unpack .../exim4-config_4.84-3_all.deb ...
Unpacking exim4-config (4.84-3) ...
Selecting previously unselected package exim4-base.
Preparing to unpack .../exim4-base_4.84-3_amd64.deb ...
Unpacking exim4-base (4.84-3) ...
Selecting previously unselected package exim4-daemon-light.
Preparing to unpack .../exim4-daemon-light_4.84-3_amd64.deb ...
Unpacking exim4-daemon-light (4.84-3) ...
Selecting previously unselected package bsd-mailx.
Preparing to unpack .../bsd-mailx_8.1.2-0.20140825cvs-1_amd64.deb ...
Unpacking bsd-mailx (8.1.2-0.20140825cvs-1) ...
Selecting previously unselected package bacula-director-common.
Preparing to unpack .../bacula-director-common_5.2.6+dfsg-9.3_amd64.deb ...
Unpacking bacula-director-common (5.2.6+dfsg-9.3) ...
dpkg: error processing archive /var/cache/apt/archives/bacula-director-common_5.2.6+dfsg-9.3_amd64.deb (--unpack):
 trying to overwrite '/usr/sbin/bregex', which is also in package bareos-tools 14.2.1+20141017gitc6c5b56-1
Processing triggers for man-db (2.7.0.2-2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/bareos-common_14.2.1+20141017gitc6c5b56-1_amd64.deb
 /var/cache/apt/archives/bacula-director-common_5.2.6+dfsg-9.3_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/sbin/bregex
  /usr/sbin/bwild

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 pkg-bacula-devel mailing list