CentOS 7.x yum keyboard interrupt issue

From Notes_Wiki

Home > CentOS > CentOS 7.x > System Administration > Package management > Yum > CentOS 7.x yum keyboard interrupt issue

On CentOS 7 yum may not work and quit my mentioning keyboard interrupt as reason. This bug can be temporarily bypassed by using following steps:

  1. Edit /usr/lib/python2.7/site-packages/urlgrabber/grabber.py
  2. Go to line 1510 and change it from
    elif errcode in (42, 55, 56):
    to
    elif errcode == 42:


Learned from https://www.centos.org/forums/viewtopic.php?f=47&t=47372&start=10


Home > CentOS > CentOS 7.x > System Administration > Package management > Yum > CentOS 7.x yum keyboard interrupt issue