- $ rpm或yun
error: Failed to initialize NSS library
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, Apr 2 2020, 13:16:51)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
If you cannot solve this problem yourself, please go to
the yum faq at:
- 按照网上的办法,rpm2iop重装rpm,又提示下面
/usr/libexec/pk-command-not-found: error while loading shared libraries: /lib64/libsqlite3.so.0: file too short
-
这样就缩小的处理范围,是sqlite3的问题。这个问题就出现在python3现在不能pip装sqlite3,按照网上的方法,我删除过
libsqlite3.so.0
文件。这样,去安装盘找到sqlite的rpm包,解压出so文件,放到指定位置。
但是还有上述问题。在外网某个stack看到下面的方法,问题解决了。 -
与问题的系统对比
$ ls -lZ /usr/lib64/libsqlite3.so.0*
lrwxrwxrwx root root system_u:object_r:lib_t /usr/lib64/libsqlite3.so.0 -> libsqlite3.so.0.8.6
-rwxr-xr-x root root system_u:object_r:lib_t /usr/lib64/libsqlite3.so.0.8.6
# ls -lZ /usr/lib64/libsqlite3.so.0*
-rwxr-xr-x root root /usr/lib64/libsqlite3.so.0
-rwxr-xr-x root root /usr/lib64/libsqlite3.so.0.8.6
对比发现缺少link
cd /usr/lib64
rm -f libsqlite3.so.0
ln -s libsqlite3.so.0.8.6 libsqlite3.so.0
然后就好了
网友评论