タイトルの通りです。
原因究明に苦労したので共有します。
エラー内容
- MacにてVagrantの最新バージョン(1.8.7)をインストール後、
vagrant box add ~~を実行
→以下のエラーが発生
% vagrant box add debian81 https://dl.dropboxusercontent.com/u/3523744/boxes/debian-8.1-amd64-lxc-puppet/debian-8.1-lxc-puppet.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
エラー原因
色々と調べ回ったところ、GitHubのissuesに同事象のエラーが記述されていました。
MacでVagrant 1.8.7を使用した場合、vagrant box add ~~でエラーが発生しているようです。
https://github.com/mitchellh/vagrant/issues/6725
対処方法
現時点ではVagrantのバージョンを下げるしかないようです。1.8.6に下げたところ、正しく動作しました。
https://github.com/mitchellh/vagrant/issues/7969
https://github.com/mitchellh/vagrant/issues/7970
によるとvagrantに内包されているcurlが問題とのこと。
sudo rm -rf /opt/vagrant/embedded/bin/curl
を実行することで解決できました。
※@d6rkaizさんより情報提供して頂きました。ありがとうございます!