YUM报错:error: cannot open Packages index using db5 – (-30973)1 min read

  • A+
所属分类:Linux运维

解决问题记录:
 
 
YUM报错:
YUM报错:error: cannot open Packages index using db5 - (-30973)
 
原因:rpm数据库损坏
 
解决方法:重新构建rpm数据库

  1. cd /var/lib/rpm
  2. rm -rf __db.*
  3. rpm --rebuilddb
zhaoyulin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: