Bug 199065
Summary: | RPM database corrupted | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Kovats <johnny.d> |
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> |
Status: | CLOSED WORKSFORME | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5 | CC: | vanmeeuwen+fedora |
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: | 2006-07-24 02:01:25 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
Jan Kovats
2006-07-16 20:57:03 UTC
I've tried to assist this user with solving the issue, and I may have some additional information. After we found the rpm utility unable to find any packages (rpm -qv kernel, or rpm -qv bash), we tested the /var/lib/rpm/Packages file for consistency with /usr/lib/rpm/rpmdb_verify. As it appeared to be consistent, we removed every single file from /var/lib/rpm except Packages, and let the RPM database be initialized (rpm --initdb), and rebuild (rpm -vv --rebuilddb). As these commands do complete without any complaint, but do not recreate the files in /var/lib/rpm nor /var/lib/rpmrebuild.*, we except something goes wrong. When setting the German language (de_DE.UTF-8), the rpm -vv --rebuilddb shows the following: D: Baue Datenbank /var/lib/rpm in /var/lib/rpmrebuilddb.5656 neu D: Erstelle Verzeichnis /var/lib/rpmrebuilddb.5656 D: Ãâffne alte Datenbank mit dbapi 3 D: Offene DB-Umgebung /var/lib/rpm/Packages joinenv D: Ãâffne DB-Index /var/lib/rpm/Packages rdonly Mode=0x0 D: Gesperrter DB-Index /var/lib/rpm/Packages D: Ãâffne neue Datenbank mit dbapi 3 D: Offene DB-Umgebung /var/lib/rpmrebuilddb.5656/Packages create:mpool D: Ãâffne DB-Index /var/lib/rpmrebuilddb.5656/Packages create Mode=0x42 D: Closed DB-Index /var/lib/rpm/Packages Speicherzugriffsfehler The last message means "Memory access error" in english. Please run memtest86+ on your machine and see how that works. Also try copying the /var/lib/rpm/Packages to another machine (eg to /tmp/otherdb) and do rpm --dbpath /tmp/otherdb/ -q bash. (In reply to comment #2) > Please run memtest86+ on your machine and see how that works. Also try copying > the /var/lib/rpm/Packages to another machine (eg to /tmp/otherdb) and do rpm > --dbpath /tmp/otherdb/ -q bash. Ok, the memtest86+ found no errors whatsoever. And when i try Packages like you sugested on another computer it gives me the same.. Bash not installed. Although when i just run rpm -q bash on this computer he finds it.. both fedora core 5. Ok since this seemed to go no where, and i couldn't install anything or update .. well anything conserning rpm i tried updating with a re-spin from the fedora unity project. this rewrote my rpm database so it seems.. lost all package information but it works again. And it slowely rewrites itself if i just install the same stuff as before.. so over time i will have my full package db again. thanks to kanarip for his help and paul for trieng. This problem appears resolved. |