I am using the Stockfish chess engine within some GUI, but yesterday it stopped working. I hadn't changed the engine, nor the interface, but when I tried to run the engine it "terminated with code...", but it didn't output any code. The only thing that could have changed is that I regularly upgrade my packages:
sudo apt update && sudo apt dist-upgrade, and I guess that must have broke it.
I installed the latest Stockfish Version and ran it in the command line, and the output it gives is:
./stockfish_21112912_x64_avx2: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./stockfish_21112912_x64_avx2) ./stockfish_21112912_x64_avx2: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./stockfish_21112912_x64_avx2) ./stockfish_21112912_x64_avx2: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./stockfish_21112912_x64_avx2)
So I wanted to upgrade GLIBC and I came upon this thread: [https://askubuntu.com/questions/736208/upgrading-glibc]:
"Glibc (better known as GNU C Library) has a fork for linux which is called libc6. Libc6 is available via apt." I ran:
apt-cache policy libc6, which gave the output:
libc6: Installed: 2.31-0ubuntu9.2 Candidate: 2.31-0ubuntu9.2 Version table: *** 2.31-0ubuntu9.2 500 500 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages 100 /var/lib/dpkg/status 2.31-0ubuntu9 500 500 http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages
Which tells me within the "normal" packages 2.31 is the official version for my OS version (Ubuntu 20.04).
So I tried doing it manually:How to install a libc6 version >= 2.29?
I downloaded libc6_2.34-0ubuntu3_amd64.deb from http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/, as described, but when I ran:
sudo dpkg -i libc6_2.34-0ubuntu3_amd64.deb, it produced the following error:
dpkg: regarding libc6_2.34-0ubuntu3_amd64.deb containing libc6:amd64: libc6:amd64 breaks fakeroot (<< 1.25.3-1.1ubuntu2~) fakeroot (version 1.24-1) is present and installed. dpkg: error processing archive libc6_2.34-0ubuntu3_amd64.deb (--install): installing libc6:amd64 would break fakeroot, and deconfiguration is not permitted (--auto-deconfigure might help) Errors were encountered while processing: libc6_2.34-0ubuntu3_amd64.deb
How do I solve this? I am a bit of a newb, so preferably without breaking my system