[root@develop bin]# yum [root@develop local]# yum -y install prce 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 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.6.1 (r261:67515, Aug 7 2010, 11:36:17) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
[root@develop local]# whereis python python: /usr/bin/python2.4 /usr/bin/python /usr/lib/python2.4 /usr/local/bin/python2.6 /usr/local/bin/python2.6-config /usr/local/bin/python /usr/local/lib/python2.6 /usr/share/man/man1/python.1.gz
[root@develop local]# python Python 2.6.1 (r261:67515, Aug 7 2010, 11:36:17) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
[root@develop local]# which yum /usr/bin/yum [root@develop local]# vi /usr/bin/yum
[root@develop local]# vi /usr/bin/yum-updatest
如果不修改/usr/bin/yum ,则yum无法使用
如果不修改/usr/bin/yum-updatest 会出现如下错误
File "/usr/sbin/yum-updatesd", line 35, in <module>
import dbus
ImportError: No module named dbus
当然,修改完后记着
[root@localhost google_appengine]# /sbin/service yum-updatesd restart Stopping yum-updatesd: [FAILED] Starting yum-updatesd: [ OK ]