Troubleshoot Yum Python error in CentOS7

To troubleshoot Yum Python error in CentOS7:


In CentOS 7.0, you will get errors for while running “yum update” command.
Please follow the following steps to resolve this issue till next update.
1. Open /usr/lib/python2.7/site-packages/urlgrabber/ in preferable editor
vi /usr/lib/python2.7/site-packages/urlgrabber/
2. Go to line number 1510. Below command is for VI editor only.
3. Change “elif errcode in (42, 55, 56):”  to “elif errcode == 42:"
4. Now run yum update or any command related to you.

Neelesh Gurjar has written 122 articles