If yum-downloadonly is installed and yum cannot be used, the following error message is displayed: ------------------------------------------------------------------------------------------------ Therewasaproblemimportingoneof installed yum-downloadonly. if yum is unavailable, the following error message is displayed:
Bytes ------------------------------------------------------------------------------------------------
There was a problem importing one of the Python modules
Required to run yum. The error leading to this problem was:
No module named yum
Bytes ------------------------------------------------------------------------------------------------
Solution: view the python version used by the system. ls/usr/bin | grep python: modify the yum file.
# Vi/usr/bin/yum
#! /Usr/bin/python #! /Usr/bin/python2.6 references: http://maxomnis.iteye.com/blog/1993478