LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum stops working (https://www.linuxquestions.org/questions/linux-newbie-8/yum-stops-working-4175442044/)

dmz1213 12-18-2012 05:15 PM

yum stops working
 
Hello:
Any yum command shows the following errors:
# yum clean all
Loaded plugins: fastestmirror, refresh-packagekit, security, verify
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 254, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 88, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 192, in getOptionsConfig
self.conf
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 778, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 283, in _getConfig
startupconf.pluginconfpath,disabled_plugins,enabled_plugins)
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 466, in doPluginSetup
plugin_types, confpath, disabled_plugins, enabled_plugins)
File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 162, in __init__
self.run('config')
File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/verify.py", line 427, in config_hook
verify_callback=conduit._base.verify_plugins_cb))
AttributeError: 'YumBaseCli' object has no attribute 'verify_plugins_cb'

Environment:
CentOS Linux release 6.0 (Final)
2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64

Thanks
DMz

unSpawn 12-18-2012 08:46 PM

What did you remove, install, update, configure before this error happened?
I'd download the original Yum and related packages and install with 'rpm' (note you may need to use some --force).
BTW you're missing 3 updates as Centos is at 6.3 now.

John VV 12-19-2012 01:09 AM

this is looking like a python mis-match
Did you by chance "manually" install a DIFFERENT python than WAS installed

Also for the NOW VERY DEAD ( yes in caps) Centos 6.0
ALL and i do mean ALL of the repos were moved a long time ago to the archives

yum will not work on centos6.0 !!!!!!!!
That is
Unless YOU manually reconfigure the repo files to point to the archival "vault"

PLEASE stay current and install CentOS 6.3

dmz1213 12-20-2012 01:16 PM

[SOLVED] yum does not work
 
I review /var/log.yum.log file, removed last few packages that i installed recently.
libmng-1.0.10-4.1.el6.x86_64
qt3-3.3.8b-30.el6.x86_64
pinentry-0.7.6-6.el6.x86_64
pinentry-qt-0.7.6-6.el6.x86_64
yum-plugin-verify-1.1.30-14.el6.noarch

yum is back to normal.

unSpawn 12-20-2012 01:51 PM

AFAIK your libmng, qt and pinentry packages don't contain anything that could influence Python or Yum.


All times are GMT -5. The time now is 10:12 PM.