LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-02-2003, 11:44 AM   #1
doncrawley
LQ Newbie
 
Registered: Sep 2003
Location: Seattle, Washington
Distribution: Fedora, CentOS, Slackware, Ubuntu, Debian
Posts: 11

Rep: Reputation: 0
System hangs when using "rpm" command


My RedHat 9 system hangs when using most "rpm" commands. I first noticed it when attempting to install VNC, but it seems to hang when using any rpm command. I've tried using the command "rpm --rebuilddb", but it hangs then, too.
 
Old 09-02-2003, 11:50 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
type:
rm -rf /var/lib/rpm/__db*
rpm -vv --rebuilddb

that should help ya...
 
Old 09-02-2003, 11:56 AM   #3
doncrawley
LQ Newbie
 
Registered: Sep 2003
Location: Seattle, Washington
Distribution: Fedora, CentOS, Slackware, Ubuntu, Debian
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the tip. When I tried it, it hung after this message:
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
 
Old 09-02-2003, 12:01 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
Quote:
Originally posted by kilgen54
rdonly mode=0x0 [/B]
i noticed this part, so is it safe to say you tried this as a normal user?? if so you have to be root..
 
Old 09-02-2003, 12:09 PM   #5
doncrawley
LQ Newbie
 
Registered: Sep 2003
Location: Seattle, Washington
Distribution: Fedora, CentOS, Slackware, Ubuntu, Debian
Posts: 11

Original Poster
Rep: Reputation: 0
No, I ran it as root. I did, however, figure out what the problem was. When I attempted to delete the db files from /var/lib/RPM/Packages, I didn't use a double underscore in the file name. Once I corrected that, your solution worked. Thanks for your help.
 
Old 09-03-2003, 01:34 AM   #6
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
This problem should have been fixed in RHL9 (make sure your up2date on your rpm version), however, another common pitfall I see is that people download rpm files with Internet Exploder (spelling is correct) and the browser with insert a "[1]" (or similar) into the filename.

Here is an example:
file name: kernel-smp-2.4.20-20.9.i586.rpm
IE downloaded name: kernel-smp-2.4.20-20.9.[1]i586.rpm


Solution:
rename the file with mv:
mv kernel-smp-2.4.20-20.9.[1]i586.rpm kernel-smp-2.4.20-20.9.i586.rpm

Then install the rpm.... rpm -ivh kernel-smp-2.4.20-20.9.i586.rpm.

Just wanted to bring this common pitfall out, it's hard to notice sometimes.
 
  


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
How to install "make" command from rpm on cd 2 - red hat linux 7.0 ZARGON Linux - Newbie 2 08-31-2004 10:53 AM
running "modprobe ndiswrapper" hangs the system cricketer Linux - Wireless Networking 5 08-30-2004 07:10 AM
rpm of installing kernel "hangs" markraem Linux - Software 0 07-06-2004 11:21 AM
Fedora first update hangs on "Fetching rpm header: glibc-2.3.2-101.4" Darthomir Fedora 24 04-10-2004 11:53 AM
Fedora first update (with RH NetW) hangs on "Fetching rpm header: glibc-2.3.2-101.4" Darthomir Red Hat 5 03-15-2004 05:04 PM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration