我最近用 apt 方式将 Linux Mint 从 14 升级到了 15,从那时起,我的 vagrant box 就无法完全启动了。网络接口或文件/vagrant
夹未设置。
ERROR warden: Error occurred: Agent pid 1034
/usr/lib/ruby/vendor_ruby/net/scp.rb:385:in `await_response_state': Agent pid 1034 (RuntimeError)
from /usr/lib/ruby/vendor_ruby/net/scp.rb:356:in `block (3 levels) in start_command'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/channel.rb:311:in `call'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/channel.rb:311:in `process'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:214:in `block in preprocess'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:214:in `each'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:214:in `preprocess'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:197:in `process'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:161:in `block in loop'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:161:in `loop'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/session.rb:161:in `loop'
from /usr/lib/ruby/vendor_ruby/net/ssh/connection/channel.rb:269:in `wait'
from /usr/lib/ruby/vendor_ruby/net/scp.rb:279:in `upload!'
from /usr/lib/ruby/vendor_ruby/vagrant/communication/ssh.rb:81:in `block in upload'
from /usr/lib/ruby/vendor_ruby/vagrant/communication/ssh.rb:110:in `connect'
from /usr/lib/ruby/vendor_ruby/vagrant/communication/ssh.rb:79:in `upload'
from /usr/lib/ruby/vendor_ruby/vagrant/guest/debian.rb:38:in `configure_networks'
from /usr/lib/ruby/vendor_ruby/vagrant/action/vm/network.rb:72:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/vm/clear_network_interfaces.rb:26:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/vm/host_name.rb:10:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:33:in `call'
from /usr/lib/ruby/vendor_ruby/vagrant/action/vm/share_folders.rb:20:in `call'
这是我在设置网络时看到的错误,如果我禁用网络,我会在/vagrant
文件夹设置阶段收到类似的错误。
我尝试过purge
vagrant 并重新安装,甚至在autoremove
中间也这样做过。但都无济于事。我还没有尝试清除 Virtualbox……这会有帮助吗?
编辑:尝试启动一个新的 vagrant box 时出现此问题,这是否相关?
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.2.0
VirtualBox Version: 4.2.10