Gem::RemoteSourceException

I'm using :
ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin7.3.1]
and try to install ubygems-update by gem and i got :
$ sudo gem install rubygems-update
ERROR: While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 302

also installing rubygems-1.7.2 or 1.8.4, by sudo ruby setup.rb; got
errors...

what is the correct way to get out of this prob with
"Gem::RemoteSourceException" ?

I'm using :
ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin7.3.1]
and try to install ubygems-update by gem and i got :
$ sudo gem install rubygems-update
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302

Please check the sources you have defined in RubyGems:

gem sources --list

It needs to contain http://rubygems.org

If http://gems.rubyforge.org is present, please remove it with "gem
sources --delete URL" command

also installing rubygems-1.7.2 or 1.8.4, by sudo ruby setup.rb; got
errors...

You're using an old version of Ruby (1.8.6) and newer versions of
RubyGems do not support it, so either the gem installation or the
manual installation are going to fail.

The latest version that did support was 1.3.6

···

On May 27, 6:00 am, unbewusst.s...@fai.invalid (Une Bévue) wrote:

--
Luis Lavena

First; thanks a lot for your clear answer !

Please check the sources you have defined in RubyGems:

gem sources --list

It needs to contain http://rubygems.org

How do I add it ?

If http://gems.rubyforge.org is present, please remove it with "gem
sources --delete URL" command

it is the sole I had :

$ gem sources --list
*** CURRENT SOURCES ***

http://gems.rubyforge.org/

But I'm unable to delete it :

$ sudo gem sources --delete http://gems.rubyforge.org/
ERROR: While executing gem ... (OptionParser::InvalidOption)
    invalid option: --delete

> also installing rubygems-1.7.2 or 1.8.4, by sudo ruby setup.rb; got
> errors...
>

You're using an old version of Ruby (1.8.6) and newer versions of
RubyGems do not support it, so either the gem installation or the
manual installation are going to fail.

The latest version that did support was 1.3.6

my actual gem version is 1.2.0
then do you recommand installing 1.3.6 ?

···

Luis Lavena <luislavena@gmail.com> wrote:

i found it :

$ sudo gem sources -a http://rubygems.org
http://rubygems.org added to sources

iBook:~ yt$ gem sources --list
*** CURRENT SOURCES ***

http://gems.rubyforge.org/
http://rubygems.org

but i still need a means to delete http://gems.rubyforge.org/

···

Une Bévue <unbewusst.sein@fai.invalid> wrote:

How do I add it ?

Use -r instead of -a.

Try this to find out more:

    gem help sources

···

On Sat, May 28, 2011 at 12:15:29AM +0900, Une Bévue wrote:

but i still need a means to delete http://gems.rubyforge.org/

--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

i found also right now, after having installed "rubygems-1.3.6" i had
just to modify ~/.gemrc

i do not have anymore error message abour RemoteSourceException !

···

Une Bévue <unbewusst.sein@fai.invalid> wrote:

but i still need a means to delete http://gems.rubyforge.org/