# Gem update --system broke rubygems?

**URL:** <https://www.ruby-forum.com/t/gem-update-system-broke-rubygems/85189>\
**Category:** Ruby\
**Created:** [February 11, 2007, 2:24am UTC](https://www.ruby-forum.com/t/gem-update-system-broke-rubygems/85189 "2007-02-11T02:24:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelleysislander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f6c823/32.png) [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Post date:** [February 11, 2007, 2:24am UTC](https://www.ruby-forum.com/t/gem-update-system-broke-rubygems/85189/1 "2007-02-11T02:24:17Z")

</div>

Hi,

I’m running ruby 1.8.5 (2006-08-25) [i686-linux]

I tried:

gem update --system

And, at the end of the install, got the following error:

Successfully built RubyGem  
Name: sources  
Version: 0.0.1  
File: sources-0.0.1.gem  
hook /opt/lib/ruby/gems/1.8/gems/rubygems-update-0.9.2/./post-install.rb  
failed:  
undefined method `post\_install\_message’ for  
#Gem::Specification:0x49ba176c  
Try ‘ruby setup.rb --help’ for detailed usage.  
RubyGems system software updated

Now, subsequent invocations of `gem` produce the following error:

gem list --remote \> gems.txt  
ERROR: While executing gem … (NoMethodError)  
undefined method `refresh’ for #Hash:0x55d0d2d4

gem update --system  
Updating RubyGems…  
ERROR: While executing gem … (NoMethodError)  
undefined method `refresh’ for #Hash:0x5364d414

Anyone else experienced this?

I’ll try reinstalling rubygems from source…

Regards,

Bill

---

<div class="post-metadata">

**Author:** ![kelleysislander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f6c823/32.png) [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Post date:** [February 11, 2007, 2:33am UTC](https://www.ruby-forum.com/t/gem-update-system-broke-rubygems/85189/2 "2007-02-11T02:33:17Z")

</div>

On 2/10/07, Bill K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Now, subsequent invocations of `gem` produce the following error:
> 
> gem list --remote \> gems.txt  
> ERROR: While executing gem … (NoMethodError)  
> undefined method `refresh’ for #Hash:0x55d0d2d4
> 
> gem update --system  
> Updating RubyGems…  
> ERROR: While executing gem … (NoMethodError)  
> undefined method `refresh’ for #Hash:0x5364d414

Something has gone bonkers with your source cache. Mine is in  
~/.gem/source\_cache on OS X. Remove that and you should be able to  
work again.

-austin

---

<div class="post-metadata">

**Author:** ![kelleysislander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f6c823/32.png) [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Post date:** [February 11, 2007, 2:34am UTC](https://www.ruby-forum.com/t/gem-update-system-broke-rubygems/85189/3 "2007-02-11T02:34:17Z")

</div>

> I’ll try reinstalling rubygems from source…

Rats… the reinstall from source appeared to complete without  
errors, but I still get:

gem list --remote \> gems.txt  
ERROR: While executing gem … (NoMethodError)  
undefined method `refresh’ for #Hash:0x4edb22b8

Regards,

Bill

---

<div class="post-metadata">

**Author:** ![kelleysislander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f6c823/32.png) [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Post date:** [February 11, 2007, 2:41am UTC](https://www.ruby-forum.com/t/gem-update-system-broke-rubygems/85189/4 "2007-02-11T02:41:18Z")

</div>

From: “Austin Z.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> > ```
> > undefined method `refresh' for #<Hash:0x5364d414>
> > 
> > ```
> 
> Something has gone bonkers with your source cache. Mine is in  
> ~/.gem/source\_cache on OS X. Remove that and you should be able to  
> work again.

Thanks Austin, that fixed it!

(Mine was in: /opt/lib/ruby/gems/1.8/source\_cache )

Regards,

Bill
