0% [Connecting to in.archive.ubuntu.com (2001:67c:1560:8001::14)] [Connecting to security.ubuntu.com (2001:67c:1360:8001::17)]

  • You may try disabling ipv6. – bistoco Jun 1 '18 at 13:07
  • Do you use any VPN. if so, disable VPN and try again, if still not working try disable ipv6. – Cornea Valentin Jun 1 '18 at 13:09

You receive this error because APT is trying to use IPv6. Quick fix it's to set APT only for IPv4, run the following command to create a configuration file for APT.

sudo nano /etc/apt/apt.conf.d/99force-ipv4

Copy and paste the following line into the file.

Acquire::ForceIPv4 "true";

Save and close the file. From now on, APT will use IPv4 only.

Not the answer you're looking for? Browse other questions tagged or ask your own question.