[Syslog-ng-maintainers] Bug#869159: syslog-ng-mod-getent and syslog-ng-mod-basicfuncs-plus: error when trying to install together

Ralf Treinen treinen at free.fr
Fri Jul 21 07:17:15 BST 2017


Package: syslog-ng-mod-basicfuncs-plus,syslog-ng-mod-getent
Version: syslog-ng-mod-basicfuncs-plus/0.5.0-5
Version: syslog-ng-mod-getent/3.10.1-2
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2017-07-21
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 ...
(Reading database ... 11004 files and directories currently installed.)
Preparing to unpack .../libtext-charwidth-perl_0.04-7+b5_amd64.deb ...
Unpacking libtext-charwidth-perl (0.04-7+b5) over (0.04-7+b2) ...
Processing triggers for man-db (2.7.6.1-2) ...
dpkg: perl-modules: dependency problems, but removing anyway as you requested:
 perl depends on perl-modules (>= 5.18.2-2).

(Reading database ... 11008 files and directories currently installed.)
Removing perl-modules (5.18.2-7) ...
(Reading database ... 10196 files and directories currently installed.)
Preparing to unpack .../perl_5.24.1-7_amd64.deb ...
Unpacking perl (5.24.1-7) over (5.18.2-2) ...
Selecting previously unselected package perl-modules-5.24.
Preparing to unpack .../perl-modules-5.24_5.24.1-7_all.deb ...
Unpacking perl-modules-5.24 (5.24.1-7) ...
Selecting previously unselected package libdb5.3:amd64.
Preparing to unpack .../libdb5.3_5.3.28-13_amd64.deb ...
Unpacking libdb5.3:amd64 (5.3.28-13) ...
Selecting previously unselected package libperl5.24:amd64.
Preparing to unpack .../libperl5.24_5.24.1-7_amd64.deb ...
Unpacking libperl5.24:amd64 (5.24.1-7) ...
Preparing to unpack .../perl-base_5.24.1-7_amd64.deb ...
Unpacking perl-base (5.24.1-7) over (5.18.2-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for libc-bin (2.24-12) ...
Setting up perl-base (5.24.1-7) ...
(Reading database ... 11040 files and directories currently installed.)
Preparing to unpack .../liblocale-gettext-perl_1.07-3+b1_amd64.deb ...
Unpacking liblocale-gettext-perl (1.07-3+b1) over (1.05-7+b2) ...
Preparing to unpack .../libtext-iconv-perl_1.7-5+b4_amd64.deb ...
Unpacking libtext-iconv-perl (1.7-5+b4) over (1.7-5+b1) ...
Selecting previously unselected package libfdisk1:amd64.
Preparing to unpack .../libfdisk1_2.29.2-2_amd64.deb ...
Unpacking libfdisk1:amd64 (2.29.2-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for libc-bin (2.24-12) ...
Setting up libfdisk1:amd64 (2.29.2-2) ...
Processing triggers for libc-bin (2.24-12) ...
Selecting previously unselected package libsmartcols1:amd64.
(Reading database ... 11041 files and directories currently installed.)
Preparing to unpack .../libsmartcols1_2.29.2-2_amd64.deb ...
Unpacking libsmartcols1:amd64 (2.29.2-2) ...
Processing triggers for libc-bin (2.24-12) ...
Setting up libsmartcols1:amd64 (2.29.2-2) ...
Processing triggers for libc-bin (2.24-12) ...
Selecting previously unselected package libgcrypt20:amd64.
(Reading database ... 11047 files and directories currently installed.)
Preparing to unpack .../libgcrypt20_1.7.8-2_amd64.deb ...
Unpacking libgcrypt20:amd64 (1.7.8-2) ...
Processing triggers for libc-bin (2.24-12) ...
Setting up libgcrypt20:amd64 (1.7.8-2) ...
Processing triggers for libc-bin (2.24-12) ...
Selecting previously unselected package liblz4-1:amd64.
(Reading database ... 11057 files and directories currently installed.)
Preparing to unpack .../liblz4-1_0.0~r131-2+b1_amd64.deb ...
Unpacking liblz4-1:amd64 (0.0~r131-2+b1) ...
Processing triggers for libc-bin (2.24-12) ...
Setting up liblz4-1:amd64 (0.0~r131-2+b1) ...
Processing triggers for libc-bin (2.24-12) ...
Selecting previously unselected package libsystemd0:amd64.
(Reading database ... 11063 files and directories currently installed.)
Preparing to unpack .../libsystemd0_234-2_amd64.deb ...
Unpacking libsystemd0:amd64 (234-2) ...
Processing triggers for libc-bin (2.24-12) ...
Setting up libsystemd0:amd64 (234-2) ...
Processing triggers for libc-bin (2.24-12) ...
(Reading database ... 11068 files and directories currently installed.)
Preparing to unpack .../sysvinit-utils_2.88dsf-59.9_amd64.deb ...
Unpacking sysvinit-utils (2.88dsf-59.9) over (2.88dsf-51) ...
Replacing files in old package initscripts (2.88dsf-59) ...
Preparing to unpack .../init-system-helpers_1.49_all.deb ...
Unpacking init-system-helpers (1.49) over (1.21) ...
Replacing files in old package sysv-rc (2.88dsf-51) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up init-system-helpers (1.49) ...
(Reading database ... 11060 files and directories currently installed.)
Preparing to unpack .../util-linux_2.29.2-2_amd64.deb ...
Unpacking util-linux (2.29.2-2) over (2.20.1-5.11) ...
Replacing files in old package initscripts (2.88dsf-59) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up util-linux (2.29.2-2) ...
Installing new version of config file /etc/init.d/hwclock.sh ...
update-alternatives: warning: alternative /usr/bin/pg (part of link group pager) doesn't exist; removing from list of alternatives
(Reading database ... 11194 files and directories currently installed.)
Removing rsyslog (7.4.8-1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
Processing triggers for man-db (2.7.6.1-2) ...
Selecting previously unselected package libevtlog0:amd64.
(Reading database ... 11149 files and directories currently installed.)
Preparing to unpack .../libevtlog0_0.2.12-7+b2_amd64.deb ...
Unpacking libevtlog0:amd64 (0.2.12-7+b2) ...
Selecting previously unselected package libnet1:amd64.
Preparing to unpack .../libnet1_1.1.6+dfsg-3_amd64.deb ...
Unpacking libnet1:amd64 (1.1.6+dfsg-3) ...
Selecting previously unselected package libssl1.1:amd64.
Preparing to unpack .../libssl1.1_1.1.0f-3_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.0f-3) ...
Selecting previously unselected package libwrap0:amd64.
Preparing to unpack .../libwrap0_7.6.q-26_amd64.deb ...
Unpacking libwrap0:amd64 (7.6.q-26) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.2.1-6_amd64.deb ...
Unpacking libffi6:amd64 (3.2.1-6) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../libglib2.0-0_2.52.3-1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.52.3-1) ...
Selecting previously unselected package libivykis0:amd64.
Preparing to unpack .../libivykis0_0.36.2-4_amd64.deb ...
Unpacking libivykis0:amd64 (0.36.2-4) ...
Selecting previously unselected package syslog-ng-mod-journal.
Preparing to unpack .../syslog-ng-mod-journal_3.10.1-2_amd64.deb ...
Unpacking syslog-ng-mod-journal (3.10.1-2) ...
Selecting previously unselected package syslog-ng-core.
Preparing to unpack .../syslog-ng-core_3.10.1-2_amd64.deb ...
Unpacking syslog-ng-core (3.10.1-2) ...
Selecting previously unselected package syslog-ng-mod-basicfuncs-plus.
Preparing to unpack .../syslog-ng-mod-basicfuncs-plus_0.5.0-5_amd64.deb ...
Unpacking syslog-ng-mod-basicfuncs-plus (0.5.0-5) ...
Selecting previously unselected package syslog-ng-mod-getent.
Preparing to unpack .../syslog-ng-mod-getent_3.10.1-2_amd64.deb ...
Unpacking syslog-ng-mod-getent (3.10.1-2) ...
dpkg: error processing archive /var/cache/apt/archives/syslog-ng-mod-getent_3.10.1-2_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/syslog-ng/3.10/libtfgetent.so', which is also in package syslog-ng-mod-basicfuncs-plus 0.5.0-5
Processing triggers for libc-bin (2.24-12) ...
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/syslog-ng-mod-getent_3.10.1-2_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/syslog-ng/3.10/libtfgetent.so

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://qa.debian.org/dose/file-overwrites.html.




More information about the Syslog-ng-maintainers mailing list