在远程目录中找不到游标框或无法访问游标框-不兼容的curl版本


86

我刚刚下载了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"] 

5
否-红色错误消息在这种情况下无济于事,因为它不会显示实际错误。运行VAGRANT_LOG=DEBUG vagrant up以获取有用的输出。
Michael Lihs,2016年

Answers:


214

流浪汉1.8.7和嵌入式curl版本与mac os二进制文件(默认情况下在mac os Sierra等产品上提供)似乎存在问题-删除嵌入式的

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

注意:curl添加游标框(远程或本地)时,您还需要移除嵌入式控件,因此,如果在运行时遇到相同的错误,vagrant box add ....只需从游标上移除卷发即可


1
感谢在macOS Sierra上与1.8.7配合使用。但是,这确实是一个垃圾问题。
Jimbo,2016年

1
发言时间过早。实际的盒子下载在laravel / homestead 0.6.0中随机停滞
Jimbo

2
我只是想澄清一下,a)截至2017年4月,这仍然是OSX Sierra上的问题,b)此修复有效,c)谢谢
Fuzzygroup

1

只是想更新这篇文章。我在运行macOS Sierra和重新安装Vagrant 1.8.7时遇到此错误,并注意到Vagrant刚刚更新。从Vagrant 1.9.0开始,此错误似乎已修复。


0

Sierra遇到了类似的问题(安装了额外的冲泡装置-许可可能会产生影响)。

上面的sudo rm / opt / vagrant / embedded / bin / curl仍然无法正常工作:SSLRead()返回错误-36。

尝试过来自的建议 http://slick.pl/kb/software/vagrant-fix-for-error-60-ssl-read/的

任何情况:

cd ~
cd .vagrant.d/tmp/
rm -rf ~/.vagrant.d/tmp/
vagrant box add --insecure laravel/homestead

安装成功。



0

当尝试使用盒子:centos / 7时,我在MacOS Mojave和Vagrant版本1.9.3上遇到了相同的问题。

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos/7' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'centos/7' 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/centos/7"]
Error: The requested URL returned error: 404 Not Found

我更新到Vagrant 2.2.5,它按预期工作:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos/7' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'centos/7'
    default: URL: https://vagrantcloud.com/centos/7
==> default: Adding box 'centos/7' (v1902.01) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/centos/boxes/7/versions/1902.01/providers/virtualbox.box
    default: Download redirected to host: cloud.centos.org
==> default: Successfully added box 'centos/7' (v1902.01) for 'virtualbox'!
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.