标签:yum--attributeerror: 'module' object has no attribute 'httpshandler'
[root@localhost ~]# yum list Traceback (most recent call last): File "/usr/bin/yum", line 4, in ? import yum File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 50, in ? import config File "/usr/lib/python2.4/site-packages/yum/config.py", line 27, in ? from parser import ConfigPreProcessor File "/usr/lib/python2.4/site-packages/yum/parser.py", line 3, in ? import urlgrabber File "/usr/lib/python2.4/site-packages/urlgrabber/__init__.py", line 53, in ? from grabber import urlgrab, urlopen, urlread File "/usr/lib/python2.4/site-packages/urlgrabber/grabber.py", line 412, in ? import keepalive File "/usr/lib/python2.4/site-packages/urlgrabber/keepalive.py", line 339, in ? class HTTPSHandler(KeepAliveHandler, urllib2.HTTPSHandler): AttributeError: ‘module‘ object has no attribute ‘HTTPSHandler‘
以上问题是没有安装openssl原因,yum不能用。
安装openssl的rpm相关包,问题就可以解决。
注:如果大家在需要升级openssl或是openssh切记不要先卸载掉老的openssl,不然远程无法登录,也无法用yum命令的
本文出自 “运维笔录 美玲” 博客,请务必保留此出处http://meiling.blog.51cto.com/6220221/1979449
yum--AttributeError: 'module' object has no attribute 'HTTPSHandler'
标签:yum--attributeerror: 'module' object has no attribute 'httpshandler'
原文地址:http://meiling.blog.51cto.com/6220221/1979449