There was a problem importing one of the Python modules required to run yum.

Issues related to applications and software problems
Post Reply
thembelara_81
Posts: 1
Joined: 2020/06/10 09:13:13

There was a problem importing one of the Python modules required to run yum.

Post by thembelara_81 » 2020/06/10 09:54:46

Hello Everyone

My name is Theo.
I am a Linux newbie and its my first time here.
I recently started to experience numerous problems from one of my systems. One of the problems is that when I try to run any of the yum commands the system gives the following error.

Error : There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
/usr/lib64/python2.6/lib-dynload/_hashlib.so: undefined symbol: SSL_load_error_strings

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.6 (r266:84292, May 1 2012, 13:52:17)

My current OS is CentOS 6.3

This started after hardening the server following the CIS_CentOS_Linux_6_Benchmark guideline.

I tried to replace the _hashlib.so file from an iso image using cpio but that did not work. I have also tried to reinstall python from a local dump file using both yum and rpm with no luck.

rpm -ivh python**.rpm

gives the following error :
error: python-2.6.6-64.el6.x86_64.rpm: not an rpm package (or package manifest): Input/output error

your help will be highly appreciated

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: There was a problem importing one of the Python modules required to run yum.

Post by TrevorH » 2020/06/10 10:29:14

What is the output from rpm -Vf /usr/lib64/python2.6/lib-dynload/_hashlib.so ?

And 6.3? Really? Are you really saying that you haven't run yum update since 2012? CentOS 6.3 is 8 years out of date and severely outdated and very very vulnerable to all sorts of security problems. You need to update to 6.10 ASAP and then start looking at how to replace CentOS 6 entirely as it only has less than 6 months of life left.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: There was a problem importing one of the Python modules required to run yum.

Post by jlehtone » 2020/06/10 15:22:13

thembelara_81 wrote:
2020/06/10 09:54:46
My current OS is CentOS 6.3

This started after hardening the server following the CIS_CentOS_Linux_6_Benchmark guideline.
The first step of hardening is:
1. Keep your system up to date

Can you trust a guideline, which does not bother to point that out?

Post Reply