0% [Connecting to archive.ubuntu.com] – Ubuntu

apt-get error ubuntu

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 🙂

Introduction to IAAC [Infrastructure As A Code] tools

It’s time that I had to write an article on IAAC. All giant’s infra are now set and manage as IAAC. Infrastructure As A Code is shorted as IAAC.

I hope you guys are already aware of these tools and you are already started working on that. This is a simple, straight intro to those tools. This will help you to start your journey as an automation engineer.

Post navigation

Arunlal Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

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
I like to travel. My travelogues are published at Trip Mentor

3 thoughts on “0% [Connecting to archive.ubuntu.com] – Ubuntu

    1. try it
      to disable IPV6 on Linux/Ubuntu, please follow the steps below:

      1 Open Terminal

      2 Enter gksudo gedit /etc/sysctl.conf and open the configuration file and add the following lines at the end

      net.ipv6.conf.all.disable_ipv6 = 1

      net.ipv6.conf.default.disable_ipv6 = 1

      net.ipv6.conf.lo.disable_ipv6 = 1

      3 After that run $ cat /proc/sys/net/ipv6/conf/all/disable_ipv6

      If it reports ‘1′ means you have disabled IPV6. If it reports ‘0‘ then please follow Step 4 and Step 5.

      4 Type command sudo sysctl -p you will see this in terminal.

      net.ipv6.conf.all.disable_ipv6 = 1

      net.ipv6.conf.default.disable_ipv6 = 1

      net.ipv6.conf.lo.disable_ipv6 = 1

      5 Repeat above “Step 3” and it will now report 1.

Leave a Reply

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