Bug 108032
| Summary: | rpm --rebuilddb fails | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | P.Haijen <redhat> | ||||
| Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Mike McLean <mikem> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 9 | CC: | leonard-rh-bugzilla, mattdm, wtogami | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i686 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2005-09-26 21:38:34 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 95731 [details]
compressed text file of strace of rpm -qa
Try renaminmg (or removing) /var/lib/rpm/Pubkeys? Does that fix the segfaults? Removing Pubkeys fixed the segfaults, but errors still remained when attempting to install/upgrade rpm's. I did an rpm --rebuilddb, which seems to have finished ok, however, database problems remain: [root@mail root]# rpm -Uvh diffstat_1.34-0%5f4.rh9.at_i386.rpm --force error: rpmdbNextIterator: skipping h# 481 Header V3 DSA signature: BAD, key ID 66534c2b warning: diffstat_1.34-0%5f4.rh9.at_i386.rpm: V3 DSA signature: NOKEY, key ID 532f7270 error: rpmdbNextIterator: skipping h# 481 Header V3 DSA signature: BAD, key ID 66534c2b error: rpmdbNextIterator: skipping h# 481 Header V3 DSA signature: BAD, key ID 66534c2b Preparing... error: rpmdbNextIterator: skipping h# 481 Header V3 DSA signature: BAD, key ID 66534c2b ########################################### [100%] error: rpmdbNextIterator: skipping h# 481 Header V3 DSA signature: BAD, key ID 66534c2b 1:diffstat ########################################### [100%] error: rpmdbNextIterator: skipping h# 481 Header V3 DSA signature: BAD, key ID 66534c2b OK. BTW, rpm-4.2.2-0.6 has a fix for a dangling ptr that
might be related to some of your problem.
Is it the pubkey or the headers that is bad?
The command
rpm -qa -vv 2>&1 | grep 66534c2b
will show all pkgs verified with the key.
The command
rpm -e gpg-pubkey-66534c2b
will erase the key.
If the key came from a pgp server, then you may need to
remove some signatures added by the key server using
gpg and re-exporting the result for re-importing into
rpm's key ring.
Bug 108064 and bug 108123 appear to be duplicates of this bug. |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 Description of problem: Running RH9, with rpm 4.2. rpm --rebuilddb segfaults, as does rpm -qa. First noticed that there was a problem with the db when updates failed to install. At that time, I noticed that the / filesystem had completely filled up due to a problem with an unrelated process - this may or may not be related, as I have a seperate /var partition. I did find stale locks (__db*) which I removed. Subsequent attempts to use or recover the database fail. I get lots of errors like this with any rpm-related action: error: rpmdbNextIterator: skipping h# 769 Header V3 DSA signature: BAD, key ID 66534c2b Version-Release number of selected component (if applicable): rpm 4.2 How reproducible: Always Steps to Reproduce: 1. rpmdb_verify Packages FAIL 2. rpmdb_dump Packages-ORIG | rpmdb_load Packages OK 3. rpmdb_verify Packages OK 4. rpm -qa FAIL 5. rpm --rebuilddb FAIL Actual Results: rpm -qa, rpm --rebuilddb segfault Expected Results: no segfaults Additional info: I have made available for download, my entire /var/lib/rpm directory, before making any attempts at recovery: http://www.jerrycom.be/~peter/rpm.tgz (~12mb)