Chinaunix

标题: Centos6.8 使用yum和rpm命令,报错:error: Failed to initialize NSS library [打印本页]

作者: 申缘    时间: 2017-01-18 10:19
标题: Centos6.8 使用yum和rpm命令,报错:error: Failed to initialize NSS library
各位网友大家好,使用yum命令和rpm命令时出现了如下错误:
  1. [root@localhost etc]# yum
  2. error: Failed to initialize NSS library
  3. There was a problem importing one of the Python modules
  4. required to run yum. The error leading to this problem was:

  5.    cannot import name ts

  6. Please install a package which provides this module, or
  7. verify that the module is installed correctly.

  8. It's possible that the above module doesn't match the
  9. current version of Python, which is:
  10. 2.7.5 (default, Nov  6 2016, 00:28:07)
  11. [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

  12. If you cannot solve this problem yourself, please go to
  13. the yum faq at:
  14.   http://yum.baseurl.org/wiki/Faq
  15.   
  16. [root@localhost etc]#
复制代码
重新安装了yum软件也是不得行,请教一下大家,该怎么修复呢,谢谢!!

作者: yyu0378    时间: 2017-01-18 18:18
你NSS的库有问题




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2