[sysadmin@VM-6-17-centos ~]$ sudo yum clean && sudo yum makecache && sudo yum install polkit -y
[sudo] password for sysadmin:
error: rpmdb: BDB0113 Thread/process 16957/140498225395776 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
解决办法:
[sysadmin@VM-6-17-centos rpm]$ sudo rm -rf __db*
[sysadmin@VM-6-17-centos rpm]$ sudo yum clean && sudo yum makecache && sudo yum install polkit -y
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Error: clean requires an option: headers, packages, metadata, dbcache, plugins, expire-cache, rpmdb, all
[sysadmin@VM-6-17-centos rpm]$ sudo yum clean all
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Cleaning repos: bareos_bareos-17.2 docker-ce-stable epel extras os updates zabbix zabbix-non-supported
Cleaning up list of fastest mirrors
[sysadmin@VM-6-17-centos rpm]$ sudo yum makecache fast
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
bareos_bareos-17.2 | 1.1 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
os | 3.6 kB 00:00:00
updates | 2.9 kB 00:00:00
zabbix | 2.9 kB 00:00:00
zabbix-non-supported | 2.9 kB 00:00:00
(1/12): docker-ce-stable/x86_64/updateinfo | 55 B 00:00:00
(2/12): epel/7/x86_64/group_gz | 96 kB 00:00:00
(3/12): docker-ce-stable/x86_64/primary_db | 70 kB 00:00:00
(4/12): epel/7/x86_64/updateinfo | 1.0 MB 00:00:00
(5/12): bareos_bareos-17.2/primary | 10 kB 00:00:00
(6/12): extras/7/x86_64/primary_db | 243 kB 00:00:00
(7/12): os/7/x86_64/group_gz | 153 kB 00:00:00
(8/12): zabbix-non-supported/x86_64/primary_db | 3.7 kB 00:00:00
(9/12): os/7/x86_64/primary_db | 6.1 MB 00:00:00
(10/12): epel/7/x86_64/primary_db | 7.0 MB 00:00:00
(11/12): updates/7/x86_64/primary_db | 13 MB 00:00:00
(12/12): zabbix/x86_64/primary_db | 118 kB 00:00:01
bareos_bareos-17.2 45/45
Metadata Cache Created
[sysadmin@VM-6-17-centos rpm]$ sudo yum install polkit -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package polkit.x86_64 0:0.112-22.el7_7.1 will be updated
---> Package polkit.x86_64 0:0.112-26.el7_9.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================================================================
Updating:
polkit x86_64 0.112-26.el7_9.1 updates 170 k
Transaction Summary
========================================================================================================================================================================================================================
Upgrade 1 Package
Total download size: 170 k
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
polkit-0.112-26.el7_9.1.x86_64.rpm | 170 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : polkit-0.112-26.el7_9.1.x86_64 1/2
Cleanup : polkit-0.112-22.el7_7.1.x86_64 2/2
Verifying : polkit-0.112-26.el7_9.1.x86_64 1/2
Verifying : polkit-0.112-22.el7_7.1.x86_64 2/2
Updated:
polkit.x86_64 0:0.112-26.el7_9.1
网友评论