rebuild Packages DB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have problem with  /var/lib/rpm/Packages file in RHEL4.
File is like broken already.

[root@sv ~]# up2date --list
rpmdb: illegal flag specified to DB->open
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
An error has occurred:
exceptions.TypeError
See /var/log/up2date for more information
[root@sv ~]#

[root@sv rpm]# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.20117
D: creating directory /var/lib/rpmrebuilddb.20117
D: opening old database with dbapi 3
D: opening  db environment /var/lib/rpm/Packages create:cdb:mpool
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
rpmdb: illegal flag specified to DB->open
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
エラー: cannot open Packages index

I traid to fix like this, but the Packages file size is too smaller.
And then I check use rpm -qa, its nothing.

cd /var/lib/rpm
mkdir bak
mv __db* bak
mv Packages Packages.org
/usr/lib/rpm/rpmdb_dump Packages.org | /usr/lib/rpm/rpmdb_load Packages.2
/usr/lib/rpm/rpmdb_verify Packages
rpm --rebuilddb -vv

I deleted alaso __db.* file, but no change.

Does anyone have same problem and solved it ?

Please help me.

Thanks


==================================
mye <mye@xxxxxxx>
http://www.infolinux.jp
http://faq.infolinux.jp


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux