/ 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/buster/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 : Expired Debian key issue · Issue #1575 · oerdnj/deb.sury.org · GitHub
With this nice one line fix : 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
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 :
The https://packages.sury.org/ repo is not enabled on YunoHost by default, most likely some YunoHost app you both installed added it as a dependency. If you can figure out which app it was you should file an issue asking them to push an update adding the new key.
No you shouldn’t, many apps probably rely on it, and once you have some packages installed from sury it’s quite hard to get back to a “vanilla-debian only” because of the way apt / .deb works. It’s no big deal to have sury enabled nowadays.
Ok, so does I have a risk to brake something if I comment the repo ? I need first be sure there’s no php packages from this repo ? Sorry, I haven’t read well your post. So I can still use the sury repo, thanks.
Strictly speaking it won’t break anything to comment the repo, it’s “just” that you’re likely to not receive any upgrade for the php packages (at best) or that once Debian catches-up with the versions (could take years I guess), it makes everything explode (at worst)
Something went wrong while updating the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb http://asi-fs-n.contabo.net/debian buster main non-free contrib
sources.list:deb-src http://asi-fs-n.contabo.net/debian buster main non-free contrib
sources.list:deb http://security.debian.org/debian-security buster/updates main contrib non-free
sources.list:deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
sources.list:deb http://asi-fs-n.contabo.net/debian buster-updates main contrib non-free
sources.list:deb-src http://asi-fs-n.contabo.net/debian buster-updates main contrib non-free
sources.list.d/mobilizon.list:deb http://packages.erlang-solutions.com/debian buster contrib
sources.list.d/crystal.list:deb https://dl.bintray.com/crystal/deb all stable
sources.list.d/yunohost.list:deb https://forge.yunohost.org/debian/ buster stable
sources.list.d/invidious.list:deb https://dl.bintray.com/crystal/deb all stable
sources.list.d/onlyoffice.list:deb http://download.onlyoffice.com/repo/debian squeeze main
sources.list.d/webmin.list:deb http://download.webmin.com/download/repository sarge contrib