Libz.so.1: failed to map segment from shared object

openSUSE Tumbleweed 10/16/2023 (x86_64) on kernel 6.5.6-1-default

less 4k-4g-1j-32G

/usr/bin/file: error while loading shared libraries: libz.so.1: failed to map segment from shared object
/usr/bin/file: error while loading shared libraries: libz.so.1: failed to map segment from shared object
I googled around and tried various proposed solutions, none worked
4k-4g-1j-32G is a 2k text file
locate libz.so
/usr/lib64/libz.so
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.13
/usr/local/lib/libz.so
/usr/local/lib/libz.so.1
/usr/local/lib/libz.so.1.3

I noticed this after a reboot.
Any ideas?

@erbenton your about 20 snapshots behind the current release, hard to say, except upgrade…

@erbenton as in zypper -vvv dup

As Lewis already pointed out: you are using a heavily outdated system. Your libz is from January 2023! whilst the latest one is from October…
No wonder that you error out…
Additionally your installation path seems broken…this libraries don’t belong into /usr/local/lib/

ok, well, i will update this weekend. The systems i own are too busy to interrupt during the week.

ok, so after updating to latest TW I still get the same issue
# lsb_release -a
LSB Version: n/a
Distributor ID: openSUSE
Description: openSUSE Tumbleweed
Release: 20231108
Codename: n/a
/usr/bin/file: error while loading shared libraries: libz.so.1: failed to map segment from shared object

@erbenton as pointed out by @hui you have an out of date non-standard libz in /usr/local/lib directory…