yum安装报错File "/usr/libexec/urlgrabber-ext-down", line 28

报错如下

[root@iz2ze5zdki0r7z2om8cze5z ~]# yum install httpd-devel
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
  File "/usr/libexec/urlgrabber-ext-down", line 28
    except OSError, e:
                  ^
SyntaxError: invalid syntax

vi /usr/libexec/urlgrabber-ext-down
把python引用路径(第一行/usr/bin/python)改成和/usr/bin/yum一样的

推荐阅读更多精彩内容