在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
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。