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

bug(os): libsnappy1v5 improperly wiped #41

Closed
skelmy opened this issue Feb 23, 2025 · 4 comments
Closed

bug(os): libsnappy1v5 improperly wiped #41

skelmy opened this issue Feb 23, 2025 · 4 comments
Assignees
Labels
Bug Something isn't working OS Development OS Development Team: builder + core functionality

Comments

@skelmy
Copy link

skelmy commented Feb 23, 2025

Rhino Linux version & platform:
Latest as of filing report installed from: Rhino-Linux-2025.2-amd64.iso

What distribution component is causing issues:
libsnappy1v5

Describe the bug
On fresh install of Rhino Linux, after installing ubuntu-restricted-extas and gstreamer, no videos using Firefox that is preinstalled or LibreWolf for an extra tested browser installed via AM Manager appman (this browser is also based on Firefox), 'no live streaming video would work', tested using YouTube and the channel: 'LoFi Girl' channel as that's streaming 24/7, tested with both browsers, both

To Reproduce

  1. Start up 'Preinstalled Firefox'
  2. Go to: YouTube, try to stream live video.
  3. Error message saying 'Your browser can't play videos'
  4. Go to: YouTube, try to play 'non live streaming video' that is play on demand, which will work fine.

Expected behavior
Should be able to just load up Firefox after installing Rhino Linux, go to YouTube or any other streaming service and play streaming videos.

Additional context

Here is what is missing and the fix all in one:

sudo apt install --reinstall libsnappy1v5

Summary:
Upgrading: 0, Installing: 0, Reinstalling: 1, Removing: 0, Not Upgrading: 0
Download size: 30.4 kB
Space needed: 0 B / 219 GB available

Get:1 http://archive.ubuntu.com/ubuntu ./devel/main amd64 libsnappy1v5 amd64 1.2.1-1 [30.4 kB]
Fetched 30.4 kB in 0s (103 kB/s)
dpkg: warning: files list file for package 'libsnappy1v5:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsnapd-glib-2-1:amd64' missing; assuming package has no files currently installed
(Reading database ... 273997 files and directories currently installed.)
Preparing to unpack .../libsnappy1v5_1.2.1-1_amd64.deb ...
Unpacking libsnappy1v5:amd64 (1.2.1-1) over (1.2.1-1) ...
Setting up libsnappy1v5:amd64 (1.2.1-1) ...
Processing triggers for libc-bin (2.40-4ubuntu1) ...

As you can see that the dependency of:

dpkg: warning: files list file for package 'libsnappy1v5:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsnapd-glib-2-1:amd64' missing; assuming package has no files currently installed

Aren't installed, and after running:

sudo apt install --reinstall libsnappy1v5

This fixes the issue as it installs both those dependencies.

a) Issue a fix update that pushes this out to everyone?

b) Create another Rhino Linux ISO update that includes this installed by default as will fix the issue for people on a fresh install?

Props to: 'villamorrd' for the fix.

@skelmy skelmy added Bug Something isn't working triage Bug report/Feature request is yet to be evaluated by the Rhino Linux team labels Feb 23, 2025
@skelmy skelmy changed the title bug(<repo>): [Title] bug: libsnappy1v5 - Having missing dependencies: Not playing video on Rhino Linux out of the box. Feb 23, 2025
@oklopfer
Copy link
Member

Likely caused by https://github.com/rhino-linux/os/blob/main/etc/config/hooks/live/000-remove-blacklisted-packages.chroot#L8

Will investigate and fix for next release, and likely also add to dependencies for firefox. Thanks for the report.

@oklopfer
Copy link
Member

Likely caused by https://github.com/rhino-linux/os/blob/main/etc/config/hooks/live/000-remove-blacklisted-packages.chroot#L8

Will investigate and fix for next release, and likely also add to dependencies for firefox. Thanks for the report.

@cat-master21 That line has been there since the dawn of our builder, but find / -type f -name "*snap*" is evidently problematic, as it catches more than just snapd related content (/usr/lib/aarch64-linux-gnu/libsnappy.so.1.2.1 for example here)
I dont know if we can just update the find method to do *snapd* instead, since I dont quite know what it is targeting, so it would be great if you could step in and help solve this on the builder (if you do it on the main branch I will trickle it down to the others when its ready)

@oklopfer oklopfer changed the title bug: libsnappy1v5 - Having missing dependencies: Not playing video on Rhino Linux out of the box. bug(os): libsnappy1v5 improperly wiped Feb 23, 2025
@oklopfer oklopfer added OS Development OS Development Team: builder + core functionality and removed triage Bug report/Feature request is yet to be evaluated by the Rhino Linux team labels Feb 23, 2025
@cat-master21
Copy link

After looking into the issue, it seems like Snap removes itself properly, making that line is unnecessary now. Also as a side note, CUPS in Ubuntu now depends on libsnapd-glib (which is it's own library) but that only takes kilobytes so no big issue. @oklopfer You can remove that line

@oklopfer
Copy link
Member

See #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working OS Development OS Development Team: builder + core functionality
Projects
None yet
Development

No branches or pull requests

4 participants