Fedora Account System
Red Hat Associate
Red Hat Customer
This is urgent, because people will be upgrading complete systems and this update breaks the packaging system. If a system upgrade is interrupted for any reason the computer can very easily be left in a completely broken state. I just updated yum to version 3.2.23-3.fc11 plus plugins to version 1.1.22-1.fc11 on both x86_64 and i586 platforms Both systems gives the following error yum clean all /usr/lib/yum-plugins/fedorakmod.py:25: DeprecationWarning: the sets module is deprecated from sets import Set Loaded plugins: aliases, allowdowngrade, auto-update-debuginfo, basearchonly, changelog, dellsysidplugin2, downloadonly, fastestmirror, fedorakmod, filter- : data, keys, kmdl, list-data, merge-conf, post-transaction-actions, presto, priorities, protect-packages, protectbase, refresh-packagekit, : refresh-updatesd, remove-with-leaves, rpm-warm-cache, security, show-leaves, tmprepo, tsflags, upgrade-helper, verify, versionlock 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 157, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 189, in getOptionsConfig self.conf File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 652, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 237, in _getConfig startupconf.pluginconfpath,disabled_plugins,enabled_plugins) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 408, in doPluginSetup plugin_types, confpath, disabled_plugins, enabled_plugins) File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 163, in __init__ self.run('config') File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 180, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/tmprepo.py", line 179, in config_hook parser.values.tmp_repos = [] AttributeError: OptionGroup instance has no attribute 'values'
To Follow up, downgrading yum and plugins to previous version cleared up the problem.
You were running an upgrade and the transaction was interrupted? If so, then, yes, things can break. There is no way to roll things back - it's not an atomic transaction.
I just ran into this issue under Fedora 10. I was able to fix the issue by editing the file /etc/yum/pluginconf.d/tmprepo.conf and disabling the value of the "enabled" setting to 0. I did notice that when I did the update, it appeared that the tmprepo plugin had been rolled into yum. Is it possible that there is some kind of incompatibility between the configuration file format for tmprepo as a separate plugin and tmprepo as part of the main package? (Or should the tmprepo.conf file just be removed?)
(In reply to comment #2) > You were running an upgrade and the transaction was interrupted? If so, then, > yes, things can break. There is no way to roll things back - it's not an atomic > transaction. No. My system is and I'm OK. What I'm warning about are those people like me that use yum to upgrade there systems. I know, I know, Its not recommended. However, I have not used a CD / DVD to upgrade a Fedora machine since version 4. Yum will pull the packages from the updates repository and in the off chance something happens to interrupt the upgrade from 10 to 11, then that could very easily leave the computer in a completely broken state with no way to continue with the upgrade. I'm waiting for an answer to comment 3 before trying again with the latest version.
OK. I just upgraded yum and plugins again and applied the workaround as outlined by John in Comment 3. Everything is OK
(In reply to comment #3) > the "enabled" setting to 0. I did notice that when I did the update, it > appeared that the tmprepo plugin had been rolled into yum. It looks like this was slightly incorrect. It appears that the yum-tmprepo changed its package name to yum-plugins-tmprepo. This may actually be a bug in that package.
It looks like this is the same as bug #501723. *** This bug has been marked as a duplicate of bug 501723 ***