Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 24.04 next release has no libmpv1 but libmpv2 #393

Open
stdevPavelmc opened this issue Feb 28, 2024 · 9 comments
Open

Ubuntu 24.04 next release has no libmpv1 but libmpv2 #393

stdevPavelmc opened this issue Feb 28, 2024 · 9 comments

Comments

@stdevPavelmc
Copy link

stdevPavelmc commented Feb 28, 2024

System: Linux Ubuntu 24.04 LTS (new develop branch)
Error: libmpv1 not exist, they migrated to libmpv2

image

A search for libmpv results on this:

image

This refers to the .deb release on the homepage .

@yusi1
Copy link

yusi1 commented Apr 14, 2024

Same issue on Debian 12 Bookworm:

 ~/Downloads $ sudo dpkg -i stremio_4.4.168-1_amd64.deb
[sudo] password for yaslam:
Selecting previously unselected package stremio.
(Reading database ... 390153 files and directories currently installed.)
Preparing to unpack stremio_4.4.168-1_amd64.deb ...
Unpacking stremio (4.4.168-1) ...
dpkg: dependency problems prevent configuration of stremio:
 stremio depends on nodejs; however:
  Package nodejs is not installed.
 stremio depends on libmpv1 (>= 0.30.0); however:
  Package libmpv1 is not installed.
 stremio depends on qml-module-qtwebchannel (>= 5.9.5); however:
  Package qml-module-qtwebchannel is not installed.
 stremio depends on libfdk-aac2 (>= 2.0.2); however:
  Package libfdk-aac2 is not installed.

dpkg: error processing package stremio (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 stremio
 ✘ ~/Downloads $ sudo apt install nodejs libmpv1 qml-module-qtwebchannel libfdk-aac2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libmpv1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libmpv1' has no installation candidate
 ✘ ~/Downloads $

@laserburn
Copy link

Yup, definitely a problem. Now that new Ubuntu LTS is officially out, many will flock to it and discover that Stremio can't be installed. Must I polute the new Ubuntu 24.04 with flatpaks already? :(

@gustavo-dotcom
Copy link

Same issue here. Maybe launch Stremio as snap for Ubuntu?

@midhun3301
Copy link

Same issue. Latest Ubuntu 24.04 LTS.

@Corbachini33
Copy link

Same issue here. Maybe launch Stremio as snap for Ubuntu?

I've been using the flatpak until the deb is ready and its been working fine.

@midhun3301
Copy link

midhun3301 commented Aug 17, 2024

I've been using the flatpak until the deb is ready and its been working fine.

Do you have a Nvidia GPU? Is Stremio able to use it for video decoding?

@Corbachini33
Copy link

I've been using the flatpak until the deb is ready and its been working fine.

Do you have a Nvidia GPU? Is Stremio able to use to for video decoding?

Haven't tried because the CPU I have is good enough for 4k. I know there were problems with NVIDIA and video decoding on Linux but I don't know if they also affect Stremio.

@richardiago
Copy link

Any updates on this one?

@kpjim
Copy link

kpjim commented Oct 27, 2024

As a workaround I was able to repackage the .deb, changing the dependencies in the process:
dpkg-deb -R stremio.deb tmpdir

Edit the tmpdir/DEBIAN/control file to change the libmpv1 dependeny to: libmpv2 (ubuntu should already have this package. You can/should remove the (>version) from the dependency as well).

At this point you also need to edit the stremio binary with hexedit (or a similar tool) so that you replace the loading of libmpv.so.1 with libmpv.so.2. Open the tmpdir/opt/stremio/stremio binary, search for the hex string: '6C 69 62 6D 70 76 2E 73 6F 2E 31' and replace the 31 with 32.
Edit: Instead of using a hex editor you can do something simpler with sed:
sed -i 's/\x6C\x69\x62\x6D\x70\x76\x2E\x73\x6F\x2E\x31/\x6C\x69\x62\x6D\x70\x76\x2E\x73\x6F\x2E\x32/g' tmpdir/opt/stremio/stremio

Finally repackage with:
dpkg-deb -b tmpdir stremio_dirty.deb

And install:
sudo dpkg -i stremio_dirty.deb.
Worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants