【问题标题】:Add Vagrant .box file failing添加 Vagrant .box 文件失败
【发布时间】:2016-11-09 23:59:38
【问题描述】:

我不想运行vagrant box add ubuntu/trusty64,而是想手动下载.box 文件(如this question)。

我从这里下载了文件: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box

当我运行vagrant box add test123 ~/Downloads/trusty-server-cloudimg-amd64-vagrant-disk1.box 时,输出结果如下:

==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'test123' (v0) for provider:
    box: Unpacking necessary files from: file:///XYZ/trusty-server-cloudimg-amd64-vagrant-disk1.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 virtualbox


【解决方案1】:

如果你的流浪版本Vagrant 1.8.7你可以试试这个。

sudo rm -rf /opt/vagrant/embedded/bin/curl

这对我有用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-27
    • 2014-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多