jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
3.22k stars 321 forks source link

Can't start jellyfinmediaplayer because libcec.so.6 not found #262

Open Jerroder opened 2 years ago

Jerroder commented 2 years ago

Describe the bug I can't start jellyfin on Ubuntu 22.04 because libcec.so.6 is missing: jellyfinmediaplayer: error while loading shared libraries: libcec.so.6: cannot open shared object file: No such file or directory. Problem is, that library doesn't exist for Ubuntu.

To Reproduce Steps to reproduce the behavior:

  1. Install jellyfin-media-player_1.7.0-1_amd64-jammy.deb
  2. Try to launch it

Expected behavior Add the dependency somewhere or use another one maybe?

Desktop (please complete the following information):

Additional context The previous version (1.6.1) was working flawlessly.

DeshunMie commented 2 years ago

I also encountered the same problem jellyfinmediaplayer: error while loading shared libraries: libcec.so.6: cannot open shared object file: No such file or directory deepin20.3

Jerroder commented 2 years ago

Just found the solution: it is fixed by running apt install libcec6. It creates a symlink from libcec.so.6.0.2 to libcec.so.6, that's why it didn't appear on pkgs.org.

Would be good to add it as a dependency when installing the .deb.

iwalton3 commented 2 years ago

It should already be a dependency. https://github.com/jellyfin/jellyfin-media-player/blob/320b8f05935b34498b4833b81efd5e5796088e41/debian/control#L49

Installing a deb package with dpkg directly does not install dependencies. You need to do apt install ./somefile.deb.

DeshunMie commented 2 years ago

thank!

Deepin20.3 official software source does not have libcec6, and Debian source needs to be added

apt update

apt install libcec6

Delete Debian source again

apt update

Avoid unknown errors

Jerroder commented 2 years ago

It should already be a dependency.

I had libcec4 installed, and it didn't work because it needs libcec6. The dependency file wants one or the other, so it's incorrect.

Installing a deb package with dpkg directly does not install dependencies. You need to do apt install ./somefile.deb.

I've always installed deb with dpkg -i xxx.deb and got an error if a dependency wasn't met, then run apt -f install to install them, as explained here.

ristein commented 1 year ago

You need to do apt install ./somefile.deb.

I just did this and got the error anyway. Tried with 1.8.1 over 1.7.1 and then uninstalled and tried again.

it is fixed by running apt install libcec6

but this works

sevenrats commented 10 months ago

if this is still an issue please open a PR to resolve it that removes the libcec4 option.