开发者社区> 问答> 正文

Centos7 error: Failed to initialize NSS library

在Centos 7.2执行下列命令yum install -y gcc libaio-devel spice-server-devel spice-protocol-devel ceph-devel libiscsi-devel pixman-devel zlib-devel glib2-devel libusbx-devel.x86_64 libcap-devel glusterfs-api-devel glusterfs-devel glusterfs-devel libfdt-devel libfdt-devel gcc-c++ 之后无法使用yum以及rpm命令,报错信息为: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 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq

您在 /var/spool/mail/root 中有新邮件

另外,网上说的下载后执行的命令,也尝试过,无效。 rpm2cpio nspr-4.13.1-1.0.el7_3.x86_64.rpm | cpio -idmv LD_PRELOAD=/usr/lib64/libnspr4.so yum update nspr

展开
收起
游客hdisgrspa4azc 2020-04-20 16:21:25 3099 0
1 条回答
写回答
取消 提交回答
  • 是不是网络问题?大部分类似问题是缺少网速足够的网线。

    2020-04-29 13:46:02
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
How to Build a Successful Data 立即下载