Red Hat Bugzilla – Bug 528187
Error during yum install (anything) --downloadonly --downloaddir=.
Last modified: 2014-01-21 18:11:51 EST
Description of problem:
Following Error appears when using yum plugin download-only:
Loaded plugins: downloadonly, refresh-packagekit
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
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
File "/usr/share/yum-cli/cli.py", line 204, in getOptionsConfig
(opts, self.cmds) = self.optparser.setupYumConfig(args=args)
File "/usr/share/yum-cli/cli.py", line 1226, in setupYumConfig
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 455, in _getRepos
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 79, in doSetup
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/downloadonly.py", line 41, in postreposetup_hook
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 295, in setAttribute
setattr(self, key, value)
AttributeError: can't set attribute
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.yum install gcc --downloadonly --downloaddir=.
System is up-to-date.
Can you give us the output of:
rpm -q yum yum-utils yum-plugin-downloadonly
but I think this is fixed:
100% this is a DUP of that.
*** This bug has been marked as a duplicate of bug 506640 ***
The system is up to date, that is everything is updated to latest release. I will post the output of the above command. I checked the bug number you posted earlier but I don't see a solution, can you tell me how it was solved or if it was a patch can you tell me what version in which repo it was solved, bug 506640 does not contain enough info on how it was solved.
This should be fixed in 3.2.24.