Bug #8124

gem fails to install valid gems

Added by artagnon (Ramkumar Ramachandra) about 5 years ago. Updated almost 4 years ago.

Target version:
ruby -v:


I'm not able to reproduce this, but many people have reported it on occasion.

$ gem install bundler
ERROR:  Could not find a valid gem 'bundler' (>= 0) in any repository
ERROR:  Possible alternatives: bundler

Can anyone confirm this?


#1 [ruby-core:53540] Updated by hsbt (Hiroshi SHIBATA) about 5 years ago

Please check results of "gem source" command.

#2 [ruby-core:53569] Updated by artagnon (Ramkumar Ramachandra) about 5 years ago

$ gem sources

Like I said, I'm not able to reproduce the issue, even after a gem sources -c. The issue I'm pointing out here is that the error reported on the original issue is completely stupid and wrong- it should never be printed, no matter what the circumstance. Unfortunately, unless someone can figure out how to reproduce it, I see no way to make headway.

#3 [ruby-core:53570] Updated by ayumin (Ayumu AIZAWA) about 5 years ago

For handle this issue, it need to know occasion of that "many people".
If you are not "many people" and you could not reproduce such problem, we can not fix it as same as you.

#4 [ruby-core:53579] Updated by prijutme4ty (Ilya Vorontsov) about 5 years ago

I periodically have similar but not the same issue.

gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0), here is why:
Unable to download data from - SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (
ERROR: Possible alternatives: rails

gem sources shows me
I work with Windows system, ruby both version 1.9.3p0, 2.0.0p0, gem version 2.0.3, OpenSSL 1.0.1e(11 Feb 2013)
gem update also doesn't affect rails gem (while many other gems updated properly) and doesn't even show me that rails have more recent version (no error message at all).
If I explicitly select that I want update rails(gem update rails), updating works.
To be more complete, switching -v didn't solve my problem. Before that issue I've installed prerelease version of rails. I've tried to gem install rails with this prerelease version installed and with this version uninstalled.

#5 [ruby-core:56402] Updated by steveklabnik (Steve Klabnik) almost 5 years ago

I believe both of these errors happen when there are network problems of some kind, but haven't been able to reproduce in any meaningful way.

#6 [ruby-core:60609] Updated by hsbt (Hiroshi SHIBATA) over 4 years ago

  • Status changed from Open to Closed

#7 [ruby-core:64283] Updated by garyt (Gary Turner) almost 4 years ago

I for one have got this error.
I have no idea what to do to solve it, and/or what the significance of it is. I've just installed ruby on windows 8 to run a project that I work on. I have installed a couple of gems, and now can't.

C:\Ruby193\bin>ruby -v
ruby 1.9.3p545 (2014-02-24) [i386-mingw32]

C:\Ruby193\bin>gem -v

C:\Ruby193\bin>gem install rgeo
ERROR: Could not find a valid gem 'rgeo' (>= 0) in any repository
ERROR: Possible alternatives: rgeo

C:\Ruby193\bin>gem install dbf
ERROR: Could not find a valid gem 'dbf' (>= 0) in any repository
ERROR: Possible alternatives: dbf

C:\Ruby193\bin>gem sources

Also available in: Atom PDF