Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"gem update --system is disabled on Debian" error

When I try to update rubygems (by running 'gem update --system') I get this error:

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.

Any idea what might be wrong and how I can fix it?

like image 626
conbask Avatar asked Sep 04 '10 20:09

conbask


1 Answers

There are two ways: get rid of the debian ruby package and install ruby from source, or you can follow the instrucions given to you:

RubyGems can be updated using the official Debian repositories by aptitude or apt-get.

the rubygems with debian is managed by apt, and so you need to update it with it. If you don't want to, you need to install ruby on you own, without using apt. Or at least you need to install ruby-gems on you own. Try this:

[sudo] apt-get remove rubygems
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar xzf rubygems-1.3.7.tgz
cd rubygems-1.3.7
[sudo] ruby setup.rb
like image 109
jigfox Avatar answered Oct 11 '22 23:10

jigfox