Description of problem: Experienced with attempted update of packages nss and nss-softokn-freebl for several weeks (I can live with this) but today's update of glibc is now causing the same problem. When running 'yum update' after logging in as root (with 'su -' in a regular xterm or gnome terminal I receive a python script error. I've been able to avoid the problem by updating packages individually by name - but nss has failed to update consistently since early August. Now glibc update is generating the same error. My computer also experiences the problem with desktop updates (probably yum-updatesd?), I've worked around the problem here by showing the updates and unticking anything beginning with nss. Version-Release number of selected component (if applicable): [root@clive ~]# uname -a Linux clive.******.org 2.6.30.5-43.fc11.i586 #1 SMP Thu Aug 27 21:18:54 EDT 2009 i686 i686 i386 GNU/Linux [root@clive ~]# rpm -qa|grep yum yumex-2.0.5-6.fc11.noarch PackageKit-yum-plugin-0.4.9-1.fc11.i586 yum-updatesd-0.9-2.fc11.noarch PackageKit-yum-0.4.9-1.fc11.i586 yum-plugin-remove-with-leaves-1.1.22-1.fc11.noarch yum-3.2.23-3.fc11.noarch yum-presto-0.5.0-1.fc11.noarch anaconda-yum-plugins-1.0-4.fc11.noarch yum-metadata-parser-1.1.2-12.fc11.i586 yum-plugin-keys-1.1.22-1.fc11.noarch yum-utils-1.1.22-1.fc11.noarch yum-plugin-protectbase-1.1.22-1.fc11.noarch How reproducible: Every time I run updates. Steps to Reproduce: 1. Open an xterm 2. use 'su -' to get to the root account 3. run 'yum -y update' Actual results: I get this in the package update tool: ---- Traceback (most recent call last): File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 1251, in _get_depends_not_installed txmbrs = self.yumbase.install(po=pkg) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2691, in install txmbrs = self.update(po=po) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2965, in update updated_pkg = self.rpmdb.searchPkgTuple(updated)[0] IndexError: list index out of range ---- and this when running the update from the command line: ---- [root@clive ~]# yum -y update Loaded plugins: keys, presto, protectbase, refresh-packagekit, remove-with- : leaves 0 packages excluded due to repository protections Setting up Update Process 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 309, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 178, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 352, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 201, in doCommand return base.updatePkgs(extcmds) File "/usr/share/yum-cli/cli.py", line 608, in updatePkgs self.update() File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2829, in update tx_return.extend(self.update(po=self.getPackageObject(new))) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2965, in update updated_pkg = self.rpmdb.searchPkgTuple(updated)[0] IndexError: list index out of range ---- Expected results: I expect to see the updates complete cleanly. Additional info: Hardware is an Asus Eee PC 901 with solid state drives, Fedora is installed on a brand new (<2 months old) 16Gb SDHC card.
You can make this happen everytime? B/c adding some debug info here would really help me out solving this.
ping, please. I could use some help making this happen.
When I've seen this there is usually something wrong with the local rpmdb (the error is that one part of yum thinks pkgA is installed while another can't find it), try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest ...and providing those results.
Hi Seth. To get some kind of debug output I've run 'yum -v update', here's the results: ---- [root@clive ~]# yum -v update Not loading "blacklist" plugin, as it is disabled Loading "keys" plugin Loading "presto" plugin Loading "protectbase" plugin Loading "refresh-packagekit" plugin Loading "remove-with-leaves" plugin Not loading "whiteout" plugin, as it is disabled Config time: 0.624 Yum Version: 3.2.23 Setting up Package Sacks 0 packages excluded due to repository protections pkgsack time: 0.063 rpmdb time: 0.121 Setting up Update Process Updating Everything Building updates object up:Obs Init time: 0.912 up:simple updates time: 1.112 up:obs time: 0.059 up:condense time: 0.000 updates time: 12.692 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 309, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 178, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 352, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 201, in doCommand return base.updatePkgs(extcmds) File "/usr/share/yum-cli/cli.py", line 608, in updatePkgs self.update() File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2829, in update tx_return.extend(self.update(po=self.getPackageObject(new))) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2965, in update updated_pkg = self.rpmdb.searchPkgTuple(updated)[0] IndexError: list index out of range ---- I don't think this provides much extra information. I'm now going to run the commands suggested by James, I'll add the output from those next.
[root@clive ~]# package-cleanup --problems Setting up yum Loaded plugins: presto, protectbase, refresh-packagekit, remove-with-leaves 0 packages excluded due to repository protections 0 packages excluded due to repository protections Reading local RPM database Processing all local requires Missing dependencies: Package nss-3.12.3.99.3-2.11.3.fc11.i586 requires nss-softokn-freebl(x86-32) >= 3.12.3.99.3 Package glibc-2.10.1-4.i686 requires libfreebl3.so Package glibc-2.10.1-4.i686 requires libfreebl3.so(NSSRAWHASH_3.12.3)
[root@clive ~]# package-cleanup --dupes Setting up yum Loaded plugins: presto, protectbase, refresh-packagekit, remove-with-leaves 0 packages excluded due to repository protections 0 packages excluded due to repository protections Traceback (most recent call last): File "/usr/bin/package-cleanup", line 498, in <module> main() File "/usr/bin/package-cleanup", line 479, in main printDupes(my, opts.qf) File "/usr/bin/package-cleanup", line 185, in printDupes po = my.getInstalledPackageObject((n,a,e,v,r)) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2297, in getInstalledPackageObject po = self.rpmdb.searchPkgTuple(pkgtup)[0] # take the first one IndexError: list index out of range [root@clive ~]#
[root@clive ~]# rpm -Va --nofiles --nodigest Unsatisfied dependencies for nss-3.12.3.99.3-2.11.3.fc11.i586: nss-softokn-freebl(x86-32) >= 3.12.3.99.3 is needed by nss-3.12.3.99.3-2.11.3.fc11.i586 Unsatisfied dependencies for glibc-2.10.1-4.i686: libfreebl3.so is needed by glibc-2.10.1-4.i686 libfreebl3.so(NSSRAWHASH_3.12.3) is needed by glibc-2.10.1-4.i686 [root@clive ~]# Again, I'm not sure how much extra information this provides, and I've no idea how this arose. I'm a software engineer by profession, I'm quite prepared to run additional tools if necessary.
How comfortable do you feel about modifying a file and rerunning some output? b/c I'd love to know what pkgtup is being looked for there that cannot be found.
I added: print 'pkgtup=' print pkgtup at line 2297 in __init__.py and re-ran 'package-cleanup --dupes' Here's the output it gave: ---- [root@clive ~]# package-cleanup --dupes Setting up yum Loaded plugins: presto, protectbase, refresh-packagekit, remove-with-leaves 0 packages excluded due to repository protections 0 packages excluded due to repository protections pkgtup= ('kernel', 'i586', '0', '2.6.30.5', '43.fc11') pkgtup= ('kernel', 'i586', '0', '2.6.29.6', '217.2.16.fc11') pkgtup= ('kernel', 'i586', '0', '2.6.29.6', '217.2.8.fc11') pkgtup= ('nss-softokn-freebl', 'i586', '0', '3.12.3.99.3', '2.11.3.fc11') Traceback (most recent call last): File "/usr/bin/package-cleanup", line 498, in <module> main() File "/usr/bin/package-cleanup", line 479, in main printDupes(my, opts.qf) File "/usr/bin/package-cleanup", line 185, in printDupes po = my.getInstalledPackageObject((n,a,e,v,r)) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 2300, in getInstalledPackageObject po = self.rpmdb.searchPkgTuple(pkgtup)[0] # take the first one IndexError: list index out of range [root@clive ~]# ----
So, yeh, you need to install these: Missing dependencies: Package nss-3.12.3.99.3-2.11.3.fc11.i586 requires nss-softokn-freebl(x86-32) >= 3.12.3.99.3 Package glibc-2.10.1-4.i686 requires libfreebl3.so Package glibc-2.10.1-4.i686 requires libfreebl3.so(NSSRAWHASH_3.12.3) ...esp. the first one, which is killing yum. That package isn't the latest in Fedora anymore, so you'll need to download it from http://kojipkgs.fedoraproject.org/packages/nss/3.12.3.99.3/2.11.3.fc11/i586/
That has made the problem go away. I installed nss-softokn-freebl from the link you posted. I needed to do 'rpm --rebuilddb' to finally get it all working. I wonder what actually failed?
yum-3.2.24-2.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 512181 has been marked as a duplicate of this bug. ***
*** Bug 519254 has been marked as a duplicate of this bug. ***
yum-3.2.24-2.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/yum-3.2.24-2.fc10
yum-3.2.24-2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
Thank you for taking the time to report this bug. Updates to this package have been released since it was first reported. If you have time to update the package and re-test, please do so and report the results here. --- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers
This message is a reminder that Fedora 11 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 11. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '11'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 11's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 11 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping