CentOS解决无意间宝塔面板引发的连锁问题 - “Failed to initialize NSS library”



nginx1.2  php7.2  mysql5.5


Error: BT-Panel service startup failed.
Error: BT-Task service startup failed.

打算重新安装运行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 7 2019, 00:51:29)
[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:

解决方案:重新安装Sqlite:因为sqlite会引发一系列软件均不可用,包括:yum, rpm等


# download required rpm package
wget -c http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/23/x86_64/s/sqlite-3.11.0-3.fc23.x86_64.rpm
wget -c http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/23/x86_64/s/sqlite-libs-3.11.0-3.fc23.x86_64.rpm

# change rpm format package into cpio format, then install both
rpm2cpio sqlite-3.11.0-3.fc23.x86_64.rpm | cpio -idmv
rpm2cpio sqlite-libs-3.11.0-3.fc23.x86_64.rpm | cpio -idmv

# copy and rewrite usr/bin and usr/libs
cp -R usr/ /

# work done! Everything is OK!
# if not be assured, you can reinstall sqlite
yum reinstall sqlite








电子邮件地址不会被公开。必填项已用 * 标注