在远程目录中找不到或无法访问 Vagrant box - 不兼容的 curl 版本 [英] Vagrant box could not be found or could not be accessed in the remote catalog - incompatible curl version

查看:31
本文介绍了在远程目录中找不到或无法访问 Vagrant box - 不兼容的 curl 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了 Vagrant 并进行了设置并安装了虚拟盒子.我只是无法开始我的项目(流浪者).我有一个流浪文件等等.我能做什么?

I just downloaded Vagrant and did the settings as well as install virtual box. I just can't start my project (vagrant up). I have a vagrant file and so on. What can I do?

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'scotch/box' could not be found. Attempting to find and install
...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'scotch/box' 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/scotch/box"] 

推荐答案

似乎有一个 issue 使用 vagrant 1.8.7 和嵌入式 curl 版本与 mac os 二进制文件(在 mac os Sierra 和其他系统上默认提供) - 删除嵌入的

There seems to be an issue with vagrant 1.8.7 and the embedded curl version vs the mac os binary (shipped by default on mac os Sierra and others) - remove the embedded one

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

注意:当你添加一个 vagrant box(远程或本地)时,你还需要删除嵌入的 curl 所以如果你在运行 vagrant box add ... 时遇到同样的错误. 只需从 vagrant 中删除 curl 就可以了

Note: you also need to remove the embedded curl when you add a vagrant box (remotely or locally) so if you get the same error when running vagrant box add .... just remove the curl from vagrant and it will work

这篇关于在远程目录中找不到或无法访问 Vagrant box - 不兼容的 curl 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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