Having issue with apt-get update

Post Reply
User avatar
T4B
Posts: 173
Joined: Sat Jul 11, 2020 9:44 am
Been thanked: 5 times

hey someone can help me with this ?

when i run apt-get update getting this
Image
after visiting https://packages.sury.org/php/dists/bookworm/InRelease
Image
User avatar
myVesta
Site Admin
Posts: 998
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 10 times
Been thanked: 6 times

I'm not sure.
It is a Sury repo issue; it should be reported to sury.org .
bianca446
Posts: 3
Joined: Sat Oct 04, 2025 8:22 pm

Hey, I’ve seen this happen before. It usually means there’s an issue with the repository’s signing key or the repo configuration.

A quick way to fix it is to make sure you’ve added the GPG key for that PHP repo and that your /etc/apt/sources.list.d/ entry is correct. You can try running:

wget -qO - https://packages.sury.org/php/apt.gpg | sudo gpg --dearmor -o /usr/share/keyrings/php-archive-keyring.gpg


And then update the source list to reference the keyring:

deb [signed-by=/usr/share/keyrings/php-archive-keyring.gpg] https://packages.sury.org/php/ bookworm main


After that, run sudo apt-get update again — it should fix the warning.
Akash Jana
Posts: 1
Joined: Tue Sep 16, 2025 9:21 am

It looks like the SSL certificate for packages.sury.org has expired, which is why apt-get update is showing the 503 error.
This issue is on the repository’s side, not on your server.
You can try these steps:
Run:
sudo apt-get clean
sudo apt-get update --allow-unauthenticated

(only temporarily — not for production use)

If the error still appears, wait a few hours. The maintainer (Ondřej Surý) usually renews the certificate quickly.

Alternatively, you can disable the PHP repository temporarily by commenting out the line in
/etc/apt/sources.list.d/php.list,
and run sudo apt-get update again.
Once the SSL certificate is renewed, re-enable the repo and update normally.
Hope this helps!
Post Reply