Sudden errors on Catalogue update

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.39
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 ?: No

Describe your issue

When I try to update from the admin GUI, I get some error, which, to be honest, I don’t understand.

If anyone can point me in the right direction, I’d be grateful

Many thanks

Dj

Share relevant logs or error messages

I can’t find anything in the log to yunoPaste, but the following scrolls through when I attempt an update:

Fetching available upgrades for system packages…
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.
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 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 non-free non-free-firmware
sources.list:deb-src 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:deb-src 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/yarn.list:deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main
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 non-free non-free-firmware
sources.list:deb-src 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:deb-src 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/yarn.list:deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main

Hello… I tried all of the above when it first happened, but I get…

WARNING: unsafe permissions on homedir ‘/home/deljones/.gnupg’

I’m not sure if I have the syntax and order correct

Dj

What does return ls -la /home/deljones/.gnupg ?

@otm33 I get

total 16

drwxrwx—+ 3 deljones deljones 4096 Jan 28 2021 .

drwxrwxr-x+ 4 deljones deljones 4096 Jan 14 02:41 ..

drwxrwx—+ 2 deljones deljones 4096 Jan 28 2021 private-keys-v1.d

Dj

@otm33 without grep I get:

total 2868132

drwxrwxr-x+ 4 deljones deljones 4096 Jan 14 02:41 .

drwxr-xr-x 18 root root 4096 Sep 19 20:38 ..

-rw-rw----+ 1 deljones deljones 1948 Jan 26 17:11 .bash_history

-rw-rw-r–+ 1 deljones deljones 220 Jan 28 2021 .bash_logout

-rw-rw-r–+ 1 systemd-coredump systemd-coredump 3523 Jan 24 2021 .bashrc

drwxrwx—+ 3 deljones deljones 4096 Jan 28 2021 .gnupg

lrwxrwxrwx 1 deljones deljones 6 Oct 25 2022 media → /media

lrwxrwxrwx 1 root root 34 Jan 14 02:41 Multimedia → /home/yunohost.multimedia/deljones

-rw-rw-r–+ 1 deljones deljones 2936925665 Feb 15 2024 ‘Pre DEVONThink Archive.zip’

-rw-rw-r–+ 1 deljones deljones 807 Jan 28 2021 .profile

drwxrwx—+ 2 deljones deljones 4096 Aug 19 22:29 .ssh

-rw-rw-r–+ 1 deljones deljones 0 Dec 15 2022 Y

I think this is too permissive

Hmm…

Ive just re-run the Update in the GUI, despite what I thought was an error, and now I dint get the error when running update….

We shall see next time an app needs updating..

Many thanks for your time with this.

Dj

This error isn’t really a YunoHost issue, it’s coming from the Yarn repository. The message EXPKEYSIG 23E7166788B63E1E means the GPG key for the Yarn repo has expired, so APT refuses to trust it and stops the update process. That’s why catalogue updates are failing.

You can either remove the Yarn repository (if you don’t actually need it), or refresh its GPG key. The quickest fix, if Yarn isn’t required, is to remove /etc/apt/sources.list.d/yarn.list and run apt update again. After that, updates should work normally again because i also face the same for my and it worked best for me.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.