Bug 111541

Summary: RPM database cannot be rebuilt
Product: [Retired] Red Hat Linux Reporter: Nathan Taylor <lakario>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WORKSFORME QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-12-05 13:48:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Nathan Taylor 2003-12-05 00:30:39 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET 
CLR 1.1.4322)

Description of problem:
Well trying to install a few RPMs I got hooked up so I needed to 
clean out my RPM database and had a problem doing so.  I did the 
follow:

# rm-f /var/lib/rpm/__db*
# db_verify /var/lib/rpm/Packages

db_verify: Old or incorrect DB version; extraneous errors may result
db_verify: DB->verify: /var/lib/rpm/Packages: DB_VERIFY_BAD: Database 
verification failed

# rpm --rebuilddb

error: db4 error(16) from dbenv->remove: Device or resource busy

I sought advice from a several individuals to no avail and was told 
to try reporting it.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. # rm-f /var/lib/rpm/__db*
2. # db_verify /var/lib/rpm/Packages
3. # rpm --rebuilddb
    

Actual Results:  1. Nothing
2. db_verify: Old or incorrect DB version; extraneous errors may 
result
db_verify: DB->verify: /var/lib/rpm/Packages: DB_VERIFY_BAD: Database 
verification failed
3. error: db4 error(16) from dbenv->remove: Device or resource busy

Additional info:

Comment 1 Jeff Johnson 2003-12-05 13:48:30 UTC
You are attempting to use db_verify-4.0.14 to verify
a db-4.1.25 database.

Use /usr/lib/rpm/rpmdb_verify instead, same arguments (in fact,
same program), but from db-4.1.25 used by rpm.

Comment 2 Jeff Johnson 2003-12-05 14:10:29 UTC
*** Bug 111230 has been marked as a duplicate of this bug. ***