Unable to run "gem update" with RubyGems 1.3.6; "gem update foo" works, however

Greg Campbell's Avatar

Greg Campbell

21 Feb, 2010 06:08 PM

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?

  1. Support Staff 1 Posted by Eric Hodel on 21 Feb, 2010 09:23 PM

    Eric Hodel's Avatar

    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.

  2. 2 Posted by Greg Campbell on 21 Feb, 2010 10:48 PM

    Greg Campbell's Avatar

    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.

    *** LOCAL GEMS ***
    
    abstract (1.0.0)
    actionmailer (2.3.5)
    actionpack (2.3.5)
    activerecord (2.3.5)
    activeresource (2.3.5)
    activesupport (3.0.pre)
    addressable (2.1.1)
    amqp (0.6.7)
    bcrypt-ruby (2.1.2)
    blather (0.4.8)
    builder (2.1.2)
    bundler (0.9.7)
    bunny (0.6.0)
    capistrano (2.5.16)
    capistrano-ext (1.2.1)
    cgi_multipart_eof_fix (2.5.0)
    cheat (1.2.1)
    columnize (0.3.1)
    configatron (2.5.1)
    cucumber (0.6.2)
    curb (0.6.6.0)
    daemon-kit (0.1.7.12)
    daemons (1.0.10)
    data_objects (0.10.1)
    diff-lcs (1.1.2)
    dm-aggregates (0.10.2)
    dm-constraints (0.10.2)
    dm-core (0.10.2)
    dm-is-state_machine (0.10.2)
    dm-is-tree (0.10.2)
    dm-migrations (0.10.2)
    dm-serializer (0.10.2)
    dm-sweatshop (0.10.2)
    dm-timestamps (0.10.2)
    dm-types (0.10.2)
    dm-validations (0.10.2)
    do_mysql (0.10.1)
    do_sqlite3 (0.10.1.1)
    em-http-request (0.2.7)
    erubis (2.6.5)
    eventmachine (0.12.10)
    extlib (0.9.14)
    facets (2.8.1)
    fastercsv (1.5.1)
    fastthread (1.0.7)
    gem_plugin (0.2.3)
    git (1.2.5)
    haml (2.2.20)
    handsoap (1.1.7)
    highline (1.5.2)
    hoe (2.5.0)
    httpclient (2.1.5.2)
    idn (0.0.2)
    jeweler (1.4.0)
    json (1.2.0)
    json_pure (1.2.0)
    libxml-ruby (1.1.3)
    linecache (0.43)
    mailfactory (1.4.0)
    markup_validity (1.1.0)
    memcached (0.18.0)
    merb (1.0.15)
    merb-action-args (1.0.15)
    merb-assets (1.0.15)
    merb-auth (1.0.15)
    merb-auth-core (1.0.15)
    merb-auth-more (1.0.15)
    merb-auth-slice-password (1.0.15)
    merb-cache (1.0.15)
    merb-core (1.0.15)
    merb-exceptions (1.0.15)
    merb-gen (1.0.15)
    merb-haml (1.0.15)
    merb-helpers (1.0.15)
    merb-mailer (1.0.15)
    merb-more (1.0.15)
    merb-param-protection (1.0.15)
    merb-slices (1.0.15)
    merb_datamapper (1.0.15)
    merb_jquery (0.9.13)
    mime-types (1.16)
    mongrel (1.1.5)
    net-scp (1.0.2)
    net-sftp (2.0.4)
    net-ssh (2.0.20)
    net-ssh-gateway (1.0.1)
    newgem (1.5.2)
    nokogiri (1.4.1)
    ParseTree (3.0.4)
    polyglot (0.3.0)
    rack (1.1.0)
    rack-test (0.5.3)
    rails (2.3.5)
    rake (0.8.7)
    randexp (0.1.4)
    RedCloth (4.2.2)
    rspec (1.3.0, 1.2.9)
    rubigen (1.5.2)
    ruby-debug (0.10.3)
    ruby-debug-base (0.10.3)
    ruby2ruby (1.2.4)
    ruby_parser (2.0.4)
    rubyforge (2.0.3)
    rubygems-update (1.3.6)
    RubyInline (3.8.4)
    rvm (0.1.1)
    sexp_processor (3.0.3)
    soap4r (1.5.8)
    stringex (1.1.0)
    syntax (1.0.0)
    templater (1.0.0)
    term-ansicolor (1.0.4)
    thor (0.12.3, 0.9.9)
    treetop (1.4.3)
    uuidtools (2.1.1)
    webrat (0.5.3)
    wirble (0.1.3)
    xmpp4r (0.5)
    yajl-ruby (0.6.8)
    yamler (0.1.0)
    yard (0.5.3)
    ZenTest (4.2.1)
    
  3. Support Staff 3 Posted by Nick Quaranto on 22 Feb, 2010 07:46 PM

    Nick Quaranto's Avatar

    Another report of this...

    http://gist.github.com/311413

  4. 4 Posted by evolve2k on 23 Apr, 2010 04:31 AM

    evolve2k's Avatar

    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

  5. Support Staff 5 Posted by John Barnette on 17 Nov, 2010 07:26 AM

    John Barnette's Avatar

    Watchers, any more recent experiences with this?

  6. 6 Posted by ALEX k on 09 Feb, 2011 11:38 AM

    ALEX k's Avatar

    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

  7. 7 Posted by garus on 22 Feb, 2011 02:00 PM

    garus's Avatar

    ALEX, you do realize Ubuntu IS Debian?

  8. Support Staff 8 Posted by Nick Quaranto on 27 May, 2011 12:27 AM

    Nick Quaranto's Avatar

    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.

  9. Nick Quaranto closed this discussion on 27 May, 2011 12:27 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM
18 Oct, 2014 08:39 PM
16 Oct, 2014 12:41 PM
06 Oct, 2014 02:30 PM