错误:安装 libvirt 软件包后无法在 RHEL 7.3 上初始化 NSS 库

错误:安装 libvirt 软件包后无法在 RHEL 7.3 上初始化 NSS 库

我想在 RHEL 7.3 KVM 主机上安装 libvirt 和 libguestfs-tools。但我面临以下问题:

[root@localhost ~]# yum install -y libvirt
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

我的Python版本是2.7.5。

相关内容