1

I started my journey with apt-get update. I received error message

Err:1 http://ke.archive.ubuntu.com/ubuntu focal InRelease
  Cannot initiate the connection to ke.archive.ubuntu.com:80 (2c0f:fe40:8001:10::1). - connect (101: Network is unreachable) 
  Could not connect to ke.archive.ubuntu.com:80 (197.155.77.1), connection timed out

Then I followed the possible solution in this similar question. I edited /etc/apt/sources.list to replace ke.archive.ubuntu.com with archive.ubuntu.com which is the main server. The new error was now:

Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable)
  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable)
  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable)
  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable)
  Cannot initiate the connection to archive.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable)
  Could not connect to archive.ubuntu.com:80 (91.189.91.82), connection timed out 
  Could not connect to archive.ubuntu.com:80 (91.189.91.83), connection timed out 
  Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out 
  Could not connect to archive.ubuntu.com:80 (91.189.91.81), connection timed out 
  Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out

I even tried forcing IP4 with command apt-get -o Acquire::ForceIPv4=true update, but got error message:

Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  Could not connect to archive.ubuntu.com:80 (185.125.190.39), connection timed out 
  Could not connect to archive.ubuntu.com:80 (91.189.91.81), connection timed out 
  Could not connect to archive.ubuntu.com:80 (185.125.190.36), connection timed out 
  Could not connect to archive.ubuntu.com:80 (91.189.91.82), connection timed out 
  Could not connect to archive.ubuntu.com:80 (91.189.91.83), connection timed out

This tells me that the previous attempt tried both IP6 and IP4.

I also tried editing /etc/resolv.conf to change nameserver to 8.8.8.8 and then to 1.1.1.1 but no change. Even tried uncommenting all.

  1. The command ping -c 4 archive.ubuntu.com gives 4 packets transmitted, 4 received, 0% packet loss, time 3000ms
  2. The command nslookup archive.ubuntu.com gives the IP addresses above
  3. I am connected to the system via SSH

What else can I do to troubleshoot the issue?

0 Answers0