How to get past the “Could not find rubygems-update (> 0) in any repository” Error
- 1 Comment
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:
#which will give you something like this:
- VERSION: 0.9.2 (0.9.2)
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- GEM PATH:
- REMOTE SOURCES:
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
-For Ruby Gems 0.9.0 or newer
After this you should be able to run:
gem install rails -y
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.