LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Yum is not working (https://www.linuxquestions.org/questions/linux-desktop-74/yum-is-not-working-4175557478/)

jenabim 10-29-2015 11:09 AM

Yum is not working
 
Hi,
In my RHEL 7.1 whenever I type yum I am getting the following error:


# 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, Apr 9 2015, 11:03:32) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq

and if i run sosreport I am getting this:

# sosreport
Fatal Python error: pycurl: libcurl link-time version is older than compile-time version Aborted (core dumped)
I already created a case in red hat and red hat support so far did nothing helpful to solve my problem.
please help.
Thank you
Mehrnaz

John VV 10-29-2015 12:57 PM

yum is DEPENDENT!!! on the default installed version of python
and YES it is a older version

if you replace it you will KILL yum and some other tools

now

you can install a second python in a side by side set up


as to fixing this


call redhat
there are no if's and 's or but's on this
you WILL need there help

you will have to grab the version of python in the rhn repos
redhat tech support can provide you with a link and instructions on manually replacing the version you built with the official one

jenabim 10-29-2015 01:11 PM

Thanks, I will


All times are GMT -5. The time now is 06:27 PM.