The instructions here are for Ubuntu 12.04 running the default desktop environment, Unity.
Open the Ubuntu Software Center and make sure that each of the following packages is installed. (I have found it easiest to enter the name in the search window.)
And if you also wish to do 32-bit development on the system include the following packages: