首页 > 系统相关 >centOS的yum报错

centOS的yum报错

时间:2023-02-09 21:13:19浏览次数:45  
标签:__ centOS package root List yum 报错 rpm

云服务器linux

 

yum list 执行报错

 

error: rpmdb: BDB0113 Thread/process 29801/140083043158080 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:

 

解决方法

 

[root@xx~]# cd /var/lib/rpm
[root@xx rpm]# ls
Basenames __db.001 __db.003 Group Name Packages Requirename Sigmd5
Conflictname __db.002 Dirnames Installtid Obsoletename Providename Sha1header Triggername
[root@xx rpm]# rm -rf __db*
[root@xx rpm]# rpm --rebuilddb

 

[root@VM-0-5-centos rpm]# yum
Loaded plugins: fastestmirror, langpacks
You need to give some command
Usage: yum [options] COMMAND

List of Commands:

check Check for problems in the rpmdb
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
distribution-synchronization Synchronize installed packages to the latest available versions
downgrade downgrade a package
erase Remove a package or packages from your system
fs Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts.
fssnapshot Creates filesystem snapshots, or lists/deletes current snapshots.
groups Display, or use, the groups information
help Display a helpful usage message
history Display, or use, the transaction history
info Display details about a package or group of packages
install Install a package or packages on your system
langavailable Check available languages
langinfo List languages information
langinstall Install appropriate language packs for a language
langlist List installed languages
langremove Remove installed language packs for a language
list List a package or groups of packages

标签:__,centOS,package,root,List,yum,报错,rpm
From: https://www.cnblogs.com/cpas-3-org/p/17107054.html

相关文章