Unable to update Ubuntu 24.04

For the last few days I have been unable to update Ubuntu 24.04.1 (server). Sudo apt update says connections to ca.archive.ubuntu.com and security.ubuntu.com are refused. I can successfully ping both hosts. I saw many similar messages that have been posted over the last few years so I assumed this is a temporary issue. But when I visit Repositories/Ubuntu - Community Help Wiki I get “503 Service Unavailable - No server is available to handle this request.” There is no information provided at this site on a temporary disruption. What gives?

Icocea - Welcome to discourse :smiley:
I see http://ca.archive.ubuntu.com/ as up -

and can confirm that http://help.ubuntu.com/community/Repositories/Ubuntu is unreponsive - noted on http://www.isitdownrightnow.com/ that the site is under maintenance. As to the truth in that I can not say.

-Hope this helps -

1 Like

Please show us the complete output of sudo apt update

1 Like
$ sudo apt update
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://ca.archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://ca.archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:4 http://ca.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Hit:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Hit:8 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://ca.archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://ca.archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:4 http://ca.archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:2 http://ca.archive.ubuntu.com/ubuntu noble InRelease
Ign:3 http://ca.archive.ubuntu.com/ubuntu noble-updates InRelease
Ign:4 http://ca.archive.ubuntu.com/ubuntu noble-backports InRelease
Err:1 http://security.ubuntu.com/ubuntu noble-security InRelease
  Could not connect to security.ubuntu.com:80 (91.189.91.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (91.189.91.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (91.189.91.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused)
Err:2 http://ca.archive.ubuntu.com/ubuntu noble InRelease
  Could not connect to ca.archive.ubuntu.com:80 (91.189.91.82). - connect (111: Connection refused) Could not connect to ca.archive.ubuntu.com:80 (91.189.91.81). - connect (111: Connection refused) Could not connect to ca.archive.ubuntu.com:80 (91.189.91.83). - connect (111: Connection refused)
Err:3 http://ca.archive.ubuntu.com/ubuntu noble-updates InRelease
  Unable to connect to ca.archive.ubuntu.com:http:
Err:4 http://ca.archive.ubuntu.com/ubuntu noble-backports InRelease
  Unable to connect to ca.archive.ubuntu.com:http:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/noble/InRelease  Could not connect to ca.archive.ubuntu.com:80 (91.189.91.82). - connect (111: Connection refused) Could not connect to ca.archive.ubuntu.com:80 (91.189.91.81). - connect (111: Connection refused) Could not connect to ca.archive.ubuntu.com:80 (91.189.91.83). - connect (111: Connection refused)
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/noble-updates/InRelease  Unable to connect to ca.archive.ubuntu.com:http:
W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dists/noble-backports/InRelease  Unable to connect to ca.archive.ubuntu.com:http:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/noble-security/InRelease  Could not connect to security.ubuntu.com:80 (91.189.91.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (91.189.91.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (91.189.91.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.```

Please elaborate on ANY other network problems you may be experiencing.

I am not aware of any networking problems other than the one I mentioned. Btw, the problem is apparent with the Ubuntu firewall enabled or disabled.

I ssh into the Ubuntu server. Here is the output from a ping and a curl command:

$ ping www.ibm.com
PING e7817.dscx.akamaiedge.net (23.10.155.57) 56(84) bytes of data.
64 bytes from a23-10-155-57.deploy.static.akamaitechnologies.com (23.10.155.57): icmp_seq=1 ttl=51 time=8.50 ms
64 bytes from a23-10-155-57.deploy.static.akamaitechnologies.com (23.10.155.57): icmp_seq=2 ttl=51 time=8.10 ms```

$ curl -I --http2 https://www.ubuntu.com/
HTTP/2 301
server: nginx/1.14.0 (Ubuntu)
date: Tue, 24 Dec 2024 06:38:04 GMT
content-type: text/html
content-length: 162
location: https://ubuntu.com/
strict-transport-security: max-age=15724800
link: <https://assets.ubuntu.com>; rel=preconnect; crossorigin, <https://assets.ubuntu.com>; rel=preconnect, <https://res.cloudinary.com>; rel=preconnect
x-cache-status: HIT from content-cache-il3/2```

Please elaborate on the Ubuntu Server: VPS? Container? Bare metal? If virtualized, what host?

I am not an expert on some forms of server networking, so other volunteers with greater experience with whatever you have are welcomed to contribute.

I would counsel patience – some answers may be delayed due to the holidays.

1 Like

Bare metal, dual boot with Windows 11 (Ubuntu server is default).

Problem solved. I reset an older Cisco router on my LAN and the Ubuntu updates now work as expected.

For reference, the problem got worse before I found the solution: all outgoing http connections were refused. For example, any curl -v http://example.com:80 was refused. Interestingly though, the problem was apparent with the Ubuntu server but not with a Windows 10 machine on the same LAN where the curl commands were successful.