After updating to RHEL 7.4, rpm and yum fail with "Failed to initialize NSS library"
Issue
-
After updating the system to RHEL 7.4, rpm encounters "Failed to initialize NSS library"
# rpm -qa error: Failed to initialize NSS library -
Fresh installations of RHEL 7.3 that install "glibc.i686" can not utilize yum afterwards
# yum repolist error: Failed to initialize NSS library There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: cannot import name ts Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq
Environment
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
