win7 上 vagrant 无法启动,请各位帮忙看看

2015-05-06 10:35:59 +08:00
 yeelone
今天在win7 上安装vagrant 1.7.2, vbox 4.3.26 。使用vagrant up 之后,报如下错误:
D:\vagrant>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'base'...
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/providers/virtualb
ox/driver/base.rb:387:in `gsub': invalid byte sequence in UTF-8 (ArgumentError)
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/provi
ders/virtualbox/driver/base.rb:387:in `execute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/provi
ders/virtualbox/driver/version_4_3.rb:172:in `import'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/provi
ders/virtualbox/action/import.rb:15:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/warden.rb:34:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/provi
ders/virtualbox/action/customize.rb:40:in `call'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/warden.rb:34:in `call'


搜索好久没能解决 ,求解。
3481 次点击
所在节点    问与答
3 条回复
zzxworld
2015-05-06 11:40:34 +08:00
用 google 搜索了一下,很多人碰到过这个问题,貌似还都是非英语国家,所以检查一下你的配置文件和用户名目录等,是否包含了非英语的特珠字符吧。附赠 2 个相关问题的搜索结果,不谢。

https://github.com/mitchellh/vagrant/issues/2113

http://dqn.sakusakutto.jp/2014/02/vagrant_up_gsub_invalid_byte_se.html
yeelone
2015-05-06 15:56:10 +08:00
@zzxworld 感谢帮忙。链接里的解决方法我都试过了,仍然无法解决 。暂时不管了。
zcdll
2017-09-10 20:54:57 +08:00
这个解决方法可以,我改成了 GBK,在 Windows 10 下。
[装 laravel 时出现的问题]( https://zhidao.baidu.com/question/436150057892194964.html)

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/188833

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX