Vagrant box download issue on macOS
The issue
When upgrading or download a new box on macOS and Vagrant 1.8.7:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
The box 'ubuntu/trusty64' 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/ubuntu/trusty64"]
Error:
Vagrant can’t download any new box because its embedded version of curl
can’t download anything.
The solution
By removing the curl
binary embedded in Vagrant, Vagrant will be forced to use your system’s native curl
binary.
sudo rm /opt/vagrant/embedded/bin/curl
Reference
Thanks for reading
Feel free to leave a comment if you have remarks or like this post