snapcast icon indicating copy to clipboard operation
snapcast copied to clipboard

Unable to install the provided deb package on bookworm-based raspbian

Open tgurr opened this issue 8 months ago • 16 comments

Describe the bug Debian/Raspbian bookworm ships with libflac12 (https://packages.debian.org/bookworm/libflac12) instead of libflac8 (https://packages.debian.org/bullseye/libflac8) resulting in being unable to install the provided snapclient_0.27.0-1_without-pulse_armhf.deb.

pi@raspberrypi:~ $ sudo dpkg -i snapclient_0.27.0-1_without-pulse_armhf.deb
Selecting previously unselected package snapclient.
(Reading database ... 62433 files and directories currently installed.)
Preparing to unpack snapclient_0.27.0-1_without-pulse_armhf.deb ...
Unpacking snapclient (0.27.0-1) ...
dpkg: dependency problems prevent configuration of snapclient:
snapclient depends on libflac8 (>= 1.3.0); however:
 Package libflac8 is not installed.

Issuing sudo apt-get -f install like explained in the documentation: https://github.com/badaix/snapcast/blob/develop/doc/install.md#using-dpkg then just removes snapclient.

Upstream provided snapclient (apt install snapclient) on bookworm only ships the older 0.26.0.

Steps to Reproduce

  1. sudo dpkg -i snapclient_0.27.0-1_without-pulse_armhf.deb

Environment details

  • OS: Raspbian (bookworm)
  • Snapcast version: 0.27.0
  • Installed from a package

Attach logfile if applicable

tgurr avatar Oct 11 '23 22:10 tgurr

removed - only x86_64 relevant

chiefy avatar Oct 14 '23 16:10 chiefy

I believe I ran into the same issue, forked the repo and fixed some of the failing CI/CD, check out the built packages here (x86_64 only) which then worked. This was back in July, so YMMV.

Will these work on Raspberry with 64bit operating system then?

It appears that snapserver is failing on the lastest Pi Zero 2, wondering if 64Bit might help.

audas avatar Oct 15 '23 08:10 audas

These packages don't work on Raspberry Pi (armhf instead of x86_64)

seppeel avatar Oct 15 '23 09:10 seppeel

After my vacation I will create a docker image from the raspian bookworm image and add it to the CI. Two hours more build time for my poor, memory constrained RPi4... :)

badaix avatar Oct 15 '23 09:10 badaix

Raspberry snapclient_0.27.0-1_without-pulse_armhf.deb snapc dpkg: dependency problems prevent configuration of snapclient: snapclient depends on libflac8 (>= 1.3.0); however: Package libflac8 is not installed. snapclient depends on libvorbisidec1 (>= 1.2.1+git20180316); however: Package libvorbisidec1 is not installed.

audas avatar Oct 15 '23 20:10 audas

@chiefy don't know what you had to fix, but the Package CI creates Debian packages for buster, bullseye and bookworm for X64 and for ARM. You can download them here: https://github.com/badaix/snapcast/actions/runs/6037321427 Packages for both architectures are built in Debian buster/bullseye/bookworm docker containers. Only the bookworm ARM version is missing because it's using raspbian, which was not available, but has been released a few days ago. What you can find on the release page are buster images. Seems that I should provide packages for all Debian versions.

badaix avatar Oct 16 '23 09:10 badaix

@chiefy don't know what you had to fix, but the Package CI creates Debian packages for buster, bullseye and bookworm for X64 and for ARM. You can download them here: https://github.com/badaix/snapcast/actions/runs/6037321427 Packages for both architectures are built in Debian buster/bullseye/bookworm docker containers. Only the bookworm ARM version is missing because it's using raspbian, which was not available, but has been released a few days ago. What you can find on the release page are buster images. Seems that I should provide packages for all Debian versions.

Well I remember running into this a few months back, but I just spent 20 minutes in a Dockerfile with every variation of debian and I can't reproduce. :shrug: (at least in x86_64 land, which I know is not OP's issue)

chiefy avatar Oct 16 '23 13:10 chiefy

@tgurr I've created a Raspbian bookworm docker container for ARM and added it to the package CI: 40f3495 You can find a debian package for bookworm snapcast_armhf-debian-bookworm, based on the develop branch here: https://github.com/badaix/snapcast/actions/runs/6561332062

The package is not tested, because I don't have a bookworm based ARM system at hand. Please check if it is working for you, so I can add it the the upcoming releases.

badaix avatar Oct 19 '23 11:10 badaix

I tested on a Raspberry Pi 4 with latest Raspberry Pi OS (64 Bit - bookworm) installed. Was able to install, start and stream music. -> Looks good so far.

seppeel avatar Oct 20 '23 10:10 seppeel

@tgurr I've created a Raspbian [bookworm docker container] Please check if it is working for you, so I can add it the the upcoming releases.

@badaix Thanks! Tested snapclient_0.27.0-1_without-pulse_armhf.deb which works fine for me here as well:

Okt 20 13:54:24 cube snapserver[282]: Hello from b8:27:eb:32:fd:c2, host: hifiberry1, v0.27.0, ClientName: Snapclient, OS: Raspbian GNU/Linux 12 (bookworm), Arch: armv7l, Protocol version: 2
Okt 20 13:54:26 cube snapserver[282]: Hello from b8:27:eb:2a:ff:03, host: hifiberry2, v0.27.0, ClientName: Snapclient, OS: Raspbian GNU/Linux 12 (bookworm), Arch: armv7l, Protocol version: 2

tgurr avatar Oct 20 '23 11:10 tgurr

Installed and all good so far on Pi Zero W.

ClientName: Snapclient, OS: Raspbian GNU/Linux 12 (bookworm), Arch: armv6l, Protocol version: 2

Thanks.

yellowonblack avatar Oct 27 '23 22:10 yellowonblack

I was able to get libflac8 by downloading the deb from here: http://ftp.debian.org/debian/pool/main/f/flac/libflac8_1.3.3-2+deb11u2_armhf.deb

genericuser256 avatar Dec 04 '23 15:12 genericuser256

attempting to get things working on an i3 unit running debian bookworm and I have this issue. Is there a fix or do we have to await the next release?

pcwii avatar Feb 06 '24 02:02 pcwii

There are already bookworm packages available for the develop branch:

https://github.com/badaix/snapcast/actions/runs/7553442434

badaix avatar Feb 06 '24 11:02 badaix

I am not certain where the .Deb file is from your link. Do I need to build it? I was just going to "wget" the .Deb package.

pcwii avatar Feb 06 '24 12:02 pcwii

I think you must be logged in to be able to download build artifacts

badaix avatar Feb 06 '24 13:02 badaix

Fixed in version 0.28.0

badaix avatar Apr 19 '24 16:04 badaix