RPM error: db4 error(-30988)

Hari ini menemukan error saat menjalankan perintah rpm:

error: db4 error(-30988) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found

Googling sebentar, ketemu juga cara solve masalahnya. Saya salin-tempel di bawah (sebagai catatan juga buat saya).

On Aug 14, 2006, at 2:16 PM, James A Williams wrote:

>
> Hi,
>
>   Problem with the rpm database.  Each time I install an rpm I get
> error: db4 error(-30988) from dbcursor->c_get: DB_PAGE_NOTFOUND:
> Requested page not found
>
> How do I fix this?
>

This command will remove the cache which (for whatever reason) does
not have
a requested page:
     rm -f /var/lib/rpm/__db*

Note that what you *DO NOT WANT* to do is
     rpm --rebuilddb
because you will have data loss from recreating your rpmdb with a
damaged cache
still present. Doing --rebuilddb after removing the __db* files won't
hurt (but is likely
unnecessary).

Removing the cache "fixes" the problem every case I''ve seen or know
about.
  1. Pesan Error apt get update dynamic mmap ran out of room
  2. VLC, Totem, Mplayer Error. Tampilan Video Jadi Hitam Putih
  3. Cara troubleshooting yang keren
This entry was posted in Tips Linux and tagged , . Bookmark the permalink.
  • http://adasiwi.wordpress.com siwi

    Wah.. Aku jadi error kalo baca postingan yang susah2 begini :o

  • http://ngadimin.org cecep

    @siwi: kalau yang baca saja bisa error… kebayang kan bagaimana errornya yang nulis tulisan itu?

    :D

  • http://ria.choosen.net Ria

    kalau langsung begini :
    rpm –rebuilddb
    mungkin lebih seru lagi a’….jadi tutorialnya jadi bagaimana recover database :D hehehehehehe ;))

  • http://ngadimin.org cecep

    @Ria: baca lagi baris ini deh: “Note that what you *DO NOT WANT* to do is: rpm –rebuilddb” dst :D