Description of problem: I ran "yum update" and aborted it at the beginning with CTRL-C and yum displays an error message which is not true (a normal run of "yum update" without pressint CTRL-C works flawlessly): $ sudo yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: cannot import name iterparse Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq Version-Release number of selected component (if applicable): 3.0.5-1.fc6
If you hit ctrl-c very quickly, then you're going to interrupt before we've had a chance to set up our KeyboardInterrupt handler and thus cause the import of modules to fail. Which then leads to that error.