Dec 2 2007

How to get past the “Could not find rubygems-update (> 0) in any repository” Error

If you're new here, you may want to start with my most popular posts. Then, subscribe to my RSS feed to stay updated. Thanks for visiting!

Google Query: Could not find rubygems-update (> 0) in any repository

While I was installing Ruby on Rails in Ubuntu Gutsy Gibbon (7.10), I ran into the above error when I ran the command to install Rails:
sudo gem install rails -y

On one of my Ubuntu machines, I was lucky enough to just run the command again and get past the error. However, on another Ubuntu install, I could not get past this error.

I eventually found the answer to the problem at Army of Evil Robots.

You need to take the following steps to delete the RubyGems Cache file:
gem env
#which will give you something like this:
RubyGems Environment:
- VERSION: 0.9.2 (0.9.2)
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- GEM PATH:
- /usr/lib/ruby/gems/1.8
- REMOTE SOURCES:
- http://gems.rubyforge.org

Then…
rm -f /PATH/TO/GEM/PATH/FROM/ABOVE/source_cache

Then you may need to also do the following:
-For Ruby Gems 0.8.x or lower
gem update --system

Or

-For Ruby Gems 0.9.0 or newer
gem update

After this you should be able to run:
gem install rails -y

Happy coding!

Technorati Tags: , ,

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

TAGS:

1 Comments on this post

Trackbacks

  1. Jemi said:

    I’m new to Ruby On Rails,and im interested to work in it.I follow the steps that you have specified here.

    In step2 i get an error like this,

    sudo ruby setup.rb
    sudo: ruby: command not found

    /rubygems-1.0.1$ ls
    bin doc gemspecs lib pkgs README scripts test
    ChangeLog examples GPL.txt LICENSE.txt Rakefile redist setup.rb TODO
    foss29@foss29-desktop:~/rubygems-1.0.1$

    Request you to specify how to resolve it

    December 13th, 2008 at 4:44 am

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

Sponsors

Recent Readers

JOIN MY COMMUNITY!
                  Computers Blogs - Blog Top Sites