macos - 无法在远程目录中找到或无法访问 Vagrant box - 不兼容的curl版本

标签 macos vagrant virtualbox

我刚刚下载了 Vagrant 并进行了设置并安装了 virtual box。我只是无法启动我的项目(vagrant up)。我有一个 Vagrant 文件等等。我能做什么?

$ 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 和其他操作系统上默认提供) - 删除嵌入式版本

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

注意:当您添加 vagrant box(远程或本地)时,您还需要删除嵌入的 curl,因此如果您在运行 vagrant box add ... 时遇到相同的错误。 只需从 vagrant 中删除curl,它就会工作

关于macos - 无法在远程目录中找到或无法访问 Vagrant box - 不兼容的curl版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40473943/

相关文章:

xcode - 为较旧的 OS X 版本编译应用程序

c++ - Xcode 无法构建虚幻引擎 4 项目

vagrant - 如何使用 VirtualBox 在 Vagrant 中创建具有两个 CPU 的虚拟机?

objective-c - 使用 NSInputStream 读取动态增长的文件

java - 使用端口转发调试在 Vagrant 中运行的 Tomcat

apache - vagrant provisining 在 Windows 上不起作用,但在 Ubuntu 上起作用

virtual-machine - 同步虚拟机的内容

sql-server - 在虚拟框中将 Java EE 应用程序与 Sql Server 连接

apache-spark - 连接到 VM 上运行的 Spark

macos - 节点模块在我的 Mac 上无故丢失