Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vagrant 做流浪汉时的名字错误_Vagrant - Fatal编程技术网

Vagrant 做流浪汉时的名字错误

Vagrant 做流浪汉时的名字错误,vagrant,Vagrant,我正在一台ubuntu14.04机器上工作,这是我第一次使用Vagrant,所以请容忍我 我正在尝试执行vagrant up,但收到以下错误消息: ricardo@mymachine:~/workspace/myproject$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Importing base box 'debian/jessie64'... ... ... ... [d

我正在一台
ubuntu14.04
机器上工作,这是我第一次使用Vagrant,所以请容忍我

我正在尝试执行
vagrant up
,但收到以下错误消息:

ricardo@mymachine:~/workspace/myproject$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'debian/jessie64'...
...
...
...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] Setting hostname...
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] Running provisioner: file...
[default] Running provisioner: shell...
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
[default] Running cleanup tasks for 'file' provisioner...
[default] Running cleanup tasks for 'shell' provisioner...
/usr/share/vagrant/plugins/provisioners/shell/provisioner.rb:61:in `quote_and_escape': undefined method `gsub' for 1:Fixnum (NoMethodError)
    from /usr/share/vagrant/plugins/provisioners/shell/provisioner.rb:14:in `block in provision'
    from /usr/share/vagrant/plugins/provisioners/shell/provisioner.rb:14:in `map'
    from /usr/share/vagrant/plugins/provisioners/shell/provisioner.rb:14:in `provision'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/provision.rb:89:in `run_provisioner'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:95:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:95:in `block in finalize_action'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
    from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
    from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:283:in `hook'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/provision.rb:74:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/provision.rb:74:in `block in call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/provision.rb:65:in `each'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/provision.rb:65:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/plugins/providers/virtualbox/action/set_name.rb:48:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:95:in `block in finalize_action'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
    from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:51:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:95:in `block in finalize_action'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
    from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:51:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:95:in `block in finalize_action'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
    from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:51:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:57:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/config_validate.rb:25:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builtin/call.rb:57:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
    from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
    from /usr/lib/ruby/vendor_ruby/vagrant/machine.rb:147:in `action'
    from /usr/lib/ruby/vendor_ruby/vagrant/batch_action.rb:63:in `block (2 levels) in run'

你知道发生了什么吗?

你修改过Vagrant文件了吗?没有,我没有碰过Vagrant文件。你能详细介绍一下Vagrant、ruby和VirtualBox版本吗?可能存在一些不兼容性-vagrant 1.8+、virtualBox 5.x+和ruby 1.9+应该可以工作