Yunohost tools update error

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0.10
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

La commande “yunohost tools update” me donne une erreur suite à la migration vers Bookworm

Share relevant logs or error messages

yunohost tools update

Info: Fetching available upgrades for system packages…
Warning: W: http://raspbian.raspberrypi.org/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION sectio
n in apt-key(8) for details.
Warning: W: Skipping acquire of configured file ‘non-free-firmware/binary-armhf/Packages’ as repository ‘Index of /raspbian bookworm InRelease’ doesn’t
have the component ‘non-free-firmware’ (component misspelt in sources.list?)
Warning: W: Skipping acquire of configured file ‘non-free-firmware/i18n/Translation-en’ as repository ‘Index of /raspbian bookworm InRelease’ doesn’t h
ave the component ‘non-free-firmware’ (component misspelt in sources.list?)
Warning: W: http://archive.raspberrypi.org/debian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section i
n apt-key(8) for details.
Error: 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 /raspbian bookworm main contrib non-free non-free-firmware rpi
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
sources.list.d/raspi.list:deb Index of /debian bookworm main
Info: Updating application catalog…
Success! The application catalog has been updated!

Hi claveryu,

Is it OK to reply in English?

apt is trying to help by telling where something went wrong:

Earlier, there is the warning:

Warning: W: Skipping acquire of configured file
 ‘non-free-firmware/binary-armhf/Packages’ 
as repository
 ‘Index of /raspbian bookworm InRelease’ 
doesn’t have the component
 ‘non-free-firmware’ 
(component misspelt in sources.list?)

I took the liberty to reformat your log for readability.

One way or another, an entry ‘non-free-firmware’ got into /etc/apt/sources.list. If it ever existed at Index of /raspbian/dists/bookworm, now it does not anymore:

The repository does have a section ‘firmware’.

Would you try correcting your /etc/apt/sources.list, and try again?

2 Likes

Hi wbk !

Thank’s for your help ! I modified sources.list file by removing non-free-firmware. It’s better but there are always some warnings and one error.

# yunohost tools update
Info: Fetching available upgrades for system packages…
Warning: W: http://raspbian.raspberrypi.org/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION sectio
n in apt-key(8) for details.
Warning: W: http://archive.raspberrypi.org/debian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section i
n apt-key(8) for details.
Error: 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 http://raspbian.raspberrypi.org/raspbian/ bookworm main contrib non-free rpi
sources.list.d/extra_php_version.list:deb [signed-by=/etc/apt/trusted.gpg.d/extra_php_version.gpg] https://packages.sury.org/php/ bookworm main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] http://forge.yunohost.org/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
sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ bookworm main
Info: Updating application catalog…
Success! The application catalog has been updated!
Info: Nothing to do. Everything is already up-to-date.
apps: 
important_yunohost_upgrade: False
pending_migrations: 
system:

Have a look at this Fixing "Key is stored in legacy trusted.gpg keyring" Issue in Ubuntu

1 Like

here something similar
https://forums.raspberrypi.com/viewtopic.php?t=358016

Perhaps something similar ??

sudo mkdir /etc/apt/trusted.gpg.d
sudo apt-key export 90FDDD2E | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/raspbian.public.gpg
sudo apt-key export 7FA3303E | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/raspberrypi.gpg
rm -rf /etc/apt/trusted.gpg
rm -rf /etc/apt/trusted.gpg~

but first need see the keys…

2 Likes

In addition to @jarod5001 and @rodinux help with the keys,

Note that only removing the “non-free-” bit would have been enough. There may be some firmware needed on RPi.

You can edit /etc/apt/sources.list , and add ‘firmware’ at the end of the line, so that it reads

bookworm main contrib non-free rpi firmware
1 Like

Thank’s again. Look like it’s good now !

# yunohost tools update
Info: Fetching available upgrades for system packages…
Info: Updating application catalog…
Success! The application catalog has been updated!
Info: Nothing to do. Everything is already up-to-date.
apps: 
important_yunohost_upgrade: False
pending_migrations: 
system:
1 Like

Wohoo! :slight_smile:

Thanks for posting back that it works now!

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