Jellyfin fails to update

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:

 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?

The Jellyfin GPG key expired (see post here 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

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

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

This was it, thank you.

Patch added: 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:

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.