【问题标题】:Vagrant cannot find box on mac osx [duplicate]Vagrant在mac osx上找不到盒子[重复]
【发布时间】:2016-11-13 15:23:27
【问题描述】:

我正在尝试做类似的事情:

vagrant init hashicorp/precise64
vagrant up

但是,当 Vagrant 尝试添加框“hashicorp/precises64”时,我收到一条错误消息 --- 当我使用该命令时,我收到了同样的错误

vagrant box add hashicorp/precise64

这是错误:

The box 'hashicorp/precise64' 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/precise64"]
Error: 

有人知道怎么回事吗?

我在 Mac OSX Yosemite 10.10.5 上使用 Vagrant 1.8.7

【问题讨论】:

    标签: macos vagrant


    【解决方案1】:

    在 Mac OS X 的 vagrant 版本的 curl 中存在错误。 即使 .box 文件是本地文件,也会出现此错误。

    要修复,只需删除有问题的文件,它应该默认为您系统上已安装的 curl 版本。

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

    【讨论】:

    • 上帝保佑你,善良的灵魂。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-03
    • 2011-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多