Page 1 of 1
Having issue with apt-get update
Posted: Fri Oct 03, 2025 5:04 am
by T4B
hey someone can help me with this ?
when i run apt-get update getting this

after visiting
https://packages.sury.org/php/dists/bookworm/InRelease

Re: Having issue with apt-get update
Posted: Fri Oct 03, 2025 5:15 pm
by myVesta
I'm not sure.
It is a Sury repo issue; it should be reported to sury.org .
Re: Having issue with apt-get update
Posted: Wed Oct 08, 2025 8:20 pm
by bianca446
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.
Re: Having issue with apt-get update
Posted: Thu Oct 30, 2025 4:46 pm
by Akash Jana
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!