/ What to do if you have an error while updating the repo ?
I just had an error while trying to update my server :
[multiple sources listed here]
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Failed to fetch https://packages.sury.org/php/dists/bullseye/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php buster InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
I then found this issue in the sury bug tracker : Apt key for Debian Package is expiring on 16.02.2024 · Issue #2074 · oerdnj/deb.sury.org · GitHub
No nice 1 liner to fix this, but I create this topic just because I can not bump the one created 2 years ago, with a solution : Something went wrong while updating the cache of APT (due to SURY)
apt-key del 95BD4743; wget -nv -O - "https://packages.sury.org/php/apt.gpg" | apt-key add -
(On my server, I had to run this adaptation : sudo apt-key del 95BD4743; wget -nv -O - "https://packages.sury.org/php/apt.gpg" | sudo apt-key add -
Hopping it will help
PS : It seems that a better solution is on it’s way, but only maybe for next time, see you in 2 years.
Que faire en cas d’erreur lors de l’update des paquets ?
Je viens d’avoir cette erreur en essayant de mettre à jour mon serveur :
[plusieurs fichier source listés ici]
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Failed to fetch https://packages.sury.org/php/dists/bullseye/InRelease The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php buster InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key
J’ai ensuite trouvé ce ticket sur le bug tracker de sury : Apt key for Debian Package is expiring on 16.02.2024 · Issue #2074 · oerdnj/deb.sury.org · GitHub
Mais pas de joli fix en une ligne comme il y a 2 ans, mais ce topic a ce qu’il faut : Something went wrong while updating the cache of APT (due to SURY)
apt-key del 95BD4743; wget -nv -O - "https://packages.sury.org/php/apt.gpg" | apt-key add -
(Sur mon serveur j’ai du l’exécuter comme ça : sudo apt-key del 95BD4743; wget -nv -O - "https://packages.sury.org/php/apt.gpg" | sudo apt-key add -
En espérant que ça aide
PS : Il semblerait qu’une solution plus propre soit en cours, mais ça ne sera peut-être disponible que la prochaine fois, à dans 2 ans !