Fix lỗi yum: There was a problem importing one of the Python modules required to run yum

27/03/2020 357

Hướng dẫn fix lỗi khi chạy lệnh yum:

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, Oct 30 2018, 23:45:53)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

Các bạn fix lỗi như sau:

export LD_LIBRARY_PATH=/lib:/lib64:/usr/lib64:/usr/lib:/root/anaconda/lib:$LD_LIBRARY_PATH
yum check update

Chúc các bạn thành công