How to get past the “Could not find rubygems-update (> 0) in any repository” Error
- 0 Comments
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: Ubuntu, Gutsy Gibbon, Ruby On Rails
Related posts:
- How to install ruby on rails on Ubuntu Gutsy Gibbon (7.10)
- How to get past the “(Gem::Exception) SSL is not installed on this system” error when installing Ruby on Rails
- How to work around the “no address associated with hostname.(SocketError)” when installing Rails
- How to get past the `require’: no such file to load — mkmf (LoadError) when installing the “mysql” gem
- How to get past the “please insert the disc labeled ‘Ubuntu 7.10 _Gutsy Gibbon’” error


