/ 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
This can also be done by force-regenerating the configuration:
$ sudo yunohost tools regen-conf -f
The upcoming way as per sury’s github page is to use debsuryorg-archive-keyring package, can’t say for sure but I suspect this’ll be incorporated as YNH’s DEB requirement in the future (if it’s not already).
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
“https://packages.sury.org/php/apt.gpg”: Scheme missing.
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: no valid OpenPGP data found.
I then tried
sudo yunohost tools regen-conf -f
I tried to update my server again and got the same errors, I then tried rebooting the server and running the update again with the same errors.
I have a slightly different problem, but it seems related. If I need to I can start a new topic. Here’s what I’m getting when I attempt to update.
~$ sudo apt update && sudo apt upgrade -y
Get:1 https://dl.yarnpkg.com/debian stable InRelease
Get:2 https://pkgs.tailscale.com/stable/debian bookworm InRelease
Hit:3 http://ftp.debian.org/debian bookworm InRelease
Hit:4 http://security.debian.org/debian-security bookworm-security InRelease
Err:1 https://dl.yarnpkg.com/debian stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525
Hit:6 http://ftp.debian.org/debian bookworm-updates InRelease
Hit:7 https://packages.sury.org/php bookworm InRelease
Err:7 https://packages.sury.org/php bookworm InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
Hit:5 https://forge.yunohost.org/debian bookworm InRelease
Reading package lists... Done
W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525
E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
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 bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
The listed solutions haven't worked for me.