LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2003, 07:19 PM   #1
thejackal13
Member
 
Registered: Oct 2003
Distribution: Fedora Core 2
Posts: 39

Rep: Reputation: 15
Unhappy up2date not respond / trying to rebuild rpm database


I am trying to run Red Hat's up2date, but it just keeps hanging up and freezing. It also hangs up or freezes when i just click the alert icon. I know how to use it some what because I have red hat on my lap top too but i am kinda new to the harder stuff. It kept haning up so first I went to red hat and just FTP all the new updates to my up2date spool. That got me a little farther in the update process but now it still hangs at the retrieving file stage. So then i read up on it and red hat recommened rebuilding the data base. So I followed there directions:

---------------------------------------
To fix this problem, run the following commands as root:

* kill all RPM processes (rhn_check, up2date, rpm, rhn-applet):
$ ps -axwww | grep rhn_check
In the list of processes, the first number on each line is the PID. For all PIDs listed except for the one associated with grep:
$ kill -9 <PID>
Repeat the above steps for each of the programs listed.

* remove any RPM lock files (/var/lib/rpm/__db*):
$ rm -rf /var/lib/rpm/__db*

* rebuild the rpm database:
$ rpm --rebuilddb
--------------------------------------------

but i get this:
[root@jackalhost root]# rpm --rebuilddb
error: db4 error(16) from dbenv->remove: Device or resource busy

when i do the proccesses command this is all it shows up:
4314 pts/0 S 0:00 grep rhn_check

but i can't kill that one. So I just follow along with the directions and i get that error (device busy)!

Please Help!!
 
Old 11-02-2003, 06:56 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You need to kill all processes - look at:
ps -ef up2date
ps -ef rpm
ps -ef rhn_check
ps -ef rhn-applet

Kill all reported processes - not including greps then remove the db files then rebuild.
 
Old 11-02-2003, 01:50 PM   #3
thejackal13
Member
 
Registered: Oct 2003
Distribution: Fedora Core 2
Posts: 39

Original Poster
Rep: Reputation: 15
I checked all the processes and they don't give any thing but the grep proccess. I just need to know how to get by that error.
 
Old 11-02-2003, 02:51 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
it usually means that there is another process running that is accessig the db. Try restarting the system, perfrom the "rm" then the rebuild.
 
Old 11-04-2003, 09:20 AM   #5
thejackal13
Member
 
Registered: Oct 2003
Distribution: Fedora Core 2
Posts: 39

Original Poster
Rep: Reputation: 15
Nothing worked even other pages and forums. I just reinstalled Red Hat.
 
Old 11-04-2003, 08:14 PM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
hmmm.... if you reinstalled (using rh9, right?) then you need to upgrade your up2date packages before you can use them. this thread here has a detailed instructions on what to do. although i'm still waiting to hear back from the last guy there.

http://www.linuxquestions.org/questi...ghlight=update
 
Old 11-05-2003, 12:38 AM   #7
thejackal13
Member
 
Registered: Oct 2003
Distribution: Fedora Core 2
Posts: 39

Original Poster
Rep: Reputation: 15
thanks i will check this out!!!!
 
Old 11-07-2003, 10:47 AM   #8
thejackal13
Member
 
Registered: Oct 2003
Distribution: Fedora Core 2
Posts: 39

Original Poster
Rep: Reputation: 15
nothing worked but...

Thanks for you help everyone but that didn't even work. To get it to work i went to red hat, and downloaded all the updates through an ftp, then installed them manually. Then after that i updated the kernal manually. Now RHN seems to be working.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rebuild rpm database robertngo Red Hat 2 06-25-2005 02:31 PM
Can't rebuild RPM database tawalker Linux - Software 3 04-22-2004 04:17 AM
RPM database problems - can't rebuild Ross Clement Red Hat 4 10-21-2003 12:35 PM
RPM Database Rebuild monte Linux - Distributions 3 09-25-2003 04:22 PM
RPM Database Rebuild monte Linux - Newbie 1 05-20-2003 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 AM.

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