yum install redis 报错

2020-12-08 10:01:54 浏览数 (1)

报错

代码语言:javascript复制
error: rpmdb: BDB0113 Thread/process 490386/139641310775360 failed: BDB1507 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
CRITICAL:yum.main:
Error: rpmdb open failed

解决

代码语言:javascript复制
[root@1195 ~]# rm -f /var/lib/rpm/_db*
[root@1195 ~]# rpm --rebuilddb
[root@1195 ~]# yum clean all

再次安装

使用 yum install redis 再次安装,成功!

代码语言:javascript复制
Loaded plugins: aliases, fastestmirror, protectbase
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Cleaning repos: base docker-ce-stable epel extras rethinkdb updates
Cleaning up list of fastest mirrors
Other repos take up 1.5 M of disk space (use --verbose for details)
[root@1195 ~]# yum install redis
Loaded plugins: aliases, fastestmirror, protectbase
Determining fastest mirrors
base                                                                                                                                  | 3.6 kB  00:00:00     
docker-ce-stable                                                                                                                      | 3.5 kB  00:00:00     
epel                                                                                                                                  | 5.4 kB  00:00:00     
extras                                                                                                                                | 3.4 kB  00:00:00     
rethinkdb                                                                                                                             | 1.4 kB  00:00:00     
updates                                                                                                                               | 3.4 kB  00:00:00     
(1/10): base/7/x86_64/group_gz                                                                                                        | 166 kB  00:00:00     
(2/10): epel/x86_64/updateinfo                                                                                                        | 996 kB  00:00:00     
(3/10): epel/x86_64/group_gz                                                                                                          |  88 kB  00:00:00     
(4/10): extras/7/x86_64/primary_db                                                                                                    | 215 kB  00:00:00     
(5/10): base/7/x86_64/primary_db                                                                                                      | 6.0 MB  00:00:00     
(6/10): epel/x86_64/primary_db                                                                                                        | 6.8 MB  00:00:00     
(7/10): updates/7/x86_64/primary_db                                                                                                   | 7.4 MB  00:00:00     
(8/10): rethinkdb/primary                                                                                                             | 4.0 kB  00:00:01     
(9/10): docker-ce-stable/x86_64/primary_db                                                                                            |  48 kB  00:00:02     
(10/10): docker-ce-stable/x86_64/updateinfo                                                                                           |   55 B  00:00:02     
rethinkdb                                                                                                                                              17/17
0 packages excluded due to repository protections
Package redis-3.2.12-2.el7.x86_64 already installed and latest version
Nothing to do

0 人点赞