Bug 51463
| Summary: | Can't execute rpm queiries as root | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Sean Dilda <agrajag> |
| Component: | rpm | Assignee: | Jeff Johnson <jbj> |
| Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.3 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-08-11 02:59:36 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
Sean Dilda
2001-08-10 17:25:17 UTC
Try rm -f /var/lib/rpm/__db* Reopen this bug if that doesn't work. That *mostly* works.. When I run 'rpm -qa' as root, it gets to: [root@loiosh agrajag]# rpm -qa psgml-1.2.1-13 libgnomeprint11-0.25-9 trn-3.6-28 <snip> gnumeric-0.67-4 initscripts-6.11-1 cvs-1.11.1p1-3 kudzu-devel-0.99.11-1 Then it just hangs until I hit ^C. When I run rpm -qa as a normal user, it seems to print all the rpms and exit cleanly. Also: [root@loiosh agrajag]# rpm -q rpm rpm-4.0.3-0.84 [root@loiosh agrajag]# The next step is rpm --rebuilddb I ran rpm --rebuilddb as root, and it just sat there.. no heavy disk access or anything... at the suggestion of Jeremy Katz, I straced it, found it was just doing selects, then stopped the rpm process and did the rm -f /var/lib/rpm/__db* *again*. Now everything seems to be working fine as far as I can tell.. however I do think it is a bug that I even had to remove these files once. Fixed in rtpm-4.0.3-0.88. |