LoginSignup
1
0

More than 5 years have passed since last update.

vagrant on Mac でvagrant-omnibusインストール時のエラー対処方法

Last updated at Posted at 2016-09-29

vagrant on Mac でvagrant-omnibusインストールでエラー対処方法

内容

今回は、自分向けの備忘録。
久しぶりにvagrant使ってchefのレシピを作ろうと思ったら、エラーが出ました。

環境

  • OS X El Capitan 10.11.6
  • Vagrant 1.8.1

エラー内容

$ vagrant plugin install vagrant-omnibus

Installing the 'vagrant-omnibus' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

Could not fetch specs from http://gems.hashicorp.com/

Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.

対処方法

 $ gem list --clear-sources --source http://gems.hashicorp.com -r

結果

$ vagrant plugin install vagrant-omnibus

Installing the 'vagrant-omnibus' plugin. This can take a few minutes...
Installed the plugin 'vagrant-omnibus (1.5.0)'!
1
0
0

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
1
0