Translated message

A translation of this page exists in English.

Red Hat Enterprise Linux システムで RPM データベースを再構築する方法

Solution Verified - Updated -

Issue

  • rpm または yum コマンドが失敗します。

  • よくあるエラー:

    • cannot open Packages database in /var/lib/rpm
    • unexpected file type or format
    • damaged header instance
    • rpmdb:Lock table is out of available locker entries
    • rpm -qa で何も表示されないか、ハングします。
  • いくつかのパッケージに対して rpm -q を実行しようとしましたが、次のようなエラーが発生しました。

    rpmdb: /var/lib/rpm/Packages: unexpected file type or format  
    error: cannot open Packages index using db3 - Invalid argument (22)
    
  • rpm のクエリーまたはインストールを実行すると、次のエラーが発生して失敗します。

    error: rpmdbNextIterator: skipping h#    1601 Header V4 RSA/SHA1 signature: BAD, key ID 2874ffbe
    

Environment

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