jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.28k stars 323 forks source link

Missing dependency libmpv.so.2 running in debian bookworm #757

Open adelolmo opened 2 months ago

adelolmo commented 2 months ago

Describe the bug After upgrading from version 1.9.1 the application won't start and the following error is shown in the syslog:

com.github.iwalton3.jellyfin-media-player.desktop[295773]: jellyfinmediaplayer: error while loading shared libraries: libmpv.so.2: cannot open shared object file: No such file or directory

I had to install libmpv2 to solve the issue:

apt install libmpv2

Expected behavior I would expect the dependency to be added to the control file, so that the installation of the package fails if the dependency is not yet installed in the system.

Desktop (please complete the following information):

adelolmo commented 2 months ago

I just had a look to the control file inside of the package:

Package: jellyfin-media-player
Version: 1.11.1-1
Architecture: amd64
Maintainer: Izzie Walton <izzie@iwalton.com>, Joshua Boniface <joshua@boniface.me>
Installed-Size: 1168
Depends: libmpv1 | libmpv2, libqt5webengine5, libcec4 | libcec6, qml-module-qtwebengine, qml-module-qtwebchannel, qml-module-qtquick-controls, libqt5x11extras5, libqt5xml5
Section: video
Priority: optional
Homepage: https://jellyfin.org/
Description: Jellyfin is the Free Software Media System.
 This package provides the Jellyfin desktop media player.

Looks like it accepts any of the libmpv versions: libmpv1 | libmpv2

adelolmo commented 2 months ago

I can also tell that libmpv1 was installed in my system at the time of the upgrade. That explains why the dependency was satisfied.

NeilPandya commented 1 month ago

Hi @adelolmo, I wanted to chime in here instead of opening another issue.

I downloaded the Ubuntu Noble deb file from releases and I got the same error:

jellyfinmediaplayer: error while loading shared libraries: libmpv.so.2: cannot open shared object file: No such file or directory

Installing libmpv2 via sudo nala install libmpv2 (nala is a front-end for libapt-pkg) also did the trick for me on Kubuntu 24.04 LTS.

System Specs:

                                           neil@FractalNorth 
           `.:/ossyyyysso/:.               ----------------- 
        .:oyyyyyyyyyyyyyyyyyyo:`           OS: Kubuntu trixie/sid (noble) x86_64 
      -oyyyyyyyodMMyyyyyyyysyyyyo-         Kernel: 6.8.0-45-generic 
    -syyyyyyyyyydMMyoyyyydmMMyyyyys-       Uptime: 28 mins 
   oyyysdMysyyyydMMMMMMMMMMMMMyyyyyyyo     Packages: 2118 (dpkg), 8 (flatpak-system) 
 `oyyyydMMMMysyysoooooodMMMMyyyyyyyyyo`    Shell: bash 5.2.21 
 oyyyyyydMMMMyyyyyyyyyyyysdMMysssssyyyo    Resolution: 1920x1080 @ 164.92Hz 
-yyyyyyyydMysyyyyyyyyyyyyyysdMMMMMysyyy-   DE: Plasma 5.27.11 [KF5 5.115.0] [Qt 5.15.13] (x11) 
oyyyysoodMyyyyyyyyyyyyyyyyyyydMMMMysyyyo   WM: KWin 
yyysdMMMMMyyyyyyyyyyyyyyyyyyysosyyyyyyyy   Theme: Breeze [KDE/Qt], Orchis-Dark [GTK2/3] 
yyysdMMMMMyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy   Icons: BeautySolar [KDE/Qt/GTK2/3] 
oyyyyysosdyyyyyyyyyyyyyyyyyyydMMMMysyyyo   Cursor: Adwaita [KDE/GTK2/3] 
-yyyyyyyydMysyyyyyyyyyyyyyysdMMMMMysyyy-   Terminal: konsole 
 oyyyyyydMMMysyyyyyyyyyyysdMMyoyyyoyyyo    Terminal Font: Noto Mono 14 
 `oyyyydMMMysyyyoooooodMMMMyoyyyyyyyyo     CPU: AMD Ryzen 9 5950X (32) @ 3.4GHz 
   oyyysyyoyyyysdMMMMMMMMMMMyyyyyyyyo      GPU: NVIDIA GeForce RTX 3090 
    -syyyyyyyyydMMMysyyydMMMysyyyys-       Memory: 4.32 GiB / 31.24 GiB (13%) 
      -oyyyyyyydMMyyyyyyysosyyyyo-         Network: Wifi 
        ./oyyyyyyyyyyyyyyyyyyo/.           Bluetooth: Intel Corp. AX200 
           `.:/oosyyyysso/:.`              BIOS: American Megatrends Inc. 5.17 (03/18/2024)