Vagrant box could not be found or could not be accessed in the remote catalog - incompatible curl version

MacosVagrantVirtualbox

Macos Problem Overview


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

Macos Solutions


Solution 1 - Macos

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

Solution 2 - Macos

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.

Solution 3 - Macos

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.

Solution 4 - Macos

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

Solution 5 - Macos

I had this same problem on MacOS Mojave, and Vagrant version 1.9.3, when trying to use the box: centos/7.

$ 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

I updated to Vagrant 2.2.5 and it worked as expected:

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'!

Solution 6 - Macos

You should try update Vagrant to the latest version:

sudo add-apt-repository ppa:tiagohillebrandt/vagrant
sudo apt update

This will add a repository for your actual ubuntu version. If you are on 20.10 (groovy) replace groovy with focal and call sudo apt update again.

Then install vagrant again:

sudo apt install vagrant

And update all plugins:

vagrant plugin update

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionYaron DassonnevilleView Question on Stackoverflow
Solution 1 - MacosFrederic HenriView Answer on Stackoverflow
Solution 2 - MacosJustin KimbrellView Answer on Stackoverflow
Solution 3 - MacosColin RoetsView Answer on Stackoverflow
Solution 4 - MacosGootView Answer on Stackoverflow
Solution 5 - MacostrickyslipView Answer on Stackoverflow
Solution 6 - Macosrubo77View Answer on Stackoverflow