0% [Connecting to in.archive.ubuntu.com takes too long time : <p>whenever i run command who have to connect to archive.ubuntu.com, that command takes too long time to complete it task. </p>

<pre><code>sudo apt install oracle-java8-installer -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gsfonts-x11 java-common oracle-java8-set-default
Suggested packages:
  binfmt-support visualvm ttf-baekmuk | ttf-unfonts | ttf-unfonts-core ttf-kochi-gothic | ttf-sazanami-gothic ttf-kochi-mincho
  | ttf-sazanami-mincho ttf-arphic-uming
The following NEW packages will be installed:
  gsfonts-x11 java-common oracle-java8-installer oracle-java8-set-default
0 upgraded, 4 newly installed, 0 to remove and 29 not upgraded.
Need to get 54.7 kB of archives.
After this operation, 272 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main amd64 oracle-java8-installer all 8u171-1~webupd8~0 [33.3 kB]
Get:2 http://ppa.launchpad.net/webupd8team/java/ubuntu artful/main amd64 oracle-java8-set-default all 8u171-1~webupd8~0 [6,846 B]
0% [Connecting to in.archive.ubuntu.com (2001:67c:1360:8001::21)]
</code></pre>

<p>ping 8.8.8.8 :</p>

<pre><code>ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=62.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=51.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=67.5 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=56 time=58.4 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=56 time=71.9 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=56 time=71.0 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=56 time=60.5 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=56 time=49.0 ms
^C
--- 8.8.8.8 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7005ms
rtt min/avg/max/mdev = 49.028/61.584/71.951/7.865 ms
</code></pre>

<p>we can see above my speed is not slow .</p>

<p><a href="https://i.stack.imgur.com/qca3s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qca3s.png" alt="and ipv4 is :"></a></p>

<p>please help me to avoid this problem.every time i got stuck and have to wait until task completed.</p>
