Problem with gem


I am trying to install ROR in Ubuntu on my virtualbox VM.
I followed the instruction on Documents for installation of the
same.As i am working in office where we have to deal with proxy; i
have also set the appropriate proxy.
after installing Rubygems, I can do

$ sudo gem update

but cannot do
$ sudo gem update --system

or even $ sudo gem install …

The Error which I am getting is

ERROR: does not appear to be a repository
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Connection timed out - connect(2) (http:// | your community gem host)

I am unable to understand where the problem is. Can anybody help
please? :((

Hi Manisha,

Actually Gem installation need enough memory on your server/system and
or if it is not just download that gem and install specific.
like :
gem install rails-2.0.2.gem,