LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-18-2003, 11:20 AM   #1
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
Unhappy RPM Problems


Well, first the apt-get function wouldn't read my package list, then RPM wouldn't read my database, then I attempted to rebuild the RPM database and it gave this error after about 3 minutes:

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

So whats happening and what can I do to fix this?
 
Old 06-18-2003, 11:24 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the database may well have become locked, a stale file may be sitting there. try adding a couple of extra -v's to the commend line for a stupid amount of information.
 
Old 06-18-2003, 12:22 PM   #3
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Well, there was about 10,000 lines of output, but I gave the last 20 or so that looked important:

D: read h# 818 Header V3 DSA signature: OK, key ID db42a60e
D: +++ h# 820 Header V3 DSA signature: OK, key ID db42a60e
D: adding "switchdesk-gnome" to Name index.
D: adding "switchdesk-gnome" to Basenames index.
D: adding "User Interface/Desktops" to Group index.
D: adding 13 entries to Requirename index.
D: adding "switchdesk-gnome" to Providename index.
D: adding "/usr/bin/" to Dirnames index.
D: adding 13 entries to Requireversion index.
D: adding "3.9.8-15" to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Sigmd5 index.
D: adding "d0d20802fbb7306159ca28db14c44a0dad149086" to Sha1header index.
D: adding 1 entries to Filemd5s index.
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
error: db4 error(16) from dbenv->remove: Device or resource busy
D: removed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.3231/Pubkeys
D: closed db index /var/lib/rpmrebuilddb.3231/Filemd5s
D: closed db index /var/lib/rpmrebuilddb.3231/Sha1header
D: closed db index /var/lib/rpmrebuilddb.3231/Sigmd5
D: closed db index /var/lib/rpmrebuilddb.3231/Installtid
D: closed db index /var/lib/rpmrebuilddb.3231/Provideversion
D: closed db index /var/lib/rpmrebuilddb.3231/Requireversion
D: closed db index /var/lib/rpmrebuilddb.3231/Dirnames
D: closed db index /var/lib/rpmrebuilddb.3231/Triggername
D: closed db index /var/lib/rpmrebuilddb.3231/Conflictname
D: closed db index /var/lib/rpmrebuilddb.3231/Providename
D: closed db index /var/lib/rpmrebuilddb.3231/Requirename
D: closed db index /var/lib/rpmrebuilddb.3231/Group
D: closed db index /var/lib/rpmrebuilddb.3231/Basenames
D: closed db index /var/lib/rpmrebuilddb.3231/Name
D: closed db index /var/lib/rpmrebuilddb.3231/Packages
D: closed db environment /var/lib/rpmrebuilddb.3231/Packages
D: removed db environment /var/lib/rpmrebuilddb.3231/Packages
D: removing directory /var/lib/rpmrebuilddb.3231
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
 
Old 06-18-2003, 12:43 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Try this:

rm -f /var/lib/rpm/__db*
rpm --rebuilddb
 
Old 06-18-2003, 01:02 PM   #5
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Well, I have slightly different output now:

D: adding 14 entries to Filemd5s index.
D: read h# 818 Header V3 DSA signature: OK, key ID db42a60e
D: +++ h# 820 Header V3 DSA signature: OK, key ID db42a60e
D: adding "libgcj" to Name index.
D: adding 20 entries to Basenames index.
D: adding "System Environment/Libraries" to Group index.
D: adding 26 entries to Requirename index.
D: adding 2 entries to Providename index.
D: adding "kaffe" to Conflictname index.
D: adding 7 entries to Dirnames index.
D: adding 26 entries to Requireversion index.
D: adding 2 entries to Provideversion index.
D: adding 1 entries to Installtid index.
D: adding 1 entries to Sigmd5 index.
D: adding "e844ca9218e078e4fa3f8dee6e1781d5c75cb211" to Sha1header index.
D: adding 20 entries to Filemd5s index.
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
error: db4 error(16) from dbenv->remove: Device or resource busy
D: removed db environment /var/lib/rpm/Packages
D: closed db index /var/lib/rpmrebuilddb.4000/Pubkeys
D: closed db index /var/lib/rpmrebuilddb.4000/Filemd5s
D: closed db index /var/lib/rpmrebuilddb.4000/Sha1header
D: closed db index /var/lib/rpmrebuilddb.4000/Sigmd5
D: closed db index /var/lib/rpmrebuilddb.4000/Installtid
D: closed db index /var/lib/rpmrebuilddb.4000/Provideversion
D: closed db index /var/lib/rpmrebuilddb.4000/Requireversion
D: closed db index /var/lib/rpmrebuilddb.4000/Dirnames
D: closed db index /var/lib/rpmrebuilddb.4000/Triggername
D: closed db index /var/lib/rpmrebuilddb.4000/Conflictname
D: closed db index /var/lib/rpmrebuilddb.4000/Providename
D: closed db index /var/lib/rpmrebuilddb.4000/Requirename
D: closed db index /var/lib/rpmrebuilddb.4000/Group
D: closed db index /var/lib/rpmrebuilddb.4000/Basenames
D: closed db index /var/lib/rpmrebuilddb.4000/Name
D: closed db index /var/lib/rpmrebuilddb.4000/Packages
D: closed db environment /var/lib/rpmrebuilddb.4000/Packages
D: removed db environment /var/lib/rpmrebuilddb.4000/Packages
D: removing directory /var/lib/rpmrebuilddb.4000
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages


Well I have to go to work now, I'll check back around midnight or so. Thanks in advance!!

Last edited by Bigun; 06-18-2003 at 01:03 PM.
 
Old 06-18-2003, 01:07 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It could be a zombied proccess - see if there are any rpm commands still running (if so then kill them):
ps -ef | grep rpm
 
Old 06-18-2003, 11:11 PM   #7
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
I've rebooted several times, I doubt that it is a stale process, but I'll check first thing in the morning.
 
Old 06-19-2003, 10:05 AM   #8
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Nope, no stale progs.
 
Old 06-23-2003, 08:23 AM   #9
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
I did some research on the net and I'm not finding anything. Does anyone have any clue whats happening?
 
Old 06-23-2003, 09:23 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,632

Rep: Reputation: Disabled
Not that I'm experienced in any way, but can you find out which "Device or resource" is busy now? I mean, that's an awful difference, there, device or resource. Maybe then you see where it is locked.
 
Old 06-23-2003, 12:34 PM   #11
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
I wish I knew......
 
Old 06-24-2003, 10:27 AM   #12
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Finally! Thanks to a recent post with the same problem it was fixed with one command line:

root]# LD_ASSUME_KERNEL=2.4.19 rpm --rebuilddb

This came from: http://www.redhat.com/advice/ask_shadowman.html

And the URL came from: http://www.linuxquestions.org/questi...threadid=67572

I just wish cnjohnson would have read my post ealier. Thanks, you rock!

Last edited by Bigun; 06-24-2003 at 10:30 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPM problems King of Japan Red Hat 4 01-26-2005 11:04 PM
RPM problems bloodfrost Linux - Newbie 6 05-06-2004 04:47 PM
rpm problems skatcat31 Linux - Software 5 02-23-2004 02:03 AM
RPM Problems demonx Mandriva 2 09-28-2003 09:12 AM
problems with rpm Jo_Nak Linux - General 5 06-13-2003 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration