linux安装软件时/usr/lib/python2.7/site-packages/urlgrabber/grabber.py文件异常

linux安装软件时,经常出现以下异常信息

Traceback (most recent call last):
File "/usr/libexec/urlgrabber-ext-down", line , in <module>
main()
File "/usr/libexec/urlgrabber-ext-down", line , in main
fo = PyCurlFileObject(opts.url, opts.filename, opts)
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line , in __init__
self._do_open()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line , in _do_open
self._do_grab()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line , in _do_grab
self._do_perform()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line , in _do_perform
raise KeyboardInterrupt
KeyboardInterrupt

解决办法

vim /usr/lib/python2./site-packages/urlgrabber/grabber.py

在第1510行左右,将

elif errcode in (, , ):

改为

elif errcode == :

重新安装软件即可

上一篇:CentOS yum安装软件时保留安装包及依赖包或者自动下载安装包及相关依赖包


下一篇:Jmeter的安装与使用