ruby gem update system is disabled on Debian

Problem:

ERROR:  While executing gem ... (RuntimeError)
    gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.

Unfortunately the apt-get update does not help at all.

Solution:

gem install update_rubygems
cd /var/lib/gems/1.8/bin
./update_rubygems

or

gem install rubygems-update
cd /var/lib/gems/1.8/bin
./update_rubygems

Posted by wojtek Sun, 12 Apr 2009 18:49:00 GMT




Comments

Leave a response

  1. portnsap about 1 month later:

    Thank you man

  2. gonzalovalenzuela about 1 month later:

    Thanks! this post save me a lot of time!

  3. Jordan 2 months later:

    Thank you! I have spent the last 2 hours trying to fix this, I have about 4 versiong of “gem” on the system it seems and all but one were upgraded… Gah!

    Thank you!

  4. Dwayne 3 months later:

    Thanks man. Saved me here.

  5. Laurence A. Lee 4 months later:

    If you’re following this guide, and you get a message like “Could not find RubyGem builder”, try installing an older version of update_rubygems. I could not get 1.3.5 to work, but 1.3.4 worked fine on a Debian Lenny machine.

    gem install update_rubygems –version=1.3.4
    cd /var/lib/gems/1.8/bin
    ./update_rubygems

  6. rvnikita 9 months later:

    awesome! thank’s you!

  7. Dave about 1 year later:

    Thanks - saved me a lot of grief :-)

Leave a comment