# Unable to use gem cleanup on ubuntu feisty

**URL:** <https://www.ruby-forum.com/t/unable-to-use-gem-cleanup-on-ubuntu-feisty/104403>\
**Category:** Rails\
**Created:** [May 17, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/unable-to-use-gem-cleanup-on-ubuntu-feisty/104403 "2007-05-17T16:34:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5e925/32.png) [@vince](https://www.ruby-forum.com/u/vince)\
**Post date:** [May 17, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/unable-to-use-gem-cleanup-on-ubuntu-feisty/104403/1 "2007-05-17T16:34:47Z")

</div>

anyone else having this problem? i got the same error on two clean  
installs.

* * *

## it@T43:~$ ruby --version ruby 1.8.5 (2006-08-25) [i486-linux] it@T43:~$ rails --version Rails 1.2.3 it@T43:~$ gem --version 0.9.3 it@T43:~$ sudo gem cleanup Password: ERROR: While executing gem … (RuntimeError) Unknown command cleanup

---

<div class="post-metadata">

**Author:** ![vince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5e925/32.png) [@vince](https://www.ruby-forum.com/u/vince)\
**Post date:** [May 17, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/unable-to-use-gem-cleanup-on-ubuntu-feisty/104403/2 "2007-05-17T19:31:26Z")

</div>

I noticed the same thing here, on my SuSE build.

It looks like the “cleanup” option has been removed, either by choice or  
accident in the latest gem release.

Phil

---

<div class="post-metadata">

**Author:** ![vince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5e925/32.png) [@vince](https://www.ruby-forum.com/u/vince)\
**Post date:** [May 19, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/unable-to-use-gem-cleanup-on-ubuntu-feisty/104403/3 "2007-05-19T18:22:47Z")

</div>

Well I noticed the same thing on my machine (SuSE) but not only with  
‘cleanup’, also with

rubygems-0.9.3 # gem update rails --include-dependencies  
Updating installed gems…  
ERROR: While executing gem … (NoMethodError)  
undefined method `refresh’ for #Hash:0xb795fba0

Any suggestions what goes wrong here ?

LuCa

---

<div class="post-metadata">

**Author:** ![vince](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b5e925/32.png) [@vince](https://www.ruby-forum.com/u/vince)\
**Post date:** [May 23, 2007, 12:25am UTC](https://www.ruby-forum.com/t/unable-to-use-gem-cleanup-on-ubuntu-feisty/104403/4 "2007-05-23T00:25:40Z")

</div>

On Sat, 2007-05-19 at 18:22 +0200, LuCa wrote:

> Well I noticed the same thing on my machine (SuSE) but not only with  
> ‘cleanup’, also with
> 
> rubygems-0.9.3 # gem update rails --include-dependencies  
> Updating installed gems…  
> ERROR: While executing gem … (NoMethodError)  
> undefined method `refresh’ for #Hash:0xb795fba0
> 
> Any suggestions what goes wrong here ?

* * *

clear the source\_cache

# locate source\_cache

/usr/lib/ruby/gems/1.8/source\_cache

rm /usr/lib/ruby/gems/1.8/source\_cache

–  
Craig W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
