yum--AttributeError: 'module' object has no attribute 'HTTPSHandler'
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum--AttributeError: 'module' object has no attribute 'HTTPSHandler'相关的知识,希望对你有一定的参考价值。
[[email protected] ~]# 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'的主要内容,如果未能解决你的问题,请参考以下文章
过滤'and','or' ''' '*' '=' ‘select’下的注入
echarts合并地图,把中国各个省份分成'华北','东北','华东','华中','华南','西南',&
ajax返回一个Map类型数据'a':'1','b':'2','c':'3'怎么取值?
python爬取百度翻译返回:{'error': 997, 'from': 'zh', 'to': 'en', '