0% [Connecting to archive.ubuntu.com]

Yesterday, I got one error with “apt-get” command in one of our server which has Ubuntu 12.04 OS. After the Y/N confirmation of apt-get installation command the server went to un-responded state for 4-6 minutes.
Error details are pasted below:

0% [Connecting to archive.ubuntu.com(2001:67c:1360:8c01::1a)]

Solution:
I figured out the problem. I had to disable IPv6 connectivity, as The Lord Of Time pointed out.
Running the following command in Terminal tells if IPv6 is enabled or not:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6
0 means its enabled
1 means its disabled

To disable IPv6 from within Terminal, enter the following and reboot:

echo "#disable ipv6" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf

After boot, re-run the first command(cat /proc/sys/net/ipv6/conf/all/disable_ipv6), and it should be 1 now.

OR
You may use the below pasted command to disable IPv6 connectivity.

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

That’s it 🙂

Post navigation

Arunlal Ashok

Cloud Infrastructure / DevOps Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

2 thoughts on “0% [Connecting to archive.ubuntu.com]

Leave a Reply

Your email address will not be published. Required fields are marked *