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

ben*_*kah 11 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:
Run Code Online (Sandbox Code Playgroud)

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

ben*_*kah 17

这似乎是由于在Windows 10上运行vagrant 1.8.1时缺少依赖性.在Windows命令行"cmd.exe"和git-bash下我发生了这种情况.这也被报道并关闭mitchellh/vagrant GitHub repo为"On Windows 10",vagrant up"和"vagrant box add"throw blank errors#6852"

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

一个相关的剪切"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:
...
Run Code Online (Sandbox Code Playgroud)

  • 这个解决方案在windows7上也适用于我 (2认同)