"The box 'hashicorp/precise32' could not be found..." Windows 10 下载器退出状态3221225781的流浪错误



>我在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:

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

似乎是由于在Windows 10上运行vagrant 1.8.1时缺少依赖项引起的。它发生在 Windows 命令行"cmd.exe"和 git-bash 下。这也在 mitchellh/vagrant GitHub 存储库中被报告并关闭为"在 Windows 10 上,"vagrant up"和"vagrant box add"抛出空白错误 #6852"

我和其他人通过安装"Microsoft Visual C++ 2010 SP1 可再发行组件包 (x86)"来解决此问题,正如 jeremywhittington 在问题 #6754 中建议的那样。

"vagrant --debug add hashicorp/precise32"输出的相关截图显示"curl"以一个奇怪的代码退出,该代码不会传播到标准的vagrant输出:

...
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:
...

我的理解是,流浪者默认安装一个导致与Windows 10冲突的CURL版本。

我设法解决了以下问题:

1) 下载新的卷曲:

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

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

例如:C:/curl-7.4.0/

3) 查找流浪者文件夹 C:\HashiCorp\流浪者\嵌入式\bin

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

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

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

7)再次运行"流浪者"命令,并快乐:)

相关内容

  • 没有找到相关文章

最新更新