tag:help.rubygems.org,2010-01-19:/discussions/problems/38078-error-could-not-find-a-valid-gem-bundler-1173-issue-when-trying-to-install-bundlerRubyGems.org: Discussion 2020-06-03T16:03:33Ztag:help.rubygems.org,2010-01-19:Comment/483753092020-06-01T17:18:41Z2020-06-01T17:18:41ZERROR: Could not find a valid gem 'bundler' (= 1.17.3) issue when trying to install bundler<div><p>can you please try wget <a href="https://api.rubygems.org/specs.4.8.gz">https://api.rubygems.org/specs.4.8.gz</a> and let us know if that works.</p></div>sonalkr132tag:help.rubygems.org,2010-01-19:Comment/483753092020-06-01T18:13:07Z2020-06-01T18:13:09ZERROR: Could not find a valid gem 'bundler' (= 1.17.3) issue when trying to install bundler<div><p>I tried doctor.rb as issue suggested.</p>
<pre>
<code>$ ruby doctor.rb
/home/docking_prod/.rbenv/versions/2.3.1/bin/ruby (2.3.1-p112)
OpenSSL 1.0.1f 6 Jan 2014: /usr/lib/
ssl
SSL_CERT_DIR
=""
SSL_CERT_FILE
=""
HEAD https
://status.github.com:443
OK</code>
</pre>
<p>Here is the wget output.</p>
<pre>
<code>$ wget https://api.rubygems.org/specs.4.8.gz
--2020-06-01 20:10:16-- https://api.rubygems.org/specs.4.8.gz
Resolving api.rubygems.org (api.rubygems.org)... 2a04:4e42::70, 151.101.64.70, 151.101.128.70, ...
Connecting to api.rubygems.org (api.rubygems.org)|2a04:4e42::70|:443...
failed: Connection timed out.
Connecting to api.rubygems.org (api.rubygems.org)|151.101.64.70|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4163143 (4.0M) [application/octet-stream]
Saving to: ‘specs.4.8.gz’
100%[=========================================================================================================>] 4,163,143 --.-K/s in 0.07s
2020-06-01 20:12:26 (56.9 MB/s) - ‘specs.4.8.gz’ saved [4163143/4163143]</code>
</pre></div>aruptag:help.rubygems.org,2010-01-19:Comment/483753092020-06-03T16:02:40Z2020-06-03T16:03:33ZERROR: Could not find a valid gem 'bundler' (= 1.17.3) issue when trying to install bundler<div><blockquote>
<p>Connecting to api.rubygems.org (api.rubygems.org)|2a04:4e42::70|:443... failed: Connection timed out.</p>
</blockquote>
<p>can you please try disabling ipv6<br>
<a href="https://stackoverflow.com/questions/49800432/gem-cannot-access-rubygems-org">https://stackoverflow.com/questions/49800432/gem-cannot-access-ruby...</a></p>
<p>this generally happens when your network has ipv6 address but the ipv6 route is broken. unlike wget, ruby http client doesn't fallback to ipv4 address.</p></div>sonalkr132