I have ubuntu 12.04 LTS installed in as a VM in Oracle virtual box. I am able to browse from firefox but trying to connect from command prompt to update is failing. I also tried to change software sources but even then it is erroring out. The error is "Please check your Internet Connection".
PS : I am using NAT for networking.
What might be is issue and how to correct it?