badaix / snapcast

Synchronous multiroom audio player
GNU General Public License v3.0
6.21k stars 456 forks source link

Cannot install snapserver on Debian 12 x86 #1269

Closed igbjnI05bF closed 3 months ago

igbjnI05bF commented 3 months ago

Describe the bug Cannot install the latest snapserver 0.28.0-1 package on Debian 12 64 bit

Steps to Reproduce

  1. Download latest snapserver (currently 0.28.0-1) .deb file for bookworm
  2. dpkg -i the file
  3. error - snapserver depends on libflac8 however libflac8 is not installed

I saw a previous closed issue for this but it said it was fixed in version 28, clearly it isn't, at least not on my system.

badaix commented 3 months ago

You should use apt install, as written here. If you use dpkg, you must add the missing dependencies, as written here.

igbjnI05bF commented 3 months ago

I had no idea you could use apt to install local deb files, I just tried it and it isn't working, maybe I'm missing something. I'm in the same directory as the .deb file.

sudo apt install snapserver_0.28.0-1_amd64-bullseye.deb E: Unable to locate package snapserver_0.28.0-1_amd64-bullseye.deb

igbjnI05bF commented 3 months ago

Disregard last comment, I tried again and this time used the relative path (sudo apt install ./snapserver_0.28.0-1_amd64-bullseye.deb) but it still just says the same error as in original message, "snapserver : Depends: libflac8 (>= 1.3.0) but it is not installable"

mxmilkiib commented 3 months ago

Aside; using YunoHost private/personal cloud distro, Debian 11-based still, is there any way to skip/speed up the dependency hell that will require me to get, build and install them all from source?

badaix commented 3 months ago

Works as expected:

docker run -i -t debian:bookworm

root@1321de864bb9:~# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

root@1321de864bb9:~# wget https://github.com/badaix/snapcast/releases/download/v0.28.0/snapserver_0.28.0-1_amd64-bookworm.deb 

...

root@1321de864bb9:~# apt install ./snapserver_0.28.0-1_amd64-bookworm.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'snapserver' instead of './snapserver_0.28.0-1_amd64-bookworm.deb'
The following additional packages will be installed:
  alsa-topology-conf alsa-ucm-conf avahi-daemon dbus dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common libapparmor1 libasound2 libasound2-data libavahi-client3
  libavahi-common-data libavahi-common3 libavahi-core7 libdaemon0 libdbus-1-3 libexpat1 libflac12 libgomp1 libnss-mdns libogg0 libopus0 libsoxr0 libvorbis0a libvorbisenc2
Suggested packages:
  avahi-autoipd default-dbus-session-bus | dbus-session-bus libasound2-plugins alsa-utils avahi-autoipd | zeroconf opus-tools
The following NEW packages will be installed:
  alsa-topology-conf alsa-ucm-conf avahi-daemon dbus dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common libapparmor1 libasound2 libasound2-data libavahi-client3
  libavahi-common-data libavahi-common3 libavahi-core7 libdaemon0 libdbus-1-3 libexpat1 libflac12 libgomp1 libnss-mdns libogg0 libopus0 libsoxr0 libvorbis0a libvorbisenc2 snapserver
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 2534 kB/3892 kB of archives.
After this operation, 13.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 /root/snapserver_0.28.0-1_amd64-bookworm.deb snapserver amd64 0.28.0-1 [1358 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 libdbus-1-3 amd64 1.14.10-1~deb12u1 [201 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 dbus-bin amd64 1.14.10-1~deb12u1 [105 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 dbus-session-bus-common all 1.14.10-1~deb12u1 [78.2 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 libapparmor1 amd64 3.0.8-3 [41.2 kB]
Get:6 http://deb.debian.org/debian bookworm/main amd64 libexpat1 amd64 2.5.0-1 [99.3 kB]
Get:7 http://deb.debian.org/debian bookworm/main amd64 dbus-daemon amd64 1.14.10-1~deb12u1 [184 kB]
Get:8 http://deb.debian.org/debian bookworm/main amd64 dbus-system-bus-common all 1.14.10-1~deb12u1 [79.3 kB]
Get:9 http://deb.debian.org/debian bookworm/main amd64 dbus amd64 1.14.10-1~deb12u1 [97.4 kB]
Get:10 http://deb.debian.org/debian bookworm/main amd64 alsa-topology-conf all 1.2.5.1-2 [15.2 kB]
Get:11 http://deb.debian.org/debian bookworm/main amd64 libasound2-data all 1.2.8-1 [20.5 kB]
Get:12 http://deb.debian.org/debian bookworm/main amd64 libasound2 amd64 1.2.8-1+b1 [362 kB]
Get:13 http://deb.debian.org/debian bookworm/main amd64 alsa-ucm-conf all 1.2.8-1 [51.7 kB]
Get:14 http://deb.debian.org/debian bookworm/main amd64 libavahi-common-data amd64 0.8-10 [107 kB]
Get:15 http://deb.debian.org/debian bookworm/main amd64 libavahi-common3 amd64 0.8-10 [41.6 kB]
Get:16 http://deb.debian.org/debian bookworm/main amd64 libavahi-core7 amd64 0.8-10 [103 kB]
Get:17 http://deb.debian.org/debian bookworm/main amd64 libdaemon0 amd64 0.14-7.1 [15.0 kB]
Get:18 http://deb.debian.org/debian bookworm/main amd64 avahi-daemon amd64 0.8-10 [82.7 kB]
Get:19 http://deb.debian.org/debian bookworm/main amd64 libavahi-client3 amd64 0.8-10 [45.5 kB]
Get:20 http://deb.debian.org/debian bookworm/main amd64 libogg0 amd64 1.3.5-3 [23.4 kB]
Get:21 http://deb.debian.org/debian bookworm/main amd64 libflac12 amd64 1.4.2+ds-2 [198 kB]
Get:22 http://deb.debian.org/debian bookworm/main amd64 libgomp1 amd64 12.2.0-14 [116 kB]
Get:23 http://deb.debian.org/debian bookworm/main amd64 libnss-mdns amd64 0.15.1-3 [20.6 kB]
Get:24 http://deb.debian.org/debian bookworm/main amd64 libopus0 amd64 1.3.1-3 [195 kB]
Get:25 http://deb.debian.org/debian bookworm/main amd64 libsoxr0 amd64 0.1.3-4 [77.8 kB]
Get:26 http://deb.debian.org/debian bookworm/main amd64 libvorbis0a amd64 1.3.7-1 [93.0 kB]
Get:27 http://deb.debian.org/debian bookworm/main amd64 libvorbisenc2 amd64 1.3.7-1 [80.6 kB]
Fetched 2534 kB in 0s (7240 kB/s)         
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libdbus-1-3:amd64.
(Reading database ... 6689 files and directories currently installed.)
Preparing to unpack .../00-libdbus-1-3_1.14.10-1~deb12u1_amd64.deb ...
Unpacking libdbus-1-3:amd64 (1.14.10-1~deb12u1) ...
Selecting previously unselected package dbus-bin.
Preparing to unpack .../01-dbus-bin_1.14.10-1~deb12u1_amd64.deb ...
Unpacking dbus-bin (1.14.10-1~deb12u1) ...
Selecting previously unselected package dbus-session-bus-common.
Preparing to unpack .../02-dbus-session-bus-common_1.14.10-1~deb12u1_all.deb ...
Unpacking dbus-session-bus-common (1.14.10-1~deb12u1) ...
Selecting previously unselected package libapparmor1:amd64.
Preparing to unpack .../03-libapparmor1_3.0.8-3_amd64.deb ...
Unpacking libapparmor1:amd64 (3.0.8-3) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../04-libexpat1_2.5.0-1_amd64.deb ...
Unpacking libexpat1:amd64 (2.5.0-1) ...
Selecting previously unselected package dbus-daemon.
Preparing to unpack .../05-dbus-daemon_1.14.10-1~deb12u1_amd64.deb ...
Unpacking dbus-daemon (1.14.10-1~deb12u1) ...
Selecting previously unselected package dbus-system-bus-common.
Preparing to unpack .../06-dbus-system-bus-common_1.14.10-1~deb12u1_all.deb ...
Unpacking dbus-system-bus-common (1.14.10-1~deb12u1) ...
Selecting previously unselected package dbus.
Preparing to unpack .../07-dbus_1.14.10-1~deb12u1_amd64.deb ...
Unpacking dbus (1.14.10-1~deb12u1) ...
Selecting previously unselected package alsa-topology-conf.
Preparing to unpack .../08-alsa-topology-conf_1.2.5.1-2_all.deb ...
Unpacking alsa-topology-conf (1.2.5.1-2) ...
Selecting previously unselected package libasound2-data.
Preparing to unpack .../09-libasound2-data_1.2.8-1_all.deb ...
Unpacking libasound2-data (1.2.8-1) ...
Selecting previously unselected package libasound2:amd64.
Preparing to unpack .../10-libasound2_1.2.8-1+b1_amd64.deb ...
Unpacking libasound2:amd64 (1.2.8-1+b1) ...
Selecting previously unselected package alsa-ucm-conf.
Preparing to unpack .../11-alsa-ucm-conf_1.2.8-1_all.deb ...
Unpacking alsa-ucm-conf (1.2.8-1) ...
Selecting previously unselected package libavahi-common-data:amd64.
Preparing to unpack .../12-libavahi-common-data_0.8-10_amd64.deb ...
Unpacking libavahi-common-data:amd64 (0.8-10) ...
Selecting previously unselected package libavahi-common3:amd64.
Preparing to unpack .../13-libavahi-common3_0.8-10_amd64.deb ...
Unpacking libavahi-common3:amd64 (0.8-10) ...
Selecting previously unselected package libavahi-core7:amd64.
Preparing to unpack .../14-libavahi-core7_0.8-10_amd64.deb ...
Unpacking libavahi-core7:amd64 (0.8-10) ...
Selecting previously unselected package libdaemon0:amd64.
Preparing to unpack .../15-libdaemon0_0.14-7.1_amd64.deb ...
Unpacking libdaemon0:amd64 (0.14-7.1) ...
Selecting previously unselected package avahi-daemon.
Preparing to unpack .../16-avahi-daemon_0.8-10_amd64.deb ...
Unpacking avahi-daemon (0.8-10) ...
Selecting previously unselected package libavahi-client3:amd64.
Preparing to unpack .../17-libavahi-client3_0.8-10_amd64.deb ...
Unpacking libavahi-client3:amd64 (0.8-10) ...
Selecting previously unselected package libogg0:amd64.
Preparing to unpack .../18-libogg0_1.3.5-3_amd64.deb ...
Unpacking libogg0:amd64 (1.3.5-3) ...
Selecting previously unselected package libflac12:amd64.
Preparing to unpack .../19-libflac12_1.4.2+ds-2_amd64.deb ...
Unpacking libflac12:amd64 (1.4.2+ds-2) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../20-libgomp1_12.2.0-14_amd64.deb ...
Unpacking libgomp1:amd64 (12.2.0-14) ...
Selecting previously unselected package libnss-mdns:amd64.
Preparing to unpack .../21-libnss-mdns_0.15.1-3_amd64.deb ...
Unpacking libnss-mdns:amd64 (0.15.1-3) ...
Selecting previously unselected package libopus0:amd64.
Preparing to unpack .../22-libopus0_1.3.1-3_amd64.deb ...
Unpacking libopus0:amd64 (1.3.1-3) ...
Selecting previously unselected package libsoxr0:amd64.
Preparing to unpack .../23-libsoxr0_0.1.3-4_amd64.deb ...
Unpacking libsoxr0:amd64 (0.1.3-4) ...
Selecting previously unselected package libvorbis0a:amd64.
Preparing to unpack .../24-libvorbis0a_1.3.7-1_amd64.deb ...
Unpacking libvorbis0a:amd64 (1.3.7-1) ...
Selecting previously unselected package libvorbisenc2:amd64.
Preparing to unpack .../25-libvorbisenc2_1.3.7-1_amd64.deb ...
Unpacking libvorbisenc2:amd64 (1.3.7-1) ...
Selecting previously unselected package snapserver.
Preparing to unpack .../26-snapserver_0.28.0-1_amd64-bookworm.deb ...
Unpacking snapserver (0.28.0-1) ...
Setting up libexpat1:amd64 (2.5.0-1) ...
Setting up libapparmor1:amd64 (3.0.8-3) ...
Setting up libogg0:amd64 (1.3.5-3) ...
Setting up libgomp1:amd64 (12.2.0-14) ...
Setting up libasound2-data (1.2.8-1) ...
Setting up libflac12:amd64 (1.4.2+ds-2) ...
Setting up libavahi-common-data:amd64 (0.8-10) ...
Setting up libdbus-1-3:amd64 (1.14.10-1~deb12u1) ...
Setting up libopus0:amd64 (1.3.1-3) ...
Setting up libvorbis0a:amd64 (1.3.7-1) ...
Setting up alsa-topology-conf (1.2.5.1-2) ...
Setting up dbus-session-bus-common (1.14.10-1~deb12u1) ...
Setting up libasound2:amd64 (1.2.8-1+b1) ...
Setting up dbus-system-bus-common (1.14.10-1~deb12u1) ...
Setting up libdaemon0:amd64 (0.14-7.1) ...
Setting up libnss-mdns:amd64 (0.15.1-3) ...
Setting up dbus-bin (1.14.10-1~deb12u1) ...
Setting up libvorbisenc2:amd64 (1.3.7-1) ...
Setting up alsa-ucm-conf (1.2.8-1) ...
Setting up libsoxr0:amd64 (0.1.3-4) ...
Setting up libavahi-common3:amd64 (0.8-10) ...
Setting up dbus-daemon (1.14.10-1~deb12u1) ...
Setting up dbus (1.14.10-1~deb12u1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libavahi-core7:amd64 (0.8-10) ...
Setting up libavahi-client3:amd64 (0.8-10) ...
Setting up snapserver (0.28.0-1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up avahi-daemon (0.8-10) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of force-reload.
Processing triggers for libc-bin (2.36-9+deb12u7) ...
N: Download is performed unsandboxed as root as file '/root/snapserver_0.28.0-1_amd64-bookworm.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
root@1321de864bb9:~# 
root@1321de864bb9:~# 
root@1321de864bb9:~# snapserver 
2024-08-20 20-03-56.115 [Info] (Snapserver) Version 0.28.0, revision 000ea4f3
2024-08-20 20-03-56.115 [Info] (Snapserver) Adding source: pipe:///tmp/snapfifo?name=default
2024-08-20 20-03-56.116 [Notice] (init) Settings file: "/root/.config/snapserver/server.json"
2024-08-20 20-03-56.116 [Error] (Avahi) Failed to create client: Daemon not running
2024-08-20 20-03-56.117 [Info] (Snapserver) Using HTTP host name: 1321de864bb9
2024-08-20 20-03-56.117 [Info] (PcmStream) PcmStream: default, sampleFormat: 48000:16:2
2024-08-20 20-03-56.117 [Info] (PipeStream) PipeStream mode: create
2024-08-20 20-03-56.117 [Info] (Server) Stream: {"fragment":"","host":"","path":"/tmp/snapfifo","query":{"chunk_ms":"20","codec":"flac","name":"default","sampleformat":"48000:16:2"},"raw":"pipe:////tmp/snapfifo?chunk_ms=20&codec=flac&name=default&sampleformat=48000:16:2","scheme":"pipe"}
2024-08-20 20-03-56.118 [Info] (FlacEnc) Init - compression level: 2
2024-08-20 20-03-56.118 [Info] (ControlServer) Creating TCP acceptor for address: 0.0.0.0, port: 1705
2024-08-20 20-03-56.118 [Info] (ControlServer) Creating HTTP acceptor for address: 0.0.0.0, port: 1780
2024-08-20 20-03-56.118 [Info] (StreamServer) Creating stream acceptor for address: 0.0.0.0, port: 1704
2024-08-20 20-03-56.119 [Info] (Snapserver) Number of threads: 4, hw threads: 8
2024-08-20 20-03-56.119 [Error] (AsioStream) Error reading message: End of file, length: 0, ec: asio.misc:2
^C2024-08-20 20-03-56.784 [Info] (Snapserver) Received signal 2: Interrupt
2024-08-20 20-03-56.785 [Info] (Snapserver) Stopping streamServer
2024-08-20 20-03-56.785 [Info] (Snapserver) done
2024-08-20 20-03-56.785 [Notice] (Snapserver) Snapserver terminated.
root@1321de864bb9:~#