Date post: | 08-Feb-2017 |
Category: |
Technology |
Upload: | vcp-muthukrishna |
View: | 4,882 times |
Download: | 3 times |
Yum Command Fails – Exiting on user cancel
i | P a g e
Table of Contents Overview ....................................................................................................................................................... 1
Applies To ...................................................................................................................................................... 1
Error .............................................................................................................................................................. 1
Cause ............................................................................................................................................................. 1
Resolution ..................................................................................................................................................... 1
Modify – grabber.ph Python Script ........................................................................................................... 2
Yum – List Packages .................................................................................................................................. 3
Yum Command Fails – Exiting on user cancel
1 | P a g e
Overview
Yum command or update fails with “keyboard Interrupt ….Exiting on user cancel”
Applies To
CentOS 7
Error
With the below error message:
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1517, in _do_perform
raise KeyboardInterrupt
KeyboardInterrupt
Cause
It is a bug.
https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=1091740
Resolution
Edit the file “grabber.py”; run the below command.
vi +1510 /usr/lib/python2.7/site-packages/urlgrabber/grabber.py
Yum Command Fails – Exiting on user cancel
2 | P a g e
Modify – grabber.ph Python Script
Update the python script on the line number “1510”.
From
elif errcode in (42, 55, 56):
To
elif errcode in (42):