安装了一个yum-downloadonly,发现yum无法使用。报错信息例如以下
------------------------------------------------------------------------------------------------
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
------------------------------------------------------------------------------------------------
解决的方法
#vi /usr/bin/yum
将 #!/usr/bin/python 改动为 #!/usr/bin/python2.6