👉 Jetzt bei Amazon nach deinem nächsten Gaming PCs stöbern (Affiliate-Link – ich erhalte eine kleine Provision, für dich bleibt der Preis gleich)

 

Vor kurzem hab ich mit einem älteren CentOS System gearbeitet. Beim Aufruf von yum bekam ich diese Fehlermeldung:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks

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, Nov 14 2023, 16:14:06)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq
Code-Sprache: JavaScript (javascript)

Lösung

Das Problem war wohl, dass yum bzw. Python 2 versucht hat, die falsche SSL Bibliothek zu laden. Um zu starten, muss man vorher die richtige SSL Bibliothek laden:

LD_PRELOAD=/lib64/libssl.so.1.0.2k yum install <paket>
Code-Sprache: Bash (bash)

Quellen