[DRE-maint] Bug#781570: ruby-version-sorter and rake: error when trying to install together
Ralf Treinen
treinen at free.fr
Tue Mar 31 06:15:20 UTC 2015
Package: rake,ruby-version-sorter
Version: rake/10.3.2-2
Version: ruby-version-sorter/2.0.0+dfsg-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite
Date: 2015-03-31
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 libffi6:amd64.
(Reading database ... 10938 files and directories currently installed.)
Preparing to unpack .../libffi6_3.1-2+b2_amd64.deb ...
Unpacking libffi6:amd64 (3.1-2+b2) ...
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 libyaml-0-2:amd64.
Preparing to unpack .../libyaml-0-2_0.1.6-3_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.1.6-3) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.1k-3_amd64.deb ...
Unpacking openssl (1.0.1k-3) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20141019_all.deb ...
Unpacking ca-certificates (20141019) ...
Selecting previously unselected package rubygems-integration.
Preparing to unpack .../rubygems-integration_1.8_all.deb ...
Unpacking rubygems-integration (1.8) ...
Selecting previously unselected package libruby2.1:amd64.
Preparing to unpack .../libruby2.1_2.1.5-1_amd64.deb ...
Unpacking libruby2.1:amd64 (2.1.5-1) ...
Selecting previously unselected package ruby2.1.
Preparing to unpack .../ruby2.1_2.1.5-1_amd64.deb ...
Unpacking ruby2.1 (2.1.5-1) ...
Selecting previously unselected package ruby.
Preparing to unpack .../ruby_1%3a2.1.5_all.deb ...
Unpacking ruby (1:2.1.5) ...
Selecting previously unselected package rake.
Preparing to unpack .../archives/rake_10.3.2-2_all.deb ...
Unpacking rake (10.3.2-2) ...
Selecting previously unselected package ruby-version-sorter.
Preparing to unpack .../ruby-version-sorter_2.0.0+dfsg-1_amd64.deb ...
Unpacking ruby-version-sorter (2.0.0+dfsg-1) ...
dpkg: error processing archive /var/cache/apt/archives/ruby-version-sorter_2.0.0+dfsg-1_amd64.deb (--unpack):
trying to overwrite '/usr/bin/rake', which is also in package rake 10.3.2-2
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
/var/cache/apt/archives/ruby-version-sorter_2.0.0+dfsg-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/bin/rake
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-ruby-extras-maintainers
mailing list