Translated message

A translation of this page exists in English.

如何在 Red Hat Enterprise Linux 系统上重建 RPM 数据库?

Solution Verified - Updated -

Issue

  • RPM 无法正常工作,无法应用更新。
  • 如何重建 RPM 数据库?
  • 执行 rpm 命令时为何出现 segfault?
  • yum update 失败,带有 rpmdb 错误。
  • Damaged header instance 错误
  • rpm 命令终止,带有 "cannot open Packages database in /var/lib/rpm" 信息
  • 为什么 rpm 或 yum 终止,带有 rpmdb: Lock table is out of available locker entries?
  • 尝试针对几个软件包执行 rpm -q,出现类似如下的错误:
rpmdb: /var/lib/rpm/Packages: unexpected file type or format  
error: cannot open Packages index using db3 - Invalid argument (22)
  • 在执行 rpm query 或 install 时失败,带有以下错误信息:-
error: rpmdbNextIterator: skipping h#    1601 Header V4 RSA/SHA1 signature: BAD, key ID 2874ffbe
  • 为什么 "rpm -qa" 命令没有显示已安装的软件包?
  • rpm 命令挂起
  • rpm 数据库被破坏

Environment

  • Red Hat Enterprise Linux 5,6,7,8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content