Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-04-2003, 07:21 PM   #1
Ed Mack
LQ Newbie
Registered: Nov 2002
Posts: 14

Rep: Reputation: 0
Cannot uninstall RPMs - (RedHat)

Hi, I cannot uninstall RPMs anymore (I'm using RedHat if that affects the command line program). It spits out this error:

error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in /var/lib/rpm

Which I do not know how to resolve. As well as this, the GUI program wont load up (freezes at the Headers part of loading) and I can't get other RPMs to install via the gui tool (the one that is associated with .rpm).

All this trouble started after I tried to uninstall Xmms after it stopped playing MP3s (I had the mpg update from the official site). It previously worked fine. Whilst uninstalling the GUI uninstaller froze and I had to just kill it. After this, all this trouble arose. I can get a full list of installed RPMs via #rpm -qa, and xmms and it's plugins are there.

The files in the /var/lib/rpm directory are all still there.

Any ideas of how to fix this? What's the best way to go around this? (I'm a newbie and not aqainted with the workings of the rpm system).

Old 01-04-2003, 07:48 PM   #2
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 366

Rep: Reputation: 109Reputation: 109
rpm has an option to rebuild its database (rpm --rebuilddb). Type "man rpm" for more options that you can pass to it. I'm sure you'll need to "su" to root in order to run it.

Old 01-04-2003, 07:51 PM   #3
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
as root try rpm --rebuilddb
Old 01-04-2003, 08:30 PM   #4
Ed Mack
LQ Newbie
Registered: Nov 2002
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks very much, I'm trying it now, although it's taking a while on my 500mhz...
Old 01-04-2003, 08:31 PM   #5
Ed Mack
LQ Newbie
Registered: Nov 2002
Posts: 14

Original Poster
Rep: Reputation: 0
It seems to be waiting for input /me feels silly and runs to man.
Old 01-04-2003, 08:34 PM   #6
Ed Mack
LQ Newbie
Registered: Nov 2002
Posts: 14

Original Poster
Rep: Reputation: 0
Ok, maybe not. It shouldn't need any more info. The GUI tool hanged on reading the package headers, perhaps this is as well? If so, how do I sort out that?


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
Rpms will not install or uninstall jginger Linux - Newbie 2 10-13-2004 12:53 PM
mandrake 9.2 won't uninstall rpms storyteller Linux - Software 4 12-11-2003 01:48 PM
RH9 Rpms' uninstall to tgz install... (glib) bkeating Linux - Software 2 10-25-2003 12:18 AM
Redhat 9 rpms jiggywiggy Linux - Software 2 09-25-2003 07:12 PM
how to uninstall rpms gonus Linux - Newbie 3 06-14-2002 06:41 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration