dpkg: ошибка, обрабатывающая пакет dradis

Я просто работал apt-get update && apt-get upgrade и это - то, что я получил:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up dradis (3.1.0~rc2+git20160609-0kali2) ...
Warning: The home dir /var/lib/dradis you specified already exists.
The system user `dradis' already exists. Exiting.
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:194:in `block in initialize': 
    undefined method `add_root_vertex' for Molinillo::DependencyGraph:[]:Molinillo::DependencyGraph (NoMethodError)
    from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:194:in `initialize'
    from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:181:in `new'
    from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:181:in `resolve'
    from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:200:in `resolve'
    from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:140:in `specs'
    from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:185:in `specs_for'
    from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:174:in `requested_specs'
    from /usr/lib/ruby/vendor_ruby/bundler/environment.rb:18:in `requested_specs'
    from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:13:in `setup'
    from /usr/lib/ruby/vendor_ruby/bundler.rb:127:in `setup'
    from /usr/lib/ruby/vendor_ruby/bundler/setup.rb:8:in `<top (required)>'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/lib/dradis/config/boot.rb:3:in `<top (required)>'
    from bin/rake:2:in `require_relative'
    from bin/rake:2:in `<main>'
dpkg: error processing package dradis (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 dradis
E: Sub-process /usr/bin/dpkg returned an error code (1)

Что мне делать?

0
задан 5 July 2016 в 21:41

2 ответа

deb пакеты имеют некоторые определенные рычаги, где сценарии могут быть выполнены, в то время как пакет установлен, удален и т.д. Кажется, что в Вашем случае такие сбои сценария, таким образом, целая установка перестала работать:

 /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:194:in `block in initialize': 
    undefined method `add_root_vertex' for Molinillo::DependencyGraph:[]:Molinillo::DependencyGraph (NoMethodError)

Так Bundler не может найти метод в библиотеке, которую он хотел бы назвать. Судя от этот выпуск в GitHub Bundler repo, Вы могли бы использовать устаревшую версию Bundler. Таким образом, возможно, обновление Bundler помогло бы. Как точно необходимо сделать, который зависит от того, как Вы установили Ruby включая Bundler (система пакета, RVM, rbenv...)

0
ответ дан 29 September 2019 в 00:19

У меня была та же проблема в Kali. Удаление dradis зафиксировало его для меня.

apt-get remove dradis
0
ответ дан 29 September 2019 в 00:19

Другие вопросы по тегам:

Похожие вопросы: