I guess I found the problem. I stuck also at that part. then i ran sudo apt-get update. and that one stuck as well. looked at Internet. It seems it is related to Ipv6 . where connecting over IPv6 on some servers causes them to get stuck at this point. The fix is
Open /etc/gai.conf
Uncomment the following line:
precedence ::ffff:0:0/96 100