[DRE-maint] Bug#572036: libnet-ssh2-ruby1.9.1 and libnet-ssh-ruby1.9.1: error when trying to install together

Ralf Treinen treinen at free.fr
Mon Mar 1 07:29:24 UTC 2010


Package: libnet-ssh-ruby1.9.1,libnet-ssh2-ruby1.9.1
Version: libnet-ssh-ruby1.9.1/2.0.15-1
Version: libnet-ssh2-ruby1.9.1/2.0.15-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2010-02-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:


WARNING: The following packages cannot be authenticated!
  libruby1.9.1 libopenssl-ruby1.9.1 libnet-ssh-ruby1.9.1 ruby1.9.1
  libnet-ssh2-ruby1.9.1
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407727
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407760
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5406857
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package libruby1.9.1.
(Reading database ... 12294 files and directories currently installed.)
Unpacking libruby1.9.1 (from .../libruby1.9.1_1.9.1.378-1_amd64.deb) ...
Selecting previously deselected package libopenssl-ruby1.9.1.
Unpacking libopenssl-ruby1.9.1 (from .../libopenssl-ruby1.9.1_1.9.1.378-1_amd64.deb) ...
Selecting previously deselected package libnet-ssh-ruby1.9.1.
Unpacking libnet-ssh-ruby1.9.1 (from .../libnet-ssh-ruby1.9.1_2.0.15-1_all.deb) ...
Selecting previously deselected package ruby1.9.1.
Unpacking ruby1.9.1 (from .../ruby1.9.1_1.9.1.378-1_amd64.deb) ...
Selecting previously deselected package libnet-ssh2-ruby1.9.1.
Unpacking libnet-ssh2-ruby1.9.1 (from .../libnet-ssh2-ruby1.9.1_2.0.15-1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/libnet-ssh2-ruby1.9.1_2.0.15-1_all.deb (--unpack):
 trying to overwrite '/usr/lib/ruby/1.9.1/net/ssh.rb', which is also in package libnet-ssh-ruby1.9.1 0:2.0.15-1
Processing triggers for man-db ...
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407727
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407760
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5406857
Errors were encountered while processing:
 /var/cache/apt/archives/libnet-ssh2-ruby1.9.1_2.0.15-1_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/ruby/1.9.1/net/ssh.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/agent.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/constants.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/key_manager.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/methods/abstract.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/methods/hostbased.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/methods/keyboard_interactive.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/methods/password.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/methods/publickey.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/pageant.rb
  /usr/lib/ruby/1.9.1/net/ssh/authentication/session.rb
  /usr/lib/ruby/1.9.1/net/ssh/buffer.rb
  /usr/lib/ruby/1.9.1/net/ssh/buffered_io.rb
  /usr/lib/ruby/1.9.1/net/ssh/config.rb
  /usr/lib/ruby/1.9.1/net/ssh/connection/channel.rb
  /usr/lib/ruby/1.9.1/net/ssh/connection/constants.rb
  /usr/lib/ruby/1.9.1/net/ssh/connection/session.rb
  /usr/lib/ruby/1.9.1/net/ssh/connection/term.rb
  /usr/lib/ruby/1.9.1/net/ssh/errors.rb
  /usr/lib/ruby/1.9.1/net/ssh/key_factory.rb
  /usr/lib/ruby/1.9.1/net/ssh/known_hosts.rb
  /usr/lib/ruby/1.9.1/net/ssh/loggable.rb
  /usr/lib/ruby/1.9.1/net/ssh/packet.rb
  /usr/lib/ruby/1.9.1/net/ssh/prompt.rb
  /usr/lib/ruby/1.9.1/net/ssh/proxy/errors.rb
  /usr/lib/ruby/1.9.1/net/ssh/proxy/http.rb
  /usr/lib/ruby/1.9.1/net/ssh/proxy/socks4.rb
  /usr/lib/ruby/1.9.1/net/ssh/proxy/socks5.rb
  /usr/lib/ruby/1.9.1/net/ssh/ruby_compat.rb
  /usr/lib/ruby/1.9.1/net/ssh/service/forward.rb
  /usr/lib/ruby/1.9.1/net/ssh/test.rb
  /usr/lib/ruby/1.9.1/net/ssh/test/channel.rb
  /usr/lib/ruby/1.9.1/net/ssh/test/extensions.rb
  /usr/lib/ruby/1.9.1/net/ssh/test/kex.rb
  /usr/lib/ruby/1.9.1/net/ssh/test/local_packet.rb
  /usr/lib/ruby/1.9.1/net/ssh/test/packet.rb
  /usr/lib/ruby/1.9.1/net/ssh/test/remote_packet.rb
  /usr/lib/ruby/1.9.1/net/ssh/test/script.rb
  /usr/lib/ruby/1.9.1/net/ssh/test/socket.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/algorithms.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/cipher_factory.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/constants.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/hmac.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/hmac/abstract.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/hmac/md5.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/hmac/md5_96.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/hmac/none.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/hmac/sha1.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/hmac/sha1_96.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/identity_cipher.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/kex.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/openssl.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/packet_stream.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/server_version.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/session.rb
  /usr/lib/ruby/1.9.1/net/ssh/transport/state.rb
  /usr/lib/ruby/1.9.1/net/ssh/verifiers/lenient.rb
  /usr/lib/ruby/1.9.1/net/ssh/verifiers/null.rb
  /usr/lib/ruby/1.9.1/net/ssh/verifiers/strict.rb
  /usr/lib/ruby/1.9.1/net/ssh/version.rb

This bug is assigned to 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.

-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