LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-26-2009, 04:06 PM   #1
.:neogeo:.
LQ Newbie
 
Registered: May 2006
Posts: 18

Rep: Reputation: 0
force RPM to remove package


Hi all,

Ok, in short I just need to find out how to remove a dbvis package as it causing yum to break. I have googled and searched the forums. I found this http://forums.fedoraforum.org/showthread.php?t=201910. I modified the python script that yum uses to find the offending package.

This is the symptoms when i run yum...

Code:
[root@localhost ~]# yum -d 10 list
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 104, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 343, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 240, in doCommand
    ypl = base.returnPkgLists(extcmds)
  File "/usr/share/yum-cli/cli.py", line 680, in returnPkgLists
    ignore_case=True)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 1439, in doPackageLists
    ignore_case=ic):
  File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 297, in returnPackages
    self._makePackageObject(hdr, idx)
  File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 430, in _makePackageObject
    po = RPMInstalledPackage(hdr, index, self)
  File "/usr/lib/python2.5/site-packages/yum/rpmsack.py", line 37, in __init__
    YumInstalledPackage.__init__(self, rpmhdr)
  File "/usr/lib/python2.5/site-packages/yum/packages.py", line 1205, in __init__
    YumHeaderPackage.__init__(self, fakerepo, hdr)
  File "/usr/lib/python2.5/site-packages/yum/packages.py", line 981, in __init__
    self.summary = misc.share_data(self.hdr['summary'].replace('\n', ''))
AttributeError: 'list' object has no attribute 'replace' 
Here is the output to confirm that dbvis if the offending binary...

Code:
[root@localhost DbVisualizer-6.5]# yum -d 10 list
"blacklist" plugin is disabled
Loading "refresh-packagekit" plugin
"whiteout" plugin is disabled
Loaded plugins: refresh-packagekit
Config time: 0.737
Yum Version: 3.2.20
COMMAND: yum -d 10 list 
Installroot: /
Setting up Package Sacks
pkgsack time: 0.094
Reading Local RPMDB
rpmdb time: 0.000
Here is the error with replace
name =  dbvis
So, this confims this bug //https://bugzilla.redhat.com/show_bug.cgi?id=473239

I have tried rebuilding the RPM database and also deleting the /var/lib/rpm/__db* files then rebuilding the rpm, but yum is still broken.

So, by removing the offending yum should start working, but I get a seg fault when i attemp to remove it.

Code:
[root@localhost rpm]# rpm -e dbvis-6.5-1.i386
Freeing locks for locker 0xba: 20369/3087836944
Freeing locks for locker 0xbb: 20369/3087836944
Freeing locks for locker 0xbc: 20369/3087836944
Freeing locks for locker 0xbd: 20369/3087836944
Freeing locks for locker 0xbe: 20369/3087836944
Segmentation fault
Could anyone assist in getting rid of this binary. Other usefull information:

Code:
[root@localhost rpm]# rpm -qa| grep rpm
rpmfusion-free-release-10-1.noarch
rpmfusion-nonfree-release-10-1.noarch
rpm-4.6.0-0.rc1.7.i386
rpm-libs-4.6.0-0.rc1.7.i386
rpm-python-4.6.0-0.rc1.7.i386
Code:
[root@localhost rpm]# rpm -qa| grep yum
anaconda-yum-plugins-1.0-3.fc10.noarch
PackageKit-yum-0.3.9-4.fc10.i386
PackageKit-yum-plugin-0.3.9-4.fc10.i386
yum-3.2.20-3.fc10.noarch
yum-metadata-parser-1.1.2-10.fc10.i386
yum-utils-1.1.18-2.fc10.noarch

Code:
[root@localhost rpm]# cat /etc/redhat-release 
Fedora release 10 (Cambridge)
Thanks geo.
 
Old 02-01-2009, 05:58 PM   #2
sirlancealot
Member
 
Registered: Mar 2008
Location: Washington State, US
Distribution: OPENSuse 11.1
Posts: 35

Rep: Reputation: 17
I can only offer this: have you tried using the --force option with rpm -e..?
rpm -e dbvis-6.5-1.i386 --force

you could also try manually removing the files from the rpm (BUT I bet that'd break it, since I'm assuming it wouldn't get rid of the record of having it) you can download the rpm, and look at what files it has, and then go manually delete each one. *ahem* but I wouldn't recommend doing that since I have no idea of it's effect.
 
  


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 rpm remove all package sunhui Linux - Software 2 01-21-2007 11:55 AM
How to remove an RPM package? sirius57 Fedora 4 11-30-2005 08:07 PM
How do you uninstall/remove an rpm package? Plz Help! Gormless Linux - Newbie 3 10-23-2004 03:25 PM
Remove package from RPM database? breddy Linux - Newbie 1 07-21-2004 11:51 PM
Can't remove RPM package xxxxxxxxx Linux - Newbie 8 05-07-2004 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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