Bug 42512

Summary: rpm -4.0.3-26 install warning
Product: [Retired] Red Hat Raw Hide Reporter: sean <seandarcy>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: billc
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-05-29 10:51:23 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 2001-05-27 23:13:35 UTC
Description of Problem:
When installing the rpm from rawhide, I get::

[root@localhost i386]# rpm -Fvh rpm*
Preparing...                ###########################################
[100%]
groupadd: group rpm exists
useradd: user rpm exists
   1:rpm                    ########################################### [
25%]
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
   2:rpm-build              ########################################### [
50%]
   3:rpm-devel              ########################################### [
75%]
   4:rpm-python             ###########################################
[100%]
[root@localhost i386]# rpm -q db3
db3-3.1.17-7
[root@localhost i386]# rpm -q rpm
rpm-4.0.3-0.26

As you can see, it seems to install OK. It seems an odd warning. Nothing
else was running at the time.

How Reproducible:


Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:

Comment 1 Bill Crawford 2001-05-29 10:51:19 UTC
Not just you, happpens to me too.  Repeatable by repeating the install using rpm
-Uvh --force, too.

[root@fraser RPMS]# rpm -Uvh --force rpm-4.0.3-0.26.i386.rpm 
Preparing...                ########################################### [100%]
groupadd: group rpm exists
useradd: user rpm exists
   1:rpm                    ########################################### [100%]
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)


Comment 2 Jeff Johnson 2001-05-30 12:41:50 UTC
Yup. The %post in rpm is running "rpm --initdb" even when /var/lib/rpm/Packages
exists.

FIxed in next CVS checkin, should be in rpm-4.0.3-0.29.