厨师厨房突然停止工作 "Could not find 'net-scp'" (Ubuntu 17.10)

Chef kitchen stopped working all of the sudden with "Could not find 'net-scp'" (Ubuntu 17.10)

我正在做一个项目,突然间,对任何东西的任何调用 Ruby 似乎都停止工作了。他们都报告缺少依赖项。

在那之前我正在卸载不相关的 C/C++ -dev 库,这可能是因为我没有做任何我怀疑的事情。

我已经尝试重新安装 chefdk.deb(已下载),我做了 sudo gem update --system 更改(看起来改进了)堆栈跟踪,但错误仍然相同:

05:56 ~/work/doc/cook 1$ kitchen
/usr/local/lib/site_ruby/2.3.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'net-scp' (~> 1.1) among 266 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/ondra/.gem/ruby/2.3.0:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all', execute `gem env` for more information
    from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1468:in `block in activate_dependencies'
    from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1457:in `each'
    from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1457:in `activate_dependencies'
    from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1439:in `activate'
    from /usr/local/lib/site_ruby/2.3.0/rubygems.rb:310:in `block in activate_bin_path'
    from /usr/local/lib/site_ruby/2.3.0/rubygems.rb:309:in `synchronize'
    from /usr/local/lib/site_ruby/2.3.0/rubygems.rb:309:in `activate_bin_path'
    from /usr/local/bin/kitchen:23:in `<main>'

我该怎么办?

好的,睡好之后,我意识到它告诉我它只是找不到一些库。所以我开始安装它们,从 sudo gem install net-scp.

开始

我不确定为什么他们被卸载了,为什么 chef 没有用它的包安装它们。

05:56 ~/work/doc/cook 1$ kitchen
/usr/local/lib/site_ruby/2.3.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'net-scp' (~> 1.1) among 266 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/home/ondra/.gem/ruby/2.3.0:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all', execute `gem env` for more information
        from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1468:in `block in activate_dependencies'
        from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1457:in `each'
        from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1457:in `activate_dependencies'
        from /usr/local/lib/site_ruby/2.3.0/rubygems/specification.rb:1439:in `activate'
        from /usr/local/lib/site_ruby/2.3.0/rubygems.rb:310:in `block in activate_bin_path'
        from /usr/local/lib/site_ruby/2.3.0/rubygems.rb:309:in `synchronize'
        from /usr/local/lib/site_ruby/2.3.0/rubygems.rb:309:in `activate_bin_path'
        from /usr/local/bin/kitchen:23:in `<main>'
05:56 ~/work/doc/cook 1$ sudo gem install net-scp
[sudo] password for ondra: 
Fetching: net-scp-1.2.1.gem (100%)
Successfully installed net-scp-1.2.1
Parsing documentation for net-scp-1.2.1
Installing ri documentation for net-scp-1.2.1
Done installing documentation for net-scp after 0 seconds
1 gem installed

14:43 ~/work/doc/cook $ kitchen
/usr/local/lib/site_ruby/2.3.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'ffi' (>= 1.0.1) among 267 total gem(s) (Gem::MissingSpecError)
Checked in...

14:43 ~/work/doc/cook $ sudo gem install ffi berkshelf
... 
15:09 ~/work/doc/cook 127$ kitchen 
Commands: