What type of hardware are you using: VPS bought online What YunoHost version are you running: 12.1.39 How are you able to access your server: The webadmin
SSH Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: no
Describe your issue
Today yunohost tools update started complaining about Yarn repo.
Is it safe to trust the new key?
Share relevant logs or error messages
Fetching available upgrades for system packages…
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging
W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging
W: Some index files failed to download. They have been ignored, or old ones used instead.
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://deb.debian.org/debian bookworm main non-free non-free-firmware
sources.list:deb-src http://deb.debian.org/debian bookworm main
sources.list:deb http://security.debian.org/debian-security bookworm-security main non-free non-free-firmware
sources.list:deb-src http://security.debian.org/debian-security bookworm-security main
sources.list:deb http://deb.debian.org/debian bookworm-updates main non-free non-free-firmware
sources.list:deb-src http://deb.debian.org/debian bookworm-updates main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] http://forge.yunohost.org/debian/ bookworm stable
sources.list.d/yarn.list:deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main
sources.list.d/extra_php_version.list:deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] https://packages.sury.org/php/ bookworm main
EDIT: actually the key is expired not changed (so far)
EDIT2: the key changed now
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG XXXXXXXXXXXXXXXX Yarn Packaging
W: Some index files failed to download. They have been ignored, or old ones used instead.
Des erreurs se sont produites lors de la mise à jour du cache APT (gestionnaire de paquets Debian). Voici un extrait des lignes du fichier sources.list qui pourrait vous aider à identifier les lignes problématiques :sources.list.d/debian.sources:Types: deb deb-srcsources.list.d/debian.sources:URIs: mirror+file:///etc/apt/mirrors/debian.listsources.list.d/debian.sources:Suites: bookworm bookworm-updates bookworm-backportssources.list.d/debian.sources:Components: main contrib non-free-firmwaresources.list.d/debian.sources:Signed-By: /usr/share/keyrings/debian-archive-keyring.gpgsources.list.d/debian.sources:Types: deb deb-srcsources.list.d/debian.sources:URIs: mirror+file:///etc/apt/mirrors/debian-security.listsources.list.d/debian.sources:Suites: bookworm-securitysources.list.d/debian.sources:Components: main contrib non-free-firmwaresources.list.d/debian.sources:Signed-By: /usr/share/keyrings/debian-archive-keyring.gpgsources.list.d/yarn.list:deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable mainsources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] bookworm stablesources.list.d/extra_php_version.list:deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] bookworm main
In all cases, a manual intervention seems to be required.
Simply deleting yarn.list is not enough: an yunohost tools regen-conf apt -f will reinstall yarn.list without updating the key.
So either you need to remove yarn.list and the gpg key (/etc/apt/trusted.gpg.d/yarn.gpg) and then run yunohost tools regen-conf apt -f
or simply import the new key as said by @orhtej2
I try tree times do a `curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg > /dev/null` but I still have
```
yunohost tools update
Info: Fetching available upgrades for system packages…
Warning: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The f
ollowing signatures couldn’t be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525
Warning: W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525
Warning: W: Some index files failed to download. They have been ignored, or old ones used instead.
Error: 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.d/extra_php_version.list:deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] Index of /php/ bookworm main
sources.list.d/yarn.list:deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] Index of /debian/ bookworm stable
sources.list.d/debian.sources:Types: deb deb-src
sources.list.d/debian.sources:URIs: mirror+file:///etc/apt/mirrors/debian.list
sources.list.d/debian.sources:Suites: bookworm bookworm-updates bookworm-backports
sources.list.d/debian.sources:Components: main
sources.list.d/debian.sources:Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
sources.list.d/debian.sources:Types: deb deb-src
sources.list.d/debian.sources:URIs: mirror+file:///etc/apt/mirrors/debian-security.list
sources.list.d/debian.sources:Suites: bookworm-security
sources.list.d/debian.sources:Components: main
sources.list.d/debian.sources:Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Info: Updating application catalog…
```
Try curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/yarn.gpg > /dev/null
Yunohost yarn list expects the key to be located in /etc/apt/trusted.gpg.d