LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-24-2003, 11:42 PM   #16
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59

and one more thing pertaining to your disc 3, you should go to either the mirror sites on redhats download page (preferbly the .gov sites, cause i find them are the fastest) or go to linuxiso.org, where also they are legit copies and plus offer the md5 check...
 
Old 06-24-2003, 11:54 PM   #17
lnxconvrt
Member
 
Registered: Mar 2002
Location: Houston
Distribution: FC3, Manrake 10.x, various others at times
Posts: 113

Rep: Reputation: 18
Quote:
Originally posted by warheros
THAT is what i dont know how to do.
Ok, I've had to do that before. Let's see:

$ locate db|grep _|grep rpm

gets among others two possible locations:

/usr/lib/rpmdb/i386-redhat-linux/redhat/__db.001
/usr/lib/rpmdb/i386-redhat-linux/redhat/__db.002
/usr/lib/rpmdb/i386-redhat-linux/redhat/__db.003
/var/lib/rpm/__db.001
/var/lib/rpm/__db.002
/var/lib/rpm/__db.003

I'm thinking /var/lib but not certain.

The command to rebuild the database I recall as "rpm --rebuilddb" and a quick look "man rpm" confirms this. Well, not too quick, it's a long man page. It also indicates at the end of the man page that database files are in /var/lib/rpm and a quick Google search yields at least one reference to deleting them, so I'm pretty sure it's the three _db files in /var/lib/rpm that you need to delete. It's a known bug in rpm, as I recollect. Particularly it can happen if rpm has to be killed with a kill -9 I seem to recall.

So, I would log in as root. I'd do something like:

cd /var/lib/rpm
mv _db.001 _db.001.bak
mv _db.002 _db.002.bak
mv _db.003 _db.003.bak
ps -ef|grep rpm

If any hung rpm processes exist then do a kill pid# where pid# is the first number following the process and verify that they are gone.

rpm --rebuilddb

That last may take some time. Then verify that you have 3 new _db files and you can delete the _db...bak old corrupted _db files.

If that procedure does not fix things then I will suspect that in not having disk 3 you didn't install some critical file for rpm functionality OR you had a corrupted disk 1 or disk 2 (did you check the checksums on them when you downloaded?)

Hopefully, though the process above will fix things.

BTW I'm running RH 9 so the locations mentioned should be the same.
 
Old 06-25-2003, 12:04 AM   #18
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
um, why are you backing them files up? just do what i said warhereos, no need to backup that crap.
 
Old 06-25-2003, 12:20 AM   #19
lnxconvrt
Member
 
Registered: Mar 2002
Location: Houston
Distribution: FC3, Manrake 10.x, various others at times
Posts: 113

Rep: Reputation: 18
Yep

you're right, DrOzz, the files are crap.

I'm 99% sure that it's the ones in /var/lib/rpm that need to go not the ones in /usr/lib... But if I'm wrong getting them back is just a simple mv command.

Otherwise no point at all in backing them up.
 
Old 06-25-2003, 11:37 AM   #20
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
One thing....when he double clicks the files, they aren't installing because mine is doing the same thing. Reason being is probably because the function is disabled or REALLY buggy. You'lhttp://www.synaptic.org/index.jspl have to use the RPM command. Try this if your installing:

rpm -ivh -rpm name goes here-

or this if your upgrading

rpm -Uvh -rpm name goes here-
 
  


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
RPM's not installing! =( Kane635 Linux - Software 2 09-14-2004 10:06 PM
installing rpm's joepesci Linux - Newbie 3 07-20-2004 04:10 PM
RPM's not installing.... kperrone Linux - Software 9 07-05-2004 07:51 PM
installing rpm's apoc013 Linux - Newbie 7 01-21-2004 10:55 AM
installing rpm's help unixpirate Linux - Software 7 12-18-2002 03:20 PM


All times are GMT -5. The time now is 04:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration