2015-12-25 68 views
6

不知道为什么我有这个问题,但我不能添加流浪箱。流浪,无法下载框

使用Windows 10,试用PowerShell和简单的命令提示符。同样的问题。这是一个相对新鲜的Windows安装。也许我错过了一些必需的软件包?

首先我想这个命令:

vagrant box add hashicorp/precise32 

,并得到了错误:

The box 'hashicorp/precise32' could not be found or 
could not be accessed in the remote catalog. If this is a private 
box on HashiCorp's Atlas, please verify you're logged in via 
`vagrant login`. Also, please double-check the name. The expanded 
URL and error message are shown below: 

URL: ["https://atlas.hashicorp.com/hashicorp/precise32"] 
Error: 

所以我手动下载的对话框,并试图此:

vagrant box add base64 file:///D:/downloads/vagrant_boxes/precise64.box 

而得到这个错误再次:

==> box: Box file was not detected as metadata. Adding it directly... 
==> box: Adding box 'base64' (v0) for provider: 
    box: Unpacking necessary files from: file:///D:/downloads/vagrant_boxes/precise64.box 
    box: 
An error occurred while downloading the remote file. The error 
message, if any, is reproduced below. Please fix this error and try 
again. 
+0

你使用哪种版本的vagrant? –

回答

4

我在使用vagrant v1.8.0发生这种情况。那天晚些时候流浪者v1.8.1发布了。我没有尝试,我转而回到v1.7.4,问题没有了。

+0

你是一个救世主!有同样的问题认为它可能有一些与我安装Vagrant在一个文件夹与空间。重新安装应用程序几次,直到磕磕绊绊,这解决了它! –

-1

您不需要添加框。初始化而非此:

vagrant init hashicorp/precise32 
vagrant up 
vagrant ssh 

希望它会自动添加到框列表中。 如果你想建立本地盒 - 添加它让几个步骤:

D: 
cd downloads/vagrant_boxes 
vagrant box add base64 precise64.box 
vagrant up 
vagrant ssh 
1

检查C:\ HashiCorp \流浪\嵌入式\ BIN \ curl.exe 情况下给出一个错误,还有就是你的问题。

要解决,只需下载gitbash,console2,cmder等......您已安装卷曲,或尝试http://www.confusedbycode.com/curl/

但是强烈建议gitbash或cmder

4

我已经解决,因为我安装了无业游民1.8.1这个问题,我试图安装低版本,但我想出了同样的问题。希望我在这里解决它:

首先确保您安装了Microsoft Visual C++ 2010 SP1可再发行组件。 这里是64bit https://www.microsoft.com/en-us/download/details.aspx?id=13523 接下来,下载ssl版本的curl在我的情况下也是64bit。这里: https://curl.haxx.se/latest.cgi?curl=win64-ssl-sspi

现在将curl.exe解压到C:\ Vagrant \ embedded \ bin。请看你的安装目录。

然后完成。如果你不使用ssl,请尝试使用no-ssl版本的curl。希望有帮助

+0

这对我来说伎俩 – viorel

+0

很高兴它有帮助... –

+0

正在寻找一整天的解决方案。 只有你的建议帮助! – evgpisarchik

0

适用于MacOS用户重新安装的人颠沛流离的新版本没有帮助:

sudo mv /opt/vagrant/embedded/lib/libiconv.2.dylib /opt/vagrant/embedded/lib/libiconv.2.dylib_ 
brew install libiconv 
brew link --force libiconv 

学分:https://github.com/mitchellh/vagrant/issues/5782

6

当前版本的库(如该日) OSX不支持与Vagrant 1.8.7捆绑在一起的卷发版本。我安装了1.8.6,一切都像冠军一样工作。为了测试这个理论:

cd /opt/vagrant/embedded/bin 
./curl --help 

如果你得到'正常'的回复比你应该没事的还有其他的错误。

+1

另请参考https://github.com/mitchellh/vagrant/issues/7997 – nixgadgets