This morning I woke up to this error while trying to update a gem version:
bundle /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/source.rb:579:in ``': No such file or directory - git cat-file -e c648d229fa981c5f9bcbd8ac6baa520582c248c6 (Errno::ENOENT) from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/source.rb:579:in `git' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/source.rb:677:in `block in has_revision_cached?' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/source.rb:703:in `chdir' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/source.rb:703:in `in_cache' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/source.rb:677:in `has_revision_cached?' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/source.rb:645:in `cache' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/source.rb:551:in `specs' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/definition.rb:147:in `block in resolve' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/definition.rb:145:in `each' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/definition.rb:145:in `resolve' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/definition.rb:90:in `specs' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/definition.rb:85:in `resolve_remotely!' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/installer.rb:43:in `run' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/installer.rb:8:in `install' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/cli.rb:219:in `install' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch' from /home/ignacio/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in `start'
After some wondering, I found out the origin of the problem: after installing Ubuntu 10.04 I hadn’t installed git :D. Certainly the error message could be improved. Now I just have to
sudo aptitude install git-core
