安装了一个yum-downloadonly,发现yum无法使用,报错信息如下
------------------------------------------------------------------------------------------------
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
------------------------------------------------------------------------------------------------
解决办法
------------------------------------------------------------------------------------------------
解决办法
查看系统使用的python版本
ls /usr/bin |grep python
#vi /usr/bin/yum
将 #!/usr/bin/python 修改为 #!/usr/bin/python2.6
参考文章:http://maxomnis.iteye.com/blog/1993478