On Thu, 30 Oct 2003, Joe Nestlerode wrote: > Hello, > > I accidentaly deleted /var/lib/rpm. (Don't ask.) I am trying to > rebuild the rpm database so, hopefully, rpm will function normally once > again. But I get this error: > > root / >> rpm --rebuilddb > error: db4 error(16) from dbenv->remove: Device or resource busy > > I'm at a loss. Any advice would be greatly appreciated. Thanks! I've been there. stock red hat 9 + a 2.6 kernel will eat your rpm database... But I digress. Your best bet is to snag a tarball of the rpm database from a similarly configured machine with a similar package list and just keep doing rpm --justdb package removes until you get a decent rpm -Va. Once that's all done, remove the lock files from /var/lib/rpm/__* and do your rpm --rebuilddb and you should be set. Regards, Matthew Galgoci -- Matthew Galgoci "If you were a woman I'd kiss you right now." System Administrator Red Hat, Inc 919.754.3700 x44155 -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list