Debian/lennyで新しいRubyGemを使う

gem update --systemを無理矢理するより、apt-pinningを使った方がまだマシだとおもうよ!
gem update --systemをかけてしまうと、apt管理されていたファイル構成が変わったりするので正しくremoveできなくなったりとても危険。

 kouhei@pubsrv:~$ cat /etc/apt/preferences 
 Package: *
 Pin: release a=stable
 Pin-Priority: 700
 
 Package: *
 Pin: release a=testing
 Pin-Priority: 650
 kouhei@pubsrv:~$ cat /etc/apt/sources.list
 # deb http://ftp.jp.debian.org/debian/ etch main
 
 deb http://ftp.jp.debian.org/debian/ lenny main non-free contrib
 deb-src http://ftp.jp.debian.org/debian/ lenny main non-free contrib
 
 deb http://security.debian.org/ lenny/updates main non-free contrib
 deb-src http://security.debian.org/ lenny/updates main non-free contrib
 
 deb http://ftp.jp.debian.org/debian/ testing main non-free contrib
 deb-src http://ftp.jp.debian.org/debian/ testing main non-free contrib
 
 deb http://security.debian.org/ testing/updates main non-free contrib
 deb-src http://security.debian.org/ testing/updates main non-free contrib
 kouhei@pubsrv:~$ sudo apt-get update && sudo apt-get install rubygems/testing rubygems1.8/testing && sudo gem update