Bug 122601
Summary: | rpm segfaults - database corruption? - after yum update | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jani Ollikainen <bestis+rh> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WORKSFORME | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | athlon | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-05-10 17:57:05 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: |
Description
Jani Ollikainen
2004-05-06 06:32:20 UTC
Could be the same as #122520 didn't find that at first. RPMdb.tarball available at: http://smooth.piipiip.net/~bestis/rpmdb-122601.tar.gz Don't fetch the key from a key server, fetch from freshrpms directly. Alternatively, import the key into the pgp keyring, and strip the key ring server signature before exporting and re-oimporting into rpm. http://freshrpms.net/packages/ Okey, I did what that page tells to do. Didn't help. And: (#:~) rpm -qa gpg-pubkey-* ..<many errors>.. error: rpmdbNextIterator: skipping h# 876 Header V3 DSA signature: BAD, key ID e42d547b Segmentation fault (#:~) rpm -qa gpg-pubkey-e42d547b Does the same. If i do: (#:~) rpm -e --allmatches gpg-pubkey-* Those still gives the same errors and segfault. (#:~) rpm --import RPM-GPG-KEY.txt (#:~) rpm --import /usr/share/doc/fedora-release-1/RPM-GPG* And after those: (#:~) rpm -qa gpg-pubkey-* error: rpmdbNextIterator: skipping h# 876 Header V3 DSA signature: BAD, key ID e42d547b error: rpmdbNextIterator: skipping h# 168 Header V3 DSA signature: BAD, key ID 00000000 error: rpmdbNextIterator: skipping h# 876 Header V3 DSA signature: BAD, key ID e42d547b Segmentation fault But when the keys are missing the "rpm -qa" goes further than when the keys are imported. When the keys are imported it crashes to oidentd from freshrpms. When not it goes over it but displays the same error but crashes to package which name i cannot see. So didn't help or i missed something.. Oh! Got it working.. # cd /var/lib/rpm # mv Pubkeys Pubkeys-ORIG And re-import those.. -rw-r--r-- 1 rpm rpm 12288 May 8 11:49 Pubkeys -rw-r--r-- 1 rpm rpm 12288 May 8 11:48 Pubkeys-ORIG # diff Pubkeys Pubkeys-ORIG Binary files Pubkeys and Pubkeys-ORIG differ So the problem was that Pubkeys was corrupted somehow, maybe that import from keyserver.. If that could broke things like that, maybe something to prevent people doing that. These commands appear to "fix" your rpmdb: cd /var/lib/rpm mv Pubkeys Pubkeys-ORIG rpm --rebuilddb -vv Reopen this bug if not. |