Vagrant box could not be found or could not be acc

2019-01-04 23:10发布

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"] 

4条回答
\"骚年 ilove
2楼-- · 2019-01-04 23:53

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

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

查看更多
Lonely孤独者°
3楼-- · 2019-01-04 23:53

Just wanted to update this post. I ran into this error running macOS Sierra and a fresh Vagrant 1.8.7 install and noticed Vagrant just updated. As of Vagrant 1.9.0 this error appears to have been fixed.

查看更多
看我几分像从前
4楼-- · 2019-01-04 23:54

Had a similar problem with Sierra (with additional brew installs - which granted could have an impact).

Above sudo rm /opt/vagrant/embedded/bin/curl did not work still got: SSLRead() return error -36.

Tried suggestion from http://slick.pl/kb/software/vagrant-fix-for-error-60-ssl-read/

Any case:

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

Installed successfully.

查看更多
淡お忘
5楼-- · 2019-01-05 00:05

I just experienced this error. In my case I installed vagrant via apt-get which installed 1.7.x..

I removed 1.7.x and installed 2.0.3 directly https://www.vagrantup.com/downloads.html

查看更多
登录 后发表回答