Bug 20726 - RPM-4.0.4 returns false failure error message
Summary: RPM-4.0.4 returns false failure error message
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm   
(Show other bugs)
Version: 7.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2000-11-12 18:18 UTC by R P Herrold
Modified: 2007-04-18 16:29 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-11-12 18:18:40 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description R P Herrold 2000-11-12 18:18:38 UTC
It appears that the error message logic is not checking for the existence
of  /var/lib/rpm/Packages (etc) before incorrectly suggesting a useless
rebuilddb -- -- It would seem that RPM knows its own version (4), thjat it
therefore knows that it is using db3 format, and that when the get lock
fails, it can determine omit this message ... 

[root@couch herrold]# rpm -e slrn
cannot get exclusive lock on /var/lib/rpm/Packages
cannot open Packages index using db3 - Operation not permitted (1)
--> The rpm database cannot be opened in db3 format.
    If you have just upgraded the rpm package you need to convert
    your database to db3 format by running "rpm --rebuilddb" as root.
error: cannot open /var/lib/rpm/packages.rpm
[root@couch herrold]# ls -al  /var/lib/rpm
total 11279
drwxr-xr-x    2 root     root         1024 Feb 14  1996 .
drwxr-xr-x   12 root     root         1024 Oct 27 20:19 ..
-rw-r--r--    1 root     root      2625536 Nov 12 13:02 Basenames
-rw-r--r--    1 root     root        12288 Nov 12 13:02 Conflictname
-rw-r--r--    1 root     root        12288 Nov 12 13:02 Group
-rw-r--r--    1 root     root        24576 Nov 12 13:02 Name
-rw-r--r--    1 root     root      9076736 Nov 12 13:02 Packages
-rw-r--r--    1 root     root        86016 Nov 12 13:02 Providename
-rw-r--r--    1 root     root       114688 Nov 12 13:02 Requirename
-rw-r--r--    1 root     root        12288 Oct 27 20:24 Triggername
[root@couch herrold]# rpm -q rpm
[root@couch herrold]#

Comment 1 Jeff Johnson 2000-11-15 15:53:02 UTC
FWIW, there's nothing "false" about any of the text in the error message.

While the message is overly chatty and verbose, there is a need to suggest
that new users convert from db1 -> db3 that is far more important than
to identify all possible error returns in order to provide terser error

Note You need to log in before you can comment on or make changes to this bug.