Rick Rick - 6 months ago 8
Linux Question

Many temporary UnknownHost errors when running `bundle install` on linux mint with RVM

I am running RVM on Linux Mint 17 and am hitting a recurring, random, temporary error when I

bundle install
:

Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/some_gem)


This error happens randomly. If I run
bundle install
again, it might succeed for the previous failure but then hit the error for a different gem farther down the Gemfile.

I am able to successfully install gems, but only after re-running the command many time.

Answer

Probably you should update your rubygems, if you are not using last version https://github.com/rubygems/rubygems/issues/762

It also can be an issue with your DNS setup, check

nslookup rubygems.org

If it fails - it can be problem with DNS server that you are using.

Comments