I'm running 14.04 LTS on EC2. I was trying to run apt-get update.
ubuntu@splunk:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
The error that I'm getting is:
ubuntu@splunk:~$ sudo apt-get update
Err http://us.archive.ubuntu.com trusty-security InRelease
Err http://us.archive.ubuntu.com trusty-updates InRelease
Err http://us.archive.ubuntu.com trusty-security Release.gpg
Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]
Err http://us.archive.ubuntu.com trusty-updates Release.gpg
Cannot initiate the connection to us.archive.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]
0% [Connecting to archive.ubuntu.com (91.189.88.162)]
I've confirmed my sources and ran the following but it still wasn't working
sudo apt-get autoremove
$ sudo apt-get --purge remove && sudo apt-get autoclean
$ sudo apt-get -f install
$ sudo apt-get update
$ sudo apt-get upgrade && sudo apt-get dist-upgrade
$ sudo dpkg-reconfigure -a
$ sudo dpkg --configure -a
It's not a network issue but I am able to get run wget out to splunk.com on http and DNS resolution is completing.
curl -v ipv4.icanhazip.com
againstcurl -v ipv6.icanhazip.com
. Do they both succeed? It sounds as if you have IPv6 available in your VPC but you do not actually have IPv6 connectivity configured correctly -- perhaps only IPv4 is working as expected. DNS always works in VPC so it isn't a valid test of connectivity and the web site you tested might have resolved to an IPv4 address (you didn't mention). Not sure, since the last line of apt-get output is clipped.curl -v -6 ipv6.icanhazip.com
.