Linux:Yum/rpm无法从CentOS/RHEL 7.3升级到7.4(错误:无法初始化NSS库)
时间:2020-02-23 14:40:04 来源:igfitidea点击:
error: Failed to initialize NSS library
您可能在RHEL 7.3系统上运行" Yum更新"时遇到以下问题:
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 2015, 04:20:16) [GCC 4.8.5 20140623 (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
显然,某些更新的组件在版本方面与系统中现有的未更新组件"不同步"。
要解决此问题,您需要使用" libnspr4"共享库调用yum,升级nspr。
1.下载libnspr4共享库:
www.theitroad.local/rhel/libnspr4.so.tar.bz2
备用链接(需要订阅):https://access.redhat.com/node/3134931/40/0
2.打开包装:
tar -jxvf libnspr4.so_.tar.bz2
3.调用Yum:
LD_PRELOAD=./libnspr4.so yum update nspr
Yum现在应该工作。