问题1:File "/usr/libexec/urlgrabber-ext-down", line 28 except OSError, e: ^
问题2:yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: ^
vim /usr/bin/yum
按下I键,进入编辑状态,修改/usr/bin/yum文件中的第一行为你对应的初始python版本号:
#!/usr/bin/python2.7
vi /usr/libexec/urlgrabber-ext-down
将第一行"#!/usr/bin/python" 改为 "#!/usr/bin/python2"即可
参考文章:https://blog.csdn.net/qq_50969362/article/details/122232075