Something went wrong while updating the cache of APT (Debian's package manager)

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0.17
How are you able to access your server: The webadmin

Describe your issue

Hi, i get the following warning when upgrading apps. The process seems to work fine as well. How can i get red of this message ?

Thanks

Share relevant logs or error messages

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 Index of /debian bookworm main contrib non-free non-free-firmware
sources.list:deb Index of /debian-security bookworm-security main contrib non-free non-free-firmware
sources.list:deb Index of /debian bookworm-updates main contrib non-free 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/raspi.list:deb Index of /debian 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/collabora.list:deb Index of /repos/CollaboraOnline/CODE-debian11 ./

Zblerg it’s missing the actual warning / error message …

Can you try to run sudo apt update manually from SSH and report the actual warning/error message ?

thanks for quick reply :
problem seems to come from collabora (that i don’t use)

i get this :

Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48                                                      .0 kB]
Hit:4 http://archive.raspberrypi.org/debian bookworm InRelease
Hit:6 https://packages.sury.org/php bookworm InRelease
Hit:7 https://dl.yarnpkg.com/debian stable InRelease
Hit:5 https://forge.yunohost.org/debian bookworm InRelease
Get:8 https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian11 ./ InRelea                                                      se [1,728 B]
Err:8 https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian11 ./ InRelea                                                      se
  The following signatures couldn't be verified because the public key is not av                                                      ailable: NO_PUBKEY D8915E456E7C440E
Fetched 105 kB in 2s (43.0 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian11 ./ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8915E456E7C440E
W: Failed to fetch https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian11/./InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8915E456E7C440E
W: Some index files failed to download. They have been ignored, or old ones used instead.

Hmmokay it’s weird that the apt repo is there (supposedly it should only be added ephemeraly during the app install/upgrade/…)

Naively I would look for the culprit file with something like sudo grep -nr collabora /etc/apt/

and delete the file with sudo rm [...path to the file found...]

or if you want to move it somewhere else to keep it “just in case” :
sudo mv [...path to the file found...] /root/collabora.list.bkp

This has been reported in collabora_ynh github issues and a fix was proposed which worked for me

ok thanks i removed /etc/apt/sources.list.d/collabora.list
i don’t use the collabora app