Gem installer bundler


#21

One more.

What does traceroute rubygems.org return?


#22

The program ‘traceroute’ can be found in the following packages:

  • inetutils-traceroute
  • traceroute
    Try: sudo apt install

#23

sudo apt-get update
sudo apt-get install traceroute

Install traceroute then run it again.


#24

I have installed traceroute as directed.
do you mean i should run
gem install bundler?


#25

I mean now run traceroute rubygems.org


#26

this is the output

traceroute to rubygems.org (151.101.64.70), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *


#27

I would try restarting your computer and router and seeing if that helps. This could be a DNS issue which could flush on a restart.


#28

Ufff. I appreciate you standing by me. But still cannot download from rubygens.


#29

You could try a manual install of the latest rubygems

wget https://rubygems.org/rubygems/rubygems-2.7.7.tgz
tar xvf rubygems-2.7.7.tgz
cd rubygems-2.7.7
sudo ruby setup.rb

That will download the file in the folder you run that command in so maybe cd into a Downloads folder in your terminal or something. That isn’t mandatory but you don’t really want to download it directly into your home directory or anything.


#30

Thanks a million CouchofTomato. Will do that. And let’s see what happens


#31

Has there been a solution? I am also getting the same error message
ERROR: Could not find a valid gem 'rails' (>= 0), here is why: Unable to download data from https://rubygems.org/ - timed out (https://api.rubygems.org/specs.4.8.gz)
when typing : get install rails


#32

Hi @WillyS

There isn’t really a solution to this. Usually it is an issue at your end if you use a proxy or a firewall.


#33

I don’t have a proxy and I’m using my home network, I have avast anti virus but I tried disabling firewall and attempt installing again but it also gave me the same message


#34

Try gem update --system to see if you need an update.


#35

I get a similar error message as before

ERROR:  While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
    timed out (https://api.rubygems.org/specs.4.8.gz)

#36

What goes gem env output


#37

Quite a long result, so i copied and pasted onto pastebin: https://pastebin.com/tU7vq8nx


#38

Are you able to connect your computer to a different network to see if it is a connection problem?


#39

My set up is just a desktop PC connected to my router via Ethernet cable, it doesn’t have a wifi adapter


#40

You can try ping api.rubygems.org and see if your computer can establish a connection. You’ll need to press ctrl+C to kill it after a few seconds.

When you kill it you should get a small report in the terminal on whether it was successful.