MichaIng / DietPi

Lightweight justice for your single-board computer!

Home Page:https://dietpi.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't update Jellyfin

gioxx opened this issue · comments

Creating a bug report/issue

  • I have searched the existing open and closed issues

I'm trying to banally update Jellyfin, since it's being reported as available when logging in to the server, but there's something I'm missing, it won't update and I'm getting it every time.
I then tried to follow the upgrade instructions suggested on the DietPi website (https://dietpi.com/docs/software/media/#__tabbed_27_4) but I still cannot come out victorious.

G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=4
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='not applicable'

Linux Jellyfin 5.10.0-29-amd64 # 1 SMP Debian 5.10.216-1 (2024-05-03) x86_64 GNU/Linux

Steps to reproduce

apt update
apt install jellyfin jellyfin-ffmpeg5
Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye-updates InRelease
Hit:3 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Hit:5 https://dietpi.com/apt bullseye InRelease
Hit:6 https://repo.jellyfin.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
jellyfin-ffmpeg5 is already the newest version (5.1.4-3-bullseye).
jellyfin-ffmpeg5 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 jellyfin-ffmpeg6 : Conflicts: jellyfin-ffmpeg5 but 5.1.4-3-bullseye is to be installed
E: Unable to correct problems, you have held broken packages.

Is anyone able to tell me where I am so stupidly failing? 🥲
Thanks!

The error message says everything, isn't it 🙂?

jellyfin-ffmpeg6 : Conflicts: jellyfin-ffmpeg5 but 5.1.4-3-bullseye is to be installed

You do not need to install jellyfin-ffmpeg* explicitly, the jellyfin meta package depends on the correct version of it:

apt-mark auto jellyfin-ffmpeg5
apt install jellyfin

This should offer you to uninstall jellyfin-ffmpeg5 while having jellyfin-ffmpeg6 as new dependency installed. Use apt install jellyfin or apt upgrade only then, and let APT take care the FFmpeg plugin.

Ciao @MichaIng.
As mentioned above, I was sure it was a very dumb problem to solve but -- banally -- I had tried to run apt upgrade since I was presented with an upgrade to run when I logged into DietPi, and then I couldn't complete the operation because of ffmpeg5 as you noted.

I have now uninstalled ffmpeg5 and correctly updated to version 6 and the latest Jellyfin package.

Thank you very much!

Yeah... kind of messy situation caused by jellyfin-ffmpeg5 / 6 pkg:

$ sudo apt policy jellyfin
jellyfin:
  Installed: 10.8.13-1
  Candidate: 10.9.2+deb12
  Version table:
     10.9.2+deb12 500
        500 https://repo.jellyfin.org/debian bookworm/main armhf Packages
 *** 10.8.13-1 100
        100 /var/lib/dpkg/status

but it may be resolved by:

$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libass9
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  jellyfin-ffmpeg5
The following NEW packages will be installed:
  jellyfin-ffmpeg6 ocl-icd-libopencl1
The following packages will be upgraded:
  jellyfin
1 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 12.4 MB of archives.
After this operation, 8,032 kB of additional disk space will be used.
Do you want to continue? [Y/n]

Some comments on https://www.reddit.com/r/jellyfin/comments/13ieki7/installing_jellyfinffmpeg6_on_linux/ and jellyfin/jellyfin-ffmpeg#243

Right, apt upgrade will keep back upgrades, if those would require the removal of another package, like jellyfin-ffmpeg5 here. So an apt full-upgrade would be required. apt install jellyfin should however offer you the same dependency switch. I wonder why Jellyfin guys do not simply name it jellyfin-ffmpeg5, and have the FFmpeg version part of the package version string (seems to be the case already), to avoid this hassle.

The issues you linked do not apply anymore: At that time, the meta package jellyfin did still depend on jellyfin-ffmpeg5, which indeed made an upgrade impossible without removing the meta package. This is not the case anymore, now only the interactive confirmation to remove the old package is needed.

I will add a DietPi patch to to this upgrade for everyone who still has jellyfin-ffmpeg5 installed: 5e01b39