Yesterday I got help from a neighbour to fix the same issue.
I have an Rpi with Twisted Pear Audio Hat and Cronus which I want to run.
My situation is slightly different since the below outputs are found:
gcc --version
g++ --version
We end up with the following:
root@volumio:/home/volumio/tpa-hermes-rpi-dev# git pull
Already up-to-date.
root@volumio:/home/volumio/tpa-hermes-rpi-dev# make clean
make -C /lib/modules/uname -r/build M=$PWD clean
make[1]: *** /lib/modules/4.19.118-v7+/build: No such file or directory. Stop.
Makefile:27: recipe for target âcleanâ failed
make: *** [clean] Error 2
root@volumio:/home/volumio/tpa-hermes-rpi-dev#
Thank you for your Workaround! Iâm very happy that youâve found a solution for the issue!
The issue has broken my installation Routine for NR1-UI, am I allowed to use your âFix-codeâ if Iâll credit you in my Github?
Thank you in advance!
Regards,
Christoph
@volumio the âbuild-essentialâ installation ist still broken on Volumio 2.909 (Rpi 4/4Gb - fresh installation). Will you fix this Issue? Cause my code need Build-EssentialâŚ
volumio@volumio:~$ sudo apt-get install build-essential
Reading package lists⌠Done
Building dependency tree
Reading state information⌠Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
build-essential : Depends: gcc (>= 4:4.9.1) but it is not going to be installed
Depends: g++ (>= 4:4.9.1) but it is not going to be installed
Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Is there a solution for this issue. Have the same problem with latest volumio 2.909. I need a g++ but unable to install
apt-get install build-essential
The following packages have unmet dependencies:
build-essential : Depends: gcc (>= 4:4.9.1) but it is not going to be installed
Depends: g++ (>= 4:4.9.1) but it is not going to be installed
Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
But no luck. Tried (as descripted in this post) to add
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
to sources.list
Also with no luck, this breaks mpd and it wonât start anymore.
Any hints how to fix it and get the compiler running?
Is a possible solution to build volumio from scratch?
Quite true. Having Stretch libraries in a Jessie distribution is going to cause all sorts of compilation problems, but I speculate this is necessary because of Tidal Connect (and Tidal is not going to compile TC for a distro that had reached EOL more than a year ago).
Loaded up an 2.xx image after some time and ran into this personally.
Itâs a tad annoying, as I donât use Tidal, but even downgrading to a version that doesnât use Tidal connect no longer works because of the certificate issues.
The issue with stretch libs is also seen from python and pip dependencies being broken.
If a few libs are needed from Stretch, then there are much better ways than just get fetching everything from Stretch⌠But I agree, we can only speculate here and pin (hehe) things on the Tidal Connect plugin.
I did some looking up on the leaked/questionable versions of tidal connect floating around on github, and indeed you see that it needs some libs from Jessie and/or some from stretch(libflac++ libavformat57 libcurl3, etc). So the hypothesis indeed seems correct.
Tell apt that stuff was installed from stretch repos
By adding stretch to /etc/apt/sources.list
cat <<-EOF > /etc/apt/sources.list
deb http://archive.volumio.org/raspbian/ jessie main contrib non-free rpi
#deb-src http://archive.volumio.org/raspbian/ jessie main contrib non-free rpi
# This is required to convince APT that there were stretch libs installed at some point
# Don't worry, we won't use it after fixing things..
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
EOF
Tell apt that we donât want stuff from stretch, and revert to Jessie
By setting proper pin priorities