【发布时间】:2018-10-22 07:42:15
【问题描述】:
我在 ubuntu 18.04 上安装 vagrant 时遇到问题。
我下载 vagrant 2.2.0 => 安装他的。
但运行 vagrant up 时出错
> ==> default: Destroying VM and associated drives... /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh/authentication/agent.rb:128:in > `block in identities': can't modify frozen NilClass (RuntimeError) > from > /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh/authentication/agent.rb:122:in > `times' from > /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh/authentication/agent.rb:122:in > `identities' from > /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh/authentication/key_manager.rb:104:in > `each_identity' from > /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh/authentication/methods/publickey.rb:19:in > `authenticate' from > /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh/authentication/session.rb:85:in > `block in authenticate' from > /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh/authentication/session.rb:71:in > `each' from > /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh/authentication/session.rb:71:in > `authenticate' from > /opt/vagrant/embedded/gems/2.2.0/gems/net-ssh-5.0.2/lib/net/ssh.rb:246:in > `start' from > /opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/plugins/communicators/ssh/communicator.rb:415:in > `block (2 levels) in connect' from > /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:93:in `block in > timeout' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in > `block in catch' from > /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `catch' from > /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `catch' from > /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:108:in `timeout' from > /opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/plugins/communicators/ssh/communicator.rb:389:in > `block in connect' from > /opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/lib/vagrant/util/retryable.rb:17:in > `retryable' from > /opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/plugins/communicators/ssh/communicator.rb:388:in > `connect' from > /opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/plugins/communicators/ssh/communicator.rb:84:in `block in wait_for_ready' from > /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:93:in `block in > timeout' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in > `block in catch' from > /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `catch' from > /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `catch' from > /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:108:in `timeout' from > /opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/plugins/communicators/ssh/communicator.rb:62:in `wait_for_ready' from > /opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/lib/vagrant/action/builtin/wait_for_communicator.rb:16:in > `block in call'
“Vagrant up --debug”以同样的方式结束。 我尝试将宝石分开放置,但没有帮助。
我做错了什么?
【问题讨论】:
-
我安装了 ruby-net-ssh,但它也不起作用。
-
您的 issee 可能在您上面显示的输出之前发生。
标签: ruby ubuntu rubygems vagrant