4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vagrant 1.8.7(Mac)の"vagrant box add ~~" でエラーとなる場合の対処法

4
Last updated at Posted at 2016-11-22

タイトルの通りです。
原因究明に苦労したので共有します。

エラー内容

  • 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さんより情報提供して頂きました。ありがとうございます!

4
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?