[SOLVED] Errors in fetching systems update and apps catalog

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
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: Probably

Describe your issue

In my efforts to try and fix the WEKAN faulty installation script ( using, this thread Wekan: upgrade from 7.49 to 7.51 failed with mongod error - #6 by jln) I tried to add a mongodb key (6.0) which I then removed as well as the mongodb and service. But I am getting the below errors when updating via the web interface.

Any idea how to solve this?

Share relevant logs or error messages

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 Index of /debian bookworm main contrib
sources.list:deb-src Index of /debian bookworm main contrib
sources.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] Index of /debian/ bookworm stable
sources.list:deb Index of /debian-security bookworm-security main contrib
sources.list:deb-src Index of /debian-security bookworm-security main contrib
sources.list:deb Index of /debian bookworm-updates main contrib
sources.list:deb-src Index of /debian bookworm-updates main contrib
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/mongodb-org-6.0.list:deb [ arch=amd64,arm64 ] MongoDB Repositories focal/mongodb-org/6.0 multiverse
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/crystal.list:deb /repositories/devel:/languages:/crystal/Debian_12 - openSUSE Download

Any input would be appreciated.

hi, can you share what says an apt update please?

Hello, of course:

apt update
Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
Hit:2 http://ftp.debian.org/debian bookworm InRelease                                                                                                                                 
Get:3 https://dl.yarnpkg.com/debian stable InRelease                                                                                                                                  
Hit:5 http://ftp.debian.org/debian bookworm-updates InRelease                                                                                                                         
Hit:6 https://packages.sury.org/php bookworm InRelease                                                                                          
Hit:7 http://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_12  InRelease                                               
Hit:8 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 InRelease                                              
Hit:4 https://forge.yunohost.org/debian bookworm InRelease
Fetched 17.1 kB in 1s (16.0 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/6.0/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

If I am not mistaken I need to remove the mongodb repo, right? How do I do that?

you should be able to solve your issue with this guide: Fixing "Key is stored in legacy trusted.gpg keyring" Issue in Ubuntu

1 Like

All good. I manually removed the key and the repostory .list file.

Thank you for your replies.

1 Like