Solution:
Installing the lib64z1
package solved it for me: sudo apt install lib64z1
.
Backstory:
While using a Raspberry Pi OS VM and trying to connect it to GitHub Actions, the library libz.so.1
was missing.
This error appeared when I ran the config.sh
script, more specifically when this script ran ldd ./bin/libSystem.IO.Compression.Native.so
.
I updated both zlib1g
and zlib1g-dev
with no improvements.
I then noticed that the only libz.so.1
library installed was 32 bits by doing sudo find / -name libz.so.1*
, that returned these 2 file locations:
/usr/lib/i386-linux-gnu/libz.so.1.2.11
/usr/lib/i386-linux-gnu/libz.so.1 (this one is a symbolic link to the one above)
and analysing this library with file /usr/lib/i386-linux-gnu/libz.so.1.2.11
returned:
/usr/lib/i386-linux-gnu/libz.so.1.2.11: ELF 32-bit ...
Now that I've found that I was missing the 64-bit version of this library, searching for a package with it was done on the debian packages website: https://packages.debian.org/search?suite=bullseye&arch=i386&mode=filename&searchon=contents&keywords=libz.so.1 which shows that lib64z1
has the library we want on the 64 bits library directory: /usr/lib64/libz.so.1
.
I've also confirmed this package exists on the Ubuntu package repository: https://packages.ubuntu.com/search?keywords=lib64z1