Update problems: no public key

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1
How are you able to access your server: SSH

Describe your issue

If I run update ‘apt update’ I got the shown messages. I know it’s an apt-key problem, but I don’t find the way to renew the keys. There are many different solutions, but it seems they are old.

how can I update the keys for https://packages.sury.org/php/dists/bookworm/InRelease and https://dl.yarnpkg.com/debian/dists/stable/InRelease?

Share relevant logs or error messages

W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: https://packages.sury.org/php bookworm InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY B188E2B695BD4743
W: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: https://dl.yarnpkg.com/debian stable InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 62D54FD4003F6525

This fixed the problem with the yarn key for me:

But now there’s the next error regarding a sury.org 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 bookworm InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key

1 Like

Delete “yarn.list” which is located in the “/etc/apt/sources.list.d/” directory
rm yarn.list
As well as the “gpg” key which is located in the “/etc/apt/trusted.gpg.d/yarn.gpg” directory.
rm yarn.gpg
Then we execute “yunohost tools regen-conf apt -f”

7 Likes

Thanx, that works

1 Like