5丁目通信(仮称)

とある5丁目で活動する還暦を過ぎたWebプログラマーの覚え書きです。それとかかってくる迷惑電話や、家業のアパート経営について。

vagrant upでエラーが出た話し


久しぶりにvagrantでテスト環境を作っているところでvagrant upを実行してみた。

実際には、Windows上のVagrantでCoreOSを動かして、その上でdockerを動かそうと目論んだのだが。

普段なら、仮想環境が起動されてテスト環境が起動されてくるのだが、今回は次のようなエラーが出た。テスト環境が動いてくれないと、これからの作業に支障をきたしてしまうので解決しておかなければならない。

$ vagrant up

Thanks for wanting to use Vagrant! Unfortunately, this is not the way
to install Vagrant anymore. We now make installers for the various operating
systems Vagrant supports.

Vagrant is no longer distributed as a RubyGem. Please download the latest
version for your operating system from the URL below. If you still wish
to use the RubyGem version, you can manually install version 1.0.7. Note that
the RubyGem version hasn't been updated in over a year and will no longer
receive any updates.

Prior to installing Vagrant using the installer, make sure you uninstall
all your Vagrant gems, since they sometimes conflict.

http://www.vagrantup.com

If you want to learn more about why we don't distribute using RubyGems
anymore, please read this: http://mitchellh.com/abandoning-rubygems

vagrantup.comに行って最新のvagrantをダウンロードしてインストールしてみる。VirtualBoxも再インストールする。しかし、同じエラーが出る。

まじめにエラーメッセージを読んだら、トンチンカンな対応をしているようだ。

$ gem uninstall vagrant

を実行して、RubyGemsからVagrantをアンインストールしてみる。今度は無事にvagrant upができるようになりました。

私自身Rubyを使っていないし知らないので、RubyGemsがどうなっているかはわからない。ただVagrantが動けばいいのでした。

Windows上のVagrant上のcoreOS上のdocker上のUbuntuは無事に動いています。

著:大竹 龍史, 著:山本 道子
¥2,950 (2024/04/16 16:06時点 | Amazon調べ)
著:Piro, 編集:日経Linux
¥2,178 (2024/04/17 11:53時点 | Amazon調べ)
著:三宅 英明, 著:大角 祐介
¥2,911 (2024/04/16 15:54時点 | Amazon調べ)
ブログランキング・にほんブログ村へ 人気ブログランキング