archive_file fails: Could not open library libarchive.so.13, XZ_5.2 not found (CentOS 7)
The root cause is on the OS side: libnss_myhostname on CentOS/RHEL 7 drags in libdw and liblzma, whose versions clash with the omnibus libarchive. The workaround confirmed by a maintainer is to edit /etc/nsswitch.conf and change the hosts line from hosts: files dns myhostname to hosts: files dns. This stops the myhost…
Problem outcome: unknown