Note: people using hosted dev configurations (aka dreamhacks) shouldn't need to run "sudo apt-get git-core" (and likely can't). That's something the Dreamhack maintainer will do for you (or maybe already did - it's once for alldreamhacks on the same server).
Precision for Dreamhack users