I have Ec2 instance on AWS with Amazon Ubuntu.
When i try to download any thing, I am unable to do so.
For Ex:
~# apt-get update
0% [Connect
You EC2 instances's Security groups is not configured to let it reach internet. You need to have an Outbound rule for all traffic to 0.0.0.0/0. In EC2-Classic, this is already in place and hence you need not worry. However, if this is in VPC, then you need to add this rule.
Also, Apart from what is said above, could you check whether any iptables rules causing any issue.