gem & wget not able to resolve

1 respuesta [Último envío]
vitali
Desconectado/a
se unió: 06/01/2012

Hi all,

I am facing a weird problem. gem & wget are not able to resolve addresses. while, apt, ping, web browsers work fine.


sudo gem update --system
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)


wget http://rubyforge.org/frs/download.php/76073/rubygems-1.8.24.tgz
--2012-05-31 11:13:23-- http://rubyforge.org/frs/download.php/76073/rubygems-1.8.24.tgz
Resolving rubyforge.org... 1.0.0.0
Connecting to rubyforge.org|1.0.0.0|:80... ^C


ping rubyforge.com
PING rubyforge.com (50.56.192.79) 56(84) bytes of data.
64 bytes from rubyforge.com (50.56.192.79): icmp_req=1 ttl=44 time=292 ms
64 bytes from rubyforge.com (50.56.192.79): icmp_req=2 ttl=44 time=292 ms
^C


$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1

'export HTTP_PROXY' does not return anything.

I think if the dns resolving for gem & wget gets solved, then gem can use the sources to do automatic installations of gems.

I tried changing nameserver to 8.8.8.8 but after reboot, it reverts back to above.

Please help me resolve this. I tried to manually install gems. But, it is insane task to keep searching & downloading each gem dependency and installing it.

vitali
Desconectado/a
se unió: 06/01/2012

its working now. Please close this thread.