我在尝试运行vagrant up
命令时卡住了。我有这个本地 .box 文件位于我的本地驱动器中并先运行vagrant init
,然后添加它。添加似乎很顺利,但是当我尝试vagrant up
如下所示运行时,它返回:
C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:176:in `split': bad URI(不是 URI?): file:C:/Users/burea1124/Projects/ theirgoods/CUserurea1124Projectstheirgoodstheirgoods_dev_vm.box (URI::InvalidURIError)
显然,看起来我应该在某个地方修复 URI,但我不知道为什么它首先看起来像这样。有人对我如何解决这个问题有任何线索吗?
C:\Users\burea1124\Projects\theirgoods>vagrant box add theirgoods C:\Users\burea1124\Projects\theirgoods\theirgoods_dev_vm.box ==> box: 添加 box 'theirgoods' (v0) for provider: box: Downloading: file ://C:/Users/burea1124/Projects/theirgoods/theirgoods_dev_vm.box box: Progress: 100% (Rate: 500M/s, Estimated time剩余:--:--:--) ==> box: 成功添加'virtualbox' 的 box 'theirgoods' (v0)!
C:\Users\burea1124\Projects\theirgoods> vagrant up
用 'virtualbox' 提供程序启动机器'default'... ==> 默认值:找不到 Box 'CUserurea1124Projectstheirgoodstheirgoods_dev_vm.box'。正在尝试查找并安装... 默认值:Box Provider:virtualbox 默认值:Box 版本:>= 0 C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:176:insplit': bad URI(is not URI?): file:C:/Users/burea1124/Projects/theirgoods/CUserurea1124Projectstheirgoodstheirgoods_dev_vm.box (URI::InvalidURIError) from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:211:in
parse'来自 C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:747:inparse' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/box_add.rb:458:in
metadata_url?' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/box_add.rb:77:inblock in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/box_add.rb:75:in
map' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems /vagrant-1.6.3/lib/vagrant/action/builtin/box_add.rb:75:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
调用'来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
block in run' 来自 C:/HashiCorp/Vagrant/embedded/gems /gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:inbusy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
run' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/ builtin/handle_box.rb:79:inhandle_box' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_box.rb:42:in
block in call' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_box.rb:36:insynchronize' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/handle_box.rb:36:in
call'来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:95:in
block in finalize_action' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems /vagrant-1.6.3/lib/vagrant/action/warden.rb:34:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
调用'来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
block in run' 来自 C:/HashiCorp/Vagrant/embedded/gems /gems/vagrant-1.6.3/lib/vagrant/util/busy.rb:19:inbusy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
run' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/ builtin/call.rb:53:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/warden.rb:34:in
call' 来自 C :/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builder.rb:116:incall' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
block in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant -1.6.3/lib/vagrant/util/busy.rb:19:inbusy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:66:in
运行'来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:inaction_raw' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in
block in action' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems /vagrant-1.6.3/lib/vagrant/environment.rb:434:inlock' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in
call' 来自 C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:在action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:in
块(2 个级别)中运行'