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
I figured out how to get apt-get to work again.
Edit gai.conf:
sudo vim /etc/gai.conf
change line ~54 to uncomment the following:
precedence ::ffff:0:0/96 100
write and quit:
:wq
CAUTION
Look out line 50 which looks almost identical:
precedence ::ffff:0:0/96 10
This is the wrong line. Go ~4 lines down and you'll find the correct line to uncomment because it ends with 100 instead of 10