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 A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

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

  1. This did not solve the issue for me . I am still facing the same issue. Do you have some other alternative?

    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.

      1. Seguí todo tus pasos en Ubuntu 14.04,e marca que mi IPv6 está desactivada y aún asi sigo en las mismas al querer instalar algo y que salga 0% [conectando a mx.archive.ubuntu.com (2001:67c…..)

  2. Ha mi no se porque pero cuando pongo en ubuntu con wsl2 sudo apt-get update me sale error al conectar a archivos.ubuntu.com y security.ubuntu.com, y la vd que he probado todo los comando que salian en en internet, en youtube y encima los de esta pagina tambien, y ninguno me funciona.Alguien me prodia decir a que se debe el motivo, o si es problema del ordenador o algo asi, o es que ya esta instalado los apt-get

Leave a Reply

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