LinuxQuestions.org
Help answer threads with 0 replies.
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 08-05-2005, 08:37 AM   #1
Harry Seldon
Member
 
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Rep: Reputation: 15
Trouble installing packages using rpm on Mandrake 10.0


I'm trying to install a rpm package on a Mandrake 10.0 install. In the past I've been able to do this both at the command line and using webmin. When I try to install the package, the command locks up. It appears to be running as I can see the service in the process list but nothing ever happens. If I cntl-c out of the process, the instance is left running and I have to manually kill it. Resource utilization on the server is light, with only a few percent of the CPU utilized. After killing it a couple of times, I tried to run rpm -qa and grep the package name to see if maybe I had a busted install but that just hangs as well with nothing returned. Other commands that are resource intensive run without any problems on the box. The particulars of the install as obtained by uname -a are as follows:

Linux MIS1235.bcbsal.org 2.6.3-7mdk-p3-smp-64GB #1 SMP Wed Mar 17 15:34:39 CET 2004 i686 unknown unknown GNU/Linux

Has anyone seen anything like this before? It looks like rpm may be busted but I have no way to confirm this. My syslog shows no errors.
 
Old 08-05-2005, 11:31 AM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
"It looks like rpm may be busted but I have no way to confirm this."

One possibility is that one of your early unsuccessful installs left a rpm lock file in place. Look in your rpm data base for a lock file. If you find one then delete it. In SuSE the rpm data base is /var/lib/rpm. Look for the Mandrake rpm data base and if it is in the same place as SuSE you would find a rpm lock file with:

find /var/lib/rpm -iname "*lock*"

Another possibility is that one of your early unsuccessful installs left the rpm data base corrupted. You could try to rebuild the data base:

rpm --rebuilddb

A third possibility is that you may have partially installed the package multiple times. Try uninstalling the package over and over until you get the rpm error message that you are trying to uninstall a package that is not installed.

rpm -e packagename

See:
man rpm

------------------------
Steve Stites
 
Old 08-05-2005, 02:21 PM   #3
Harry Seldon
Member
 
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Original Poster
Rep: Reputation: 15
Steve,

Thanks for the advice. I did have a lock and once I cleared it I was able to query the database again. I have an rpm process that won't respond to kill -9 from one of the botched installs so I'm starting to think I'm going to have to reboot it to clear whatever it is that's botched up. I tried the rpm database rebuild as well and the uninstalls but it apparently never made it that far. Hopefully a reboot will get this mug moving in the right direction. Thanks again.
 
  


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
Installing RPM packages mission_control Linux - Software 3 09-27-2004 07:17 PM
Trouble installing packages on Mandrake 10 PC Wizard Linux - Newbie 5 09-02-2004 07:50 PM
Installing new packages from RPM, uninstalls existing apps finger0fg0d Linux - Software 3 07-06-2004 12:25 PM
Installing multiple RPM Packages free_andrew Linux - Software 4 12-08-2003 02:04 PM
installing rpm and tgz packages?? Ikik General 6 10-07-2003 08:00 AM


All times are GMT -5. The time now is 09:10 AM.

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