Vagrant 流浪汉,可以';t下载盒

Vagrant 流浪汉,可以';t下载盒,vagrant,vagrant-windows,Vagrant,Vagrant Windows,不知道为什么我会有这个问题,但我不能添加流浪者的盒子 使用windows 10,在powershell和简单命令提示符上进行了尝试。同样的问题。这是一个相对较新的windows安装。也许我丢失了一些必需的包裹 首先,我尝试了以下命令: vagrant box add hashicorp/precise32 并得到了错误信息: The box 'hashicorp/precise32' could not be found or could not be accessed in the remo

不知道为什么我会有这个问题,但我不能添加流浪者的盒子

使用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.

发生这种情况时,我正在使用vagrant v1.8.0。当天晚些时候,《流浪汉》1.8.1版发布。我没有尝试,而是切换到v1.7.4,问题就消失了。

您不需要添加框。Init而不是此:

vagrant init hashicorp/precise32
vagrant up
vagrant ssh
希望它会自动添加到框列表中。 如果要设置本地框-添加它,只需几个步骤:

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

检查C:\HashiCorp\Vagrant\embedded\bin\curl.exe 如果给出一个错误,那就是你的问题

要解决这个问题,只需下载gitbash、console2、cmder等。。。您已经安装了curl,或者尝试


尽管强烈推荐gitbash或cmder,但自从安装vagrant 1.8.1以来,我一直在解决此问题,我尝试安装较低版本,但遇到了相同的问题。希望我能在这里解决这个问题:

首先确保安装了微软Visual C++ 2010 SP1可重分发。 这是64位的 接下来,在我的例子中下载curl的ssl版本,也就是64位。在这里:

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

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

基于官方URL。。只有虚拟框提供程序。 请尝试以下命令:
阴道炎hashicorp/precise32;vagrant up--为重新安装新版本vagrant没有帮助的MacOS用户提供virtualbox

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

归功于:

当前版本(截至目前)OSX上的库不支持与Vagrant 1.8.7捆绑的curl版本。我安装了1.8.6,一切都像冠军一样工作。为了检验这一理论:

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

如果你得到一个“正常”的回复,你应该会没事,或者是出了什么问题。

你用的是哪种版本的流浪汉?你是一个生命的救世主!我也有同样的问题,认为这可能与我在一个有空格的文件夹中安装Vagrant有关。多次重新安装应用程序,直到遇到这个问题才得以解决!一整天都在寻找解决办法。只有你的建议有用!用官方SSL版本替换vagrant's curl解决了我的问题。谢谢:)