While installing Letsencrypt certificate on one of the 92 instances using wiki guide, I faced an issue due to multiple library versions of Zlib
Error: Multilib version problems found. This often means that the root cause is something else and multilib version checking is just pointing out that there is a problem. Eg.: 1. You have an upgrade for zlib which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of zlib of the different architecture. If you exclude the bad architecture yum will tell you what the root cause is (which package requires what). You can try redoing the upgrade with --exclude zlib.otherarch ... this should give you an error message showing the root cause of the problem. 2. You have multiple architectures of zlib installed, but yum can only see an upgrade for one of those architectures. If you don't want/need both architectures anymore then you can remove the one with the missing update and everything will work. 3. You have duplicate versions of zlib installed already. You can use "yum check" to get yum show these errors. ...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems).
As part of bahmni-installation we install zlib [1.2.11] from fedora’s repo -
yum install https://kojipkgs.fedoraproject.org//packages/zlib/1.2.11/18.fc30/x86_64/zlib-1.2.11-18.fc30.x86_64.rpm
As part of letsencrypt cert installation, yum tries to install
zlib-devel as a dependency (required for
openssl-devel) and fails with above error.
To overcome this, I had to follow below steps.
zlib-1.2.11-19- As I could not find compatible
zlib-1.2.11-18in fedora repo.
yum install http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/30/Everything/x86_64/Packages/z/zlib-1.2.11-19.fc30.x86_64.rpm
yum install http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/30/Everything/x86_64/Packages/z/zlib-devel-1.2.11-19.fc30.x86_64.rpm
Continued with letsencrypt cert installation