I had an issue where I installed Ubuntu 14.04 in VirtualBox and apt-get kept hanging at 0%. I noticed it was automatically attempting to use IPv6 because normally apt-get says connecting to us.archive.ubuntu.com the IPv4 address (eg 0% connecting to ...