Unable to run "gem update" with RubyGems 1.3.6; "gem update foo" works, however
Ubuntu Karmic, Ruby 1.8.7, I observe the following
behavior:
$ sudo gem update -V
Updating installed gems
GET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
# ... rubygems uses 100% CPU for approx. 30 seconds, followed by...
Updating randexp
GET http://rubygems.org/quick/Marshal.4.8/randexp-0.1.5.gemspec.rz
Error fetching remote data: timed out (http://rubygems.org/quick/Marshal.4.8/randexp-0.1.5.gemspec.rz)
Falling back to local-only install
ERROR: While executing gem ... (Gem::GemNotFoundException)
could not find gem randexp locally or in a repository
Oddly enough, I can retrieve the .gemspec.rz file above via wget without any problems. As mentioned in the title, "gem update gemname" seems to work fine as well. Thoughts?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Eric Hodel on 21 Feb, 2010 09:23 PM
What does your gem list say?
Does running gem cleanup first help?
Installing randexp 0.1.0 then running gem update works for me when randexp 0.1.0 is the only gem in my repository.
3 Posted by Greg Campbell on 21 Feb, 2010 10:48 PM
I had already run a gem cleanup before updating. I don't think there's anything special about randexp - this behavior happens for whatever gem happens to be the first one it attempts to update. I had already gone through and updated some gems individually after hitting this snag on gem update (I don't remember all of them, but at least amqp, merb-gen, merb-core, and haml); in each case, gem update would time out on the first gem it attempted to update. I do have a bunch of gems installed, as you can see below.
Support Staff 4 Posted by Nick Quaranto on 22 Feb, 2010 07:46 PM
Another report of this...
http://gist.github.com/311413
5 Posted by evolve2k on 23 Apr, 2010 04:31 AM
Ive had exactly the same issue and have spent ALL DAY troubleshooting this.
Are you running something like virtual box?
Im running Ubuntu via Virtualbox on a Vista machine.
Basically change your network settings from 'NAT' to 'Bridged'. Seems that the NAT network settings are a little flaky for gem.
Found the answer here:
http://www.ruby-forum.com/topic/204146
Cheers
Evolve2k
Support Staff 6 Posted by John Barnette on 17 Nov, 2010 07:26 AM
Watchers, any more recent experiences with this?
7 Posted by ALEX k on 09 Feb, 2011 11:38 AM
Trying to install rails under UBUNTU
“bundler requires RubyGems version >= 1.3.6″
Package Manager tells me 1.9.1 is installed.
Gem update --system "is disabled on debian"
BUT I AM USING UBUNTU
Wondering what moron designed this and resolving never to hire anyone who worked on ubunto or ruby or Jruby
8 Posted by garus on 22 Feb, 2011 02:00 PM
ALEX, you do realize Ubuntu IS Debian?
Support Staff 9 Posted by Nick Quaranto on 27 May, 2011 12:27 AM
This seems like an old, outdated thread. If there's more issues with this please open a new ticket and we'll try to reproduce it.
Nick Quaranto closed this discussion on 27 May, 2011 12:27 AM.