流浪错误"框' hashicorp / precise32'无法找到......" windows 10下载程序退出状态3221225781

时间:2016-01-18 05:59:24

标签: vagrant-windows

我在Windows 10上收到此错误:

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:

请注意,没有展开的错误消息,这使其与已发布的其他类似问题不同。它也有不同的解决方案。

2 个答案:

答案 0 :(得分:17)

这似乎是由于在Windows 10上运行vagrant 1.8.1时缺少依赖性。在Windows命令行" cmd.exe"并在git-bash下。这也被报告并关闭mitchellh / vagrant GitHub回购"On Windows 10, "vagrant up" and "vagrant box add" throw blank errors #6852"

我和其他人通过安装" Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)"来解决这个问题。正如jeremywhittington在问题#6754中所建议的那样。

相关剪辑的" vagrant --debug add hashicorp / precise32"输出显示" curl"退出一个没有传播到标准流浪者输出的奇怪代码:

...
INFO subprocess: Starting process: ["C:\\HashiCorp\\Vagrant\\embedded\\bin/curl.EXE", "-I", "-q", "--fail", "--location", "--max-redirs", "10", "--user-agent", "Vagrant/1.8.1 (+https://www.vagrantup.com; ruby2.2.3)", "--continue-at", "-", "-H", "Accept:application/json", "https://atlas.hashicorp.com/hashicorp/precise32"]
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 3221225781
 WARN downloader: Downloader exit code: 3221225781
ERROR warden: Error occurred: 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:
...

答案 1 :(得分:0)

我理解的是,vagrant默认安装了一个与Windows 10冲突的CURL版本。

我设法解决了以下问题:

1)下载新的CURL:

[https://sourceforge.net/projects/curlforwindows/?source=typ_redirect]

2)将文件夹解压缩到c:/

Ex:C:/curl-7.4.0 /

3)找到流浪文件夹C:\ HashiCorp \ Vagrant \ embedded \ bin

4)将文件curl.exe重命名为curl.exe_或删除。

5)将c:/curl-7.4.0/添加到{PATH}变量中。

6)打开提示并测试命令'curl --help'

7)再次运行'vagrant up'命令并开心:)