how to upgrade mongodb 2.2 to 2.4 properly
You have to go to their repo for downloads that old:
http://downloads-distro.mongodb.org/repo/

Pick your distro (for example, if Ubuntu pick Debian), drill in to the arch (x86/x64) and pick your download.  

example:
Ubuntu 64 bit 2.4 download:
http://downloads-distro.mongodb.org/repo/debian-sysvinit/dists/dist/10gen/binary-amd64/mongodb-10gen_2.4.14_amd64.deb

Try to always go for the latest release of any numbered version (the link is for 2.4.14) and avoid .0 versions (such as 2.4.0).