Problems while upgrading

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.1.40.1
How are you able to access your server: The webadmin
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

Trying to update apps – they deinstall, but don’t reinstall but throw an error:
ex. WEKAN.

but same for other apps. “Fetch available updates” throws an error (see [2] below)

Share relevant logs or error messages

YunoHost encountered an internal error
Really sorry about that.
You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker.
The following information might be useful for the person helping you:

Error: “500”

Action: “PUT” /yunohost/api/apps/wekan/upgrade

Error message:
Nothing was restored

While processing the action the server said:
Collecting files to be backed up for wekan…
Declaring files to be backed up…
Backing up the MongoDB database…
Backup script completed for wekan. (YunoHost will then actually copy those files to the archive).

[2]
Error: “500”

Action: “PUT” /yunohost/api/update/all

Error message:
Unable to update 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/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] Index of /debian/ bookworm stable
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/wekan.list:deb MongoDB Repositories bookworm/mongodb-org/7.0 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/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: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

While processing the action the server said:
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 couldn’t be verified because the public key is not available: NO_PUBKEY 62D54FD4003F6525
E: 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
E: Some index files failed to download. They have been ignored, or old ones used instead.

See here : Impossible de récupérer les mises a jour : Erreur: "500" Action: "PUT" /yunohost/api/update/all - #2 by otm33

And this one Yarn and Sury APT keys issues