本来是解决一个wordpress博客后台无法登录的问题,删除了宝塔的备份插件谷歌硬盘,然后点宝塔面板修复造成了宝塔面板无法登录。
环境:centos7.6
nginx1.2 php7.2 mysql5.5
重启宝塔会出现以下2个错误
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:
http://yum.baseurl.org/wiki/Faq
解决方案:重新安装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
文章评论