# Jellyfin fails to update

**URL:** <https://dietpi.com/forum/t/jellyfin-fails-to-update/5014>\
**Category:** Troubleshooting\
**Created:** [22 February 2021 22:27 UTC](https://dietpi.com/forum/t/jellyfin-fails-to-update/5014 "2021-02-22T22:27:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blaiz0r](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/0ea827/32.png) [@Blaiz0r](https://dietpi.com/forum/u/Blaiz0r)\
**Post date:** [22 February 2021 22:27 UTC](https://dietpi.com/forum/t/jellyfin-fails-to-update/5014/1 "2021-02-22T22:27:40Z")

</div>

I logged into Dietpi and was told there was an update available so ran dietpi-update

I don’t have many packages installed so it didn’t take long, but got stuck trying to download Jellyfin with the following error:

```nohighlight
 INFO ] DietPi-Update | APT update, please wait...
Hit:1 https://download.docker.com/linux/debian buster InRelease
Hit:2 https://deb.debian.org/debian buster InRelease
Hit:3 https://archive.raspberrypi.org/debian buster InRelease
Hit:4 https://deb.debian.org/debian buster-updates InRelease
Hit:5 https://deb.debian.org/debian-security buster/updates InRelease
Hit:6 https://deb.debian.org/debian buster-backports InRelease
Get:7 https://repo.jellyfin.org/debian buster InRelease [6637 B]
Err:7 https://repo.jellyfin.org/debian buster InRelease
  The following signatures were invalid: EXPKEYSIG 49023CD01DE21A7B Jellyfin Team <team@jellyfin.org>
Fetched 6637 B in 2s (3732 B/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.jellyfin.org/debian buster InRelease: The following signatures were invalid: EXPKEYSIG 49023CD01DE21A7B Jellyfin Team <team@jellyfin.org>
W: Failed to fetch https://repo.jellyfin.org/debian/dists/buster/InRelease The following signatures were invalid: EXPKEYSIG 49023CD01DE21A7B Jellyfin Team <team@jellyfin.org>
W: Some index files failed to download. They have been ignored, or old ones used instead.
[OK] DietPi-Update | APT update
[INFO] DietPi-Update | APT upgrade, please wait...

```

Then proceeds to upgrade DietPi, do I need manually interveen here?

---

<div class="post-metadata">

**Author:** ![Phillski](https://dietpi.com/forum/user_avatar/dietpi.com/phillski/32/29_2.png) [@Phillski](https://dietpi.com/forum/u/Phillski)\
**Post date:** [23 February 2021 03:58 UTC](https://dietpi.com/forum/t/jellyfin-fails-to-update/5014/2 "2021-02-23T03:58:51Z")

</div>

The Jellyfin GPG key expired (see post here [https://www.reddit.com/r/jellyfin/comments/jz6u9o/debian\_ubuntu\_repo\_users\_our\_key\_is\_expiring/](https://www.reddit.com/r/jellyfin/comments/jz6u9o/debian_ubuntu_repo_users_our_key_is_expiring/))

according to the post you should just be able to enter this in the terminal

```nohighlight
wget -O- https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo apt-key add -

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [23 February 2021 07:49 UTC](https://dietpi.com/forum/t/jellyfin-fails-to-update/5014/3 "2021-02-23T07:49:10Z")

</div>

thx for sharing, we will add this to our next release to have the key replaced

---

<div class="post-metadata">

**Author:** ![Blaiz0r](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/b/0ea827/32.png) [@Blaiz0r](https://dietpi.com/forum/u/Blaiz0r)\
**Post date:** [23 February 2021 09:12 UTC](https://dietpi.com/forum/t/jellyfin-fails-to-update/5014/4 "2021-02-23T09:12:24Z")

</div>

This was it, thank you.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [23 February 2021 13:46 UTC](https://dietpi.com/forum/t/jellyfin-fails-to-update/5014/5 "2021-02-23T13:46:04Z")

</div>

Patch added: [https://github.com/MichaIng/DietPi/commit/2ec22fb97fe68e2317f3fe4068777f5a6412fbdc](https://github.com/MichaIng/DietPi/commit/2ec22fb97fe68e2317f3fe4068777f5a6412fbdc)

Note that apt-key has been deprecated and hence should not be used anymore. The combined APT key ring file /etc/apt/trusted.gpg that is fed by apt-key add is not used by any major repository for a long time, and keys should instead be added as separate files. I hence recommend to add APT keys this way:

```nohighlight
curl -sSfL 'https://repo.jellyfin.org/jellyfin_team.gpg.key' | gpg --dearmor -o /etc/apt/trusted.gpg.d/dietpi-jellyfin.gpg

```

That file is what we use in dietpi-software, so in case use this to assure that there are no doubled keys.
