LinuxQuestions.org
Visit Jeremy's Blog.
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 01-18-2003, 09:26 AM   #1
jpsrm
LQ Newbie
 
Registered: Jan 2003
Location: Portugal
Distribution: Red Hat Linux 9.0
Posts: 13

Rep: Reputation: 0
Exclamation [HELP] RPM Dababase Repair!


I was executing some RPM command that was using RPM Database, and the process get stuck so I decided to kill it!

Since then my RPM system has been damage!

I can't install, verify, upgrade anything with RPM... RPM simply doesn't work...

Some ERRORS:
--------------------------------------------------------------------------------
#rpm -qa
(only about 10 pakages are outputed...)

#rpm -ivh file.rpm
warning: file.rpm: V3 DSA signature: NOKEY, key ID db42a60e
1:file ########################################### [100%]
--------------------------------------------------------------------------------

I read all the faqs and help from http://www.rpm.org/ but nothing worked...
I also tryied to install RPM from TAR (since RPM can't install anything...) but It didn't work...

I followed all instructions on RPMs HELP site ( http://www.rpm.org/hintskinks/repairdb/ ) about recovering RPM Database but it didn't work too.

What I did:
--------------------------------------------------------------------------------
# rm -f /var/lib/rpm/__db*

# cd /var/lib
# tar czvf /tmp/rpmdb.tar.gz rpm

# cd /var/lib/rpm
# db_verify Packages

# mv Packages Packages-ORIG
# db_dump Packages-ORIG | db_load Packages

# rpm -qa

# rpm --rebuilddb
--------------------------------------------------------------------------------


HELP from http://www.rpm.org/:
--------------------------------------------------------------------------------
Q. I can't upgrade any packages, run up2date or rpm. What is wrong?

A. The RPM database sometimes gets stuck. One cause of this problem is when a process working on the RPM database is killed, which leaves lock files in place, limiting what further processes can do to the database. So, a word to the wise: make sure such a process really is stuck before killing it - if a process is using much CPU time (eg. as reported by top) it is probably still doing useful work.
--------------------------------------------------------------------------------


Thanks in advance!!!
 
Old 01-18-2003, 10:43 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Explanation: http://www.redhat.com/docs/manuals/l...rpm-using.html , then rpm --import <key file>, where <key file> are those of Red Hat and any other source you install RPM's from.
 
Old 01-18-2003, 11:09 AM   #3
jpsrm
LQ Newbie
 
Registered: Jan 2003
Location: Portugal
Distribution: Red Hat Linux 9.0
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the tip! I'll read all carefully and I'll try to fix it
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
filesystem repair Ammad Linux - General 1 09-13-2005 12:57 AM
Repair KDE aje Slackware 3 07-17-2005 12:55 PM
repair 10.1 ??? d1l2w3 Mandriva 1 04-10-2005 11:27 AM
Why Cant I Repair My Rh9.0? ledone Linux - Newbie 1 08-02-2004 11:42 PM
how to repair rpm database zaldyd Linux - Newbie 3 07-11-2003 12:17 AM

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

All times are GMT -5. The time now is 08:48 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