Impossible de récupérer les mises a jour : Erreur: "500" Action: "PUT" /yunohost/api/update/all

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

Describe your issue

Je n’ai jamais eu ce probleme, impossible de récupérer les mises a jours.

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

J’ai tenté la commande : sudo yunohost tools regen-conf apt -f
(vu sur un autre message identique)

Et cela ne change rien

Décidément c’est pas mon jour

Share relevant logs or error messages

Impossible de mettre à jour le cache APT (gestionnaire de paquets Debian). Voici un extrait du fichier sources.list qui pourrait vous aider à identifier les lignes problématiques :
sources.list:deb Index of /debian bookworm main contrib non-free-firmware
sources.list:deb-src Index of /debian bookworm main contrib non-free-firmware
sources.list:deb [signed-by=/etc/apt/keyrings/YunoHost_repository.asc] http://repo.yunohost.org/debian/ bookworm stable
sources.list:deb Index of /debian-security bookworm-security main contrib non-free-firmware
sources.list:deb-src Index of /debian-security bookworm-security main contrib non-free-firmware
sources.list:deb Index of /debian bookworm-updates main contrib non-free-firmware
sources.list:deb-src Index of /debian bookworm-updates main contrib non-free-firmware
sources.list.d/docker.list:deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] Index of linux/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/yarn.list:deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main

Pendant le traitement de l’action, le serveur a dit :
Récupération des mises à jour disponibles pour les paquets du système…
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.

1 Like

Bonjour,
Essaie d’abord ceci

sudo rm /etc/apt/trusted.gpg.d/{yarn,extra_php_version}.gpg
sudo yunohost tools regen-conf apt

puis

sudo yunohost tools update

Si cela ne fonctionne pas, essaie

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/yarn.gpg > /dev/null

puis

sudo yunohost tools update
3 Likes

C’est ok, résolu.

Je ne sais pas ce que c’était, mais c’était bien ça.

Merci pour cette réactivité :slight_smile:

1 Like

Première ou deuxième solution du coup ?

Première solution

n’hésite pas à marquer ton message comme résolu, avec la solution sur le message de @otm33

Bonjour

c’est bizarre j’ai un probleme similaire depuis les maj de ce matin !
En ligne de commande (yunohost tools update) tout marche bien ! mais sur l’interface web j’ai
le meme probleme. J’ai d’ailleurs du mal à comprendre que les deux puissent être différents.

————
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" Internal Server Error

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:deb Index of /debian bookworm main non-free-firmware
sources.list:deb-src Index of /debian bookworm main non-free-firmware
sources.list:deb Index of /debian-security bookworm-security main non-free-firmware
sources.list:deb-src Index of /debian-security bookworm-security main non-free-firmware
sources.list:deb Index of /debian bookworm-updates main non-free-firmware
sources.list:deb-src Index of /debian bookworm-updates main non-free-firmware
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/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] Index of /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

et encore plus bizarre, c’est “parti” tout seul ….