I found ipv6 issues in ubunut server, mostly i get stuck at apt-get update just like this

user@ubuntu:~$ sudo apt-get update
0% [Connecting to archive.ubuntu.com (2001:67c:1360:8c01::1a)] [Connecting to security.ubuntu.com (2001:67c:1360:8c01::1...

Solution is very simply disable ipv6 using below command and you are ready to go.

user@ubuntu:~$ sudo su root -c    "echo 1 >  /proc/sys/net/ipv6/conf/all/disable_ipv6"

You find few others workaround s to this issue  but ultimately you have to disable ipv6 to get your issue solved.

gil ...