Bug 235691 - yum-utils crashes with --oldkernels
yum-utils crashes with --oldkernels
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: yum-utils (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-09 12:57 EDT by Need Real Name
Modified: 2014-01-21 17:57 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-12-06 23:29:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2007-04-09 12:57:16 EDT
# /usr/bin/package-cleanup --oldkernels
Setting up yum
I will remove the following 8 kernel related packages:
kernel-2.6.19-1.2911.6.5.fc6
kernel-2.6.19-1.2911.6.4.fc6
kernel-2.6.19-1.2911.fc6
kernel-2.6.19-1.2895.fc6
kernel-devel-2.6.19-1.2911.6.5.fc6
kernel-devel-2.6.19-1.2911.6.4.fc6
kernel-devel-2.6.19-1.2911.fc6
kernel-devel-2.6.19-1.2895.fc6
Is this ok [y/N]: y
/usr/bin/package-cleanup:312: DeprecationWarning: returnHeaderByTuple() will go
away in a future version of Yum.

  hdr = my.rpmdb.returnHeaderByTuple(kernel)[0]
Traceback (most recent call last):
  File "/usr/bin/package-cleanup", line 402, in ?
    main()
  File "/usr/bin/package-cleanup", line 371, in main
    removeKernels(my, opts.kernelcount, opts.confirmed, opts.keepdevel)
  File "/usr/bin/package-cleanup", line 317, in removeKernels
    my.populateTs()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 171, in populateTs
    self.ts.addErase(txmbr.po.idx)
AttributeError: 'YumInstalledPackage' object has no attribute 'idx'
Comment 1 Stephen Warren 2007-08-07 22:43:33 EDT
This is a bit of a bummer, because this URL says to run this command:

http://fedoraproject.org/wiki/YumUpgradeFaq

Now, since the command failed, I have no idea if it will affect the proper
operation of the rest of the page...
Comment 2 Seth Vidal 2007-12-06 23:29:33 EST
This is fixed in upstream yum-utils. It should be out in a release shortly.

closing  as upstream.

thank you!

Note You need to log in before you can comment on or make changes to this bug.