Vagrant box 添加失败,本地文件 [英] Vagrant box add fails with local file

查看:30
本文介绍了Vagrant box 添加失败,本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚学习了本教程:https://blog.engineyard.com/2014/building-a-vagrant-box 终于遇到了这个问题:

I just followed this tutorial: https://blog.engineyard.com/2014/building-a-vagrant-box and finally faced this issue:

h:\VagrantBoxes>vagrant box add test-server32 file:///H:/VagrantBoxes/package.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'test-server32' (v0) for provider:
    box: Unpacking necessary files from: file:///H:/VagrantBoxes/package.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.

我使用 Windows 10 x64、Vagrant 1.8.1、VirtualBox 5.0.12.

I use Windows 10 x64, Vagrant 1.8.1, VirtualBox 5.0.12.

这里列出了类似的问题:Vagrant box 添加失败,但解决方案不起作用为了我.

Similar problem was listed here: Vagrant box add fail, but the solution does not work for me.

推荐答案

我找到了解决方案.我尝试从 <vagrant_dir>/embedded/bin 运行 curl,发现我的 PC 上缺少 vcruntime140.dll.所以我安装了新的Visual C++ Redistributable for Visual Studio 2015",问题就消失了.

I have found the solution. I tried to run curl from <vagrant_dir>/embedded/bin and found out, that vcruntime140.dll is missed on my PC. So I installed fresh "Visual C++ Redistributable for Visual Studio 2015" and the issue disappeared.

这篇关于Vagrant box 添加失败,本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆