[email protected] yum.repos.d]# Yum Clean all
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
Install a package which provides this module, or
Verify the module is installed correctly.
It ' s possible that the above module doesn ' t match the
Current version of Python, which is:
2.7.8 (default, SEP 5 2016, 17:22:38)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
If You cannot solve this problem yourself and go to
The Yum FAQ at:
Http://yum.baseurl.org/wiki/Faq
[Email protected] yum.repos.d]#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Probably a custom installation python caused
[[email protected] yum.repos.d]# python
Python 2.7.8 (default, SEP 5 2016, 17:22:38)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>>
Modify it here:
[Email protected] ~]# cd/usr/bin/
[Email protected] bin]# mv Python.bak python
MV: Do you want to overwrite "python"? Y
[[email protected] bin]# python
Python Python2.6.bak Python2.bak
[[email protected] bin]# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[email protected] bin]# Yum Clean all
Loaded plugins: Fastestmirror
Cleaning repos:base elrepo epel epel-debuginfo epel-source Extras ren updates
Clean everything up.
Cleaning up list of fastest mirrors
[Email protected] bin]#
Yum List
#############################################
can be used!
This article is from the "[email protected]" blog, please be sure to keep this source http://renzhiyuan.blog.51cto.com/10433137/1847094
The Python module creates yum simple error notes!