Open JDK 8, 11 are unavailable for Bookworm and later
The following packages have unmet dependencies:
spocon : Depends: openjdk-11-jre but it is not installable or
openjdk-8-jre but it is not installable
SpoCon is pinned to JDK 8, 11, but will work with open JDK 17. The dependencies can be manually updated.
- Run the installer script to setup the PPA keys:
curl -sL https://spocon.github.io/spocon/install.sh | sh - Download the spocon package manually:
apt download spocon - Make a temporary directory to unpack the
.debpackage:mkdir temp - Unpack the
.deb:dpkg-deb -R spcoon_your_version.deb temp - Edit
./temp/DEBIAN/controland change the dependencies to add JDK 17Depends: libasound2, adduser, openjdk-11-jre | openjdk-8-jre | openjdk-17-jre - Repackage the
.deb:dpkg-deb -b ./temp spocon_fixed.deb - Install:
sudo apt install ./spocon_fixed.deb - Set the volume in
/opt/spocon/config.toml
[player]
# ...
# Initial volume (0-65536) 10993 is 1/6 max
initialVolume = 10993
# ...
# Number of volume notches
volumeSteps = 32- Restart spocon/librespot
sudo systemctl restart spocon.service
Hi there, I am trying to do this but I had a ton of trouble so I'm leaving this here to help someone in the future.
Unpack the .deb: dpkg-deb -R spcoon_your_version.deb temp
In my case the .deb was in my Pi folder and it was spocon_1.6.3_arm64.deb
For step 5, all the other ones had copy/paste command, so this one could too.
sudo nano ./temp/DEBIAN/control
I was able to get it though, so this fix does work! Thank you!