# Yunohost tools update error

**URL:** <https://forum.yunohost.org/t/yunohost-tools-update-error/34946>\
**Category:** Support\
**Tags:** raspberrypi, french\
**Created:** [January 22, 2025, 8:33pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946 "2025-01-22T20:33:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![claveryu](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/c/bcef8e/32.png) [@claveryu](https://forum.yunohost.org/u/claveryu)\
**Post date:** [January 22, 2025, 8:33pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/1 "2025-01-22T20:33:15Z")

</div>

**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:](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](http://raspbian.raspberrypi.org/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](http://raspbian.raspberrypi.org/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:](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](http://raspbian.raspberrypi.org/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/](https://packages.sury.org/php/) bookworm main  
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] [Index of /debian/](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/](https://dl.yarnpkg.com/debian/) stable main  
sources.list.d/raspi.list:deb [Index of /debian](http://archive.raspberrypi.org/debian/) bookworm main  
Info: Updating application catalog…  
Success! The application catalog has been updated!

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 23, 2025, 10:34am UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/2 "2025-01-23T10:34:34Z")

</div>

Hi claveryu,

Is it OK to reply in English?

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

> [@claveryu](#):
>
> ```auto
> 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](http://raspbian.raspberrypi.org/raspbian/) bookworm main contrib non-free non-free-firmware rpi
> 
> ```

Earlier, there is the warning:

```auto
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](http://raspbian.raspberrypi.org/raspbian/dists/bookworm/), now it does not anymore:

 ![image](https://forum.yunohost.org/uploads/default/original/2X/1/1219f0c6e626960f11b31c641b09054028b9493f.png)

The repository does have a section ‘firmware’.

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

---

<div class="post-metadata">

**Author:** ![claveryu](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/c/bcef8e/32.png) [@claveryu](https://forum.yunohost.org/u/claveryu)\
**Post date:** [January 23, 2025, 8:51pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/3 "2025-01-23T20:51:37Z")

</div>

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.

```auto
# 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:

```

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [January 23, 2025, 9:12pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/4 "2025-01-23T21:12:29Z")

</div>

Have a look at this [Fixing "Key is stored in legacy trusted.gpg keyring" Issue in Ubuntu](https://itsfoss.com/key-is-stored-in-legacy-trusted-gpg/)

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [January 23, 2025, 9:15pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/5 "2025-01-23T21:15:24Z")

</div>

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

Perhaps something similar ??

```auto
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…

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 23, 2025, 9:20pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/6 "2025-01-23T21:20:24Z")

</div>

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

> [@claveryu](#):
>
> Thank’s for your help ! I modified sources.list file by removing _non-free-firmware_.

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

```auto
bookworm main contrib non-free rpi firmware

```

---

<div class="post-metadata">

**Author:** ![claveryu](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/c/bcef8e/32.png) [@claveryu](https://forum.yunohost.org/u/claveryu)\
**Post date:** [January 23, 2025, 9:30pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/7 "2025-01-23T21:30:42Z")

</div>

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

```auto
# 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:

```

---

<div class="post-metadata">

**Author:** ![wbk](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/w/e0b2c6/32.png) [@wbk](https://forum.yunohost.org/u/wbk)\
**Post date:** [January 23, 2025, 9:36pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/8 "2025-01-23T21:36:47Z")

</div>

Wohoo! 🙂

Thanks for posting back that it works now!

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [February 22, 2025, 9:37pm UTC](https://forum.yunohost.org/t/yunohost-tools-update-error/34946/9 "2025-02-22T21:37:25Z")

</div>

Closed on February 22, 2025, 9:37pm UTC

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