General support questions
- Posts: 1
- Joined: 2014/09/29 09:53:06
I recently upgraded my CentOS 6.5 to CentOS 7 using the Preupgrade Assistant
and the redhat-upgrade-tool
After the upgrade my yum is not working anymore.
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.7.5 (default, Sep 11 2013, 16:55:54 )
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
If you cannot solve this problem yourself, please go to
the yum faq at:
I googled and I guess the problem occured because of the python upgrade during the CentOS 7 upgrade .
Is there any way to solve this problem?
I really appreciate any help you can provide.
PS: English is not my first language
- Posts: 45
- Joined: 2010/01/28 21:05:11
- Location: University of the Free State - South Africa
You can try to (re)install your python,gcc and yum:
Code: Select all
rpm -Uvh $my_mirror/updates/x86_64/Packages/libgcc-4.8.2-16.2.el7_0.x86_64.rpm
rpm -Uvh $my_mirror/os/x86_64/Packages/cpp-4.8.2-16.el7.x86_64.rpm
rpm -Uvh $my_mirror/updates/x86_64/Packages/kernel-headers-3.10.0-123.8.1.el7.x86_64.rpm
rpm -Uvh $my_mirror/updates/x86_64/Packages/glibc-common-2.17-55.el7_0.1.x86_64.rpm \
rpm -Uvh $my_mirror/updates/x86_64/Packages/glibc-headers-2.17-55.el7_0.1.x86_64.rpm
rpm -Uvh $my_mirror/updates/x86_64/Packages/glibc-devel-2.17-55.el7_0.1.x86_64.rpm
rpm -Uvh $my_mirror/os/x86_64/Packages/mpfr-3.1.1-4.el7.x86_64.rpm
rpm -Uvh $my_mirror/os/x86_64/Packages/libmpc-1.0.1-3.el7.x86_64.rpm
rpm -Uvh $my_mirror/updates/x86_64/Packages/cpp-4.8.2-16.2.el7_0.x86_64.rpm
rpm -Uvh $my_mirror/updates/x86_64/Packages/gcc-4.8.2-16.2.el7_0.x86_64.rpm
rpm -Uvh $my_mirror/os/x86_64/Packages/python-2.7.5-16.el7.x86_64.rpm
rpm -Uvh $my_mirror/os/x86_64/Packages/yum-3.4.3-118.el7.centos.noarch.rpm
yum clean all