Bug 16860
| Summary: | rpm utility upgrade breaks the packages database | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | franck.lemonnier |
| Component: | rpm | Assignee: | Jeff Johnson <jbj> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | sparc | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2000-08-24 13:15:20 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
franck.lemonnier
2000-08-24 13:01:06 UTC
Rpm will be confused if there are two databases on your system. Please check for /var/lib/rpm/Packages /var/lib/rpm/packages.rpm If both exist, you have 2 databases. The larger of the 2 is probably the on you want. You say that packages.rpm is 8Mb, instructions below are specific to preserving packages.rpm. 0) Save your database "just in case" cd /var/lib/ tar czvf rpmdb-save.tar.gz rpm You probably also want to save the list of packages that were installed in the db3 database by doing rpm -qa >& /tmp/packages_to_reinstall 1) Remove /var/lib/rpmPackages. rm /var/lib/rpm/Packages 2) Rebuild the database rpm --rebuilddb 3) Verify success by checking a) /var/lib/rpm/packages.rpm (and all of /var/lib/rpm/*.rpm) are gone. b) /var/lib/rpm/Packages (and other files starting with capital letters) exist. Packages should be approcimately the same size as the original packages.rpm ~8Mb. c) Check that information can be retrieved rpm -qa rpm -q --whatrequires libc.so.6 You may wish to try other checks. 4) Reinstall the packages listed in /tmp/packages_to_reinstall. If you found *.rpm files in /var/lib/rpm in 3a) above, you should remove them now. This problem appears resolved. Please reopen if not. |