[DRE-maint] Bug#675946: ruby-net-ssh: known_hosts.rb:117:in `keys_for': uninitialized constant Net::SSH::KnownHosts::SUPPORTED_TYPE (NameError) occurs

Lars Eric Scheidler lars_eric.scheidler at affinitas.de
Mon Jun 4 13:44:27 UTC 2012


Package: ruby-net-ssh
Version: 1:2.5.1-1
Severity: grave
Justification: renders package unusable

Following error occurs, when I try to use the net-ssh library for ruby:

/usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:117:in `keys_for': uninitialized constant Net::SSH::KnownHosts::SUPPORTED_TYPE (NameError)
    from /usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:105:in `each_line'
    from /usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:105:in `keys_for'
    from /usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:103:in `open'
    from /usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:103:in `keys_for'
    from /usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:33:in `search_in'
    from /usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:33:in `map'
    from /usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:33:in `search_in'
    from /usr/lib/ruby/vendor_ruby/net/ssh/known_hosts.rb:27:in `search_for'
    from /usr/lib/ruby/vendor_ruby/net/ssh/transport/algorithms.rb:237:in `prepare_preferred_algorithms!'
    from /usr/lib/ruby/vendor_ruby/net/ssh/transport/algorithms.rb:120:in `initialize'
    from /usr/lib/ruby/vendor_ruby/net/ssh/transport/session.rb:79:in `new'
    from /usr/lib/ruby/vendor_ruby/net/ssh/transport/session.rb:79:in `initialize'
    from /usr/lib/ruby/vendor_ruby/net/ssh.rb:186:in `new'
    from /usr/lib/ruby/vendor_ruby/net/ssh.rb:186:in `start'

This seems to be fixed upstream in 2.5.2:
https://github.com/net-ssh/net-ssh/blob/master/CHANGELOG.rdoc

Please upload the new version.

Best regards,
Lars Eric Scheidler

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-backports'), (50, 'unstable'), (50, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ruby-net-ssh depends on:
ii  ruby                          4.8
ii  ruby1.8 [ruby-interpreter]    1.8.7.352-2
ii  ruby1.9.1 [ruby-interpreter]  1.9.3.0-2

ruby-net-ssh recommends no packages.

ruby-net-ssh suggests no packages.

-- no debconf information





More information about the Pkg-ruby-extras-maintainers mailing list