Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

RHEL 7.4 にアップデートすると、rpm または yum に失敗し Failed to initialize NSS library メッセージが表示される

Solution Verified - Updated -

Issue

  • システムを RHEL 7.4 にアップデートし、rpm を実行すると、 Failed to initialize NSS library メッセージが表示されます。
 # rpm -qa
 error: Failed to initialize NSS library
  • RHEL 7.3 の新規インストールで glibc.i686 をインストールすると、yum を実行することができません。
# 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.