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.
- The command
ping -c 4 archive.ubuntu.com
gives4 packets transmitted, 4 received, 0% packet loss, time 3000ms
- The command
nslookup archive.ubuntu.com
gives the IP addresses above - I am connected to the system via SSH
What else can I do to troubleshoot the issue?
http//ke.archive.ubuntu.com
orhttp://archive.ubuntu.com
. Is it possible to open the page and to see an Index? – netbat Mar 06 '24 at 11:32wget http://archive.ubuntu.com
which is the cli command for your browser suggestion, and I getResolving ...
,Connecting ...connected.
and thenConnection timed out.
. There might be a solution here, Thanks. – contemplator Mar 06 '24 at 12:03wget https://yahoo.com/index.php
and check content of index.php file. – netbat Mar 06 '24 at 12:32wget
commands timeout. – contemplator Mar 06 '24 at 12:47ftp test.rebex.net
login=demo, password=password and then independently check your MTU size using destinationarchive.ubuntu.com
according the MTU verifying chapter in https://askubuntu.com/questions/1393338/how-to-set-mtu-permanently-in-cli – netbat Mar 06 '24 at 13:39ifconfig
showsmtu 1500
andping xxx.xxx.xxx.xxx -c 2 -M do -s 2000
yieldsping: local error: message too long, mtu=1500
. UFW is disabled. – contemplator Mar 07 '24 at 12:01