PDA

View Full Version : yum update broken



jubba
28th September 2009, 04:02 PM
Hello all!

I've been encountering a bug in my automatic yum updates with Fedora 11. Any updates, including with the GUI update tool, I get a python error akin to:


$ sudo yum update
Loaded plugins: refresh-packagekit
Excluding Packages in global exclude list
Finished
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.getPackageObj ect(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've tracked down the problem, and it appears to be with the package openoffice.org-impress-core. I've googled around and searched the forums here, but I didn't see anyone else complaining of anything similar. So I'm guessing it's something local to my machine, and that some file got corrupted somewhere.

Attempts to remove, reinstall, erase, or update the package all end with the above error or similar.

I've uninstalled the rest of OOo, in the hopes of clearing it out to reinstall, but no dice. I do not seem to be able to uninstall the package via yum.

So thoughts? Ideas? Is more information needed?

jubba
28th September 2009, 04:15 PM
Nevermind - fixed!

I just ended up uninstalling the package directly with

sudo rpm -e openoffice.org-impress-core-3.1.0-11.3.fc11.x86_64
instead of using yum.

Hope this helps someone else!