Get them straight from their source – RubyGems and rake
Don’t ever install rake and or rubygems from debs (or any other distro package manager). For rubygems, get from rubygems.org, for rake, install it through gem. If you are using Ubuntu, for example, don’t use apt-get to install rake, nor rubygems, you’ll waste your time wondering aftewards why rake can’t find gems, for example.
