设计问答

宝塔面板安装php报错error : cannot open Packages index using db5怎么解决?

吾皇 发布于 2022-01-15 分类:IT技术

我的宝塔是,宝塔7.8.0版本的,然后在安装php的时候出现错误,报错了。

提示:error: rpmdb: BDB0113 Thread/process 14635/ 140646819035200 failed: BDB
1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_ RUNRECOVERY:
Fatal error, run database recovery
error: cannot open Packages index using db5 - ( - 30973 )
error: cannot open Packages database in /var/lib/ rpm
error: rpmdb: BDB0113 Thread/process 14635/ 140646819035200 failed: BDB
1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_ RUNRECOVERY:
Fatal error, run database recovery
error: cannot open Packages database in /var/ lib/ rpm
sed: can't read /www/server/php/ 70/etc/php.ini: No such file or direct
ory
sed: can't read /www/server/php/70/etc/php.ini: No such file or direct
ory
sed: can't read /www/server/php/ 70/etc/php-fpm.conf: No such file or d
irectory
php.sh: line 160: /etc/init.d/php-fpm-70: No such file or directory
php.sh: line 162: /etc/init.d/php-fpm-70: No such file or directory
| - Successify --
命令已执行! ---

宝塔面板安装php报错error : cannot open Packages index  using db5怎么解决?

1个回复

  • Jeson

    应该是RPM文件有问题,你复制下面的命令执行一下试试修复一下,修复完成后再安装看看,应该能解决的。

    cd /var/lib/rpm/
    for i in `ls | grep 'db.'`;do mv $i $i.bak;done
    rpm --rebuilddb
    yum clean all
 
联系方式
站长QQ
1547221394
站长微信
jeson9966