[root@heavydb ~]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)
[root@heavydb ~]# yum install sysstat
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, Jun 20 2023, 11:36:40) 
[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
  

[root@heavydb ~]# ldconfig -v | grep libcurl
ldconfig: Can't stat /libx32: No such file or directory
ldconfig: Path `/usr/lib' given more than once
ldconfig: Path `/usr/lib64' given more than once
ldconfig: Can't stat /usr/libx32: No such file or directory
        libcurl.so.4 -> libcurl.so.4.3.0 (changed)
[root@heavydb ~]# yum install libx32
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, Jun 20 2023, 11:36:40) 
[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
  

[root@heavydb ~]# 
[root@heavydb ~]# 
[root@heavydb ~]# ldd  /usr/lib64/python2.7/site-packages/pycurl.so
        linux-vdso.so.1 =>  (0x00007ffc228d9000)
        libcurl.so.4 (0x00007f4f0a296000)
        libpython2.7.so.1.0 => /lib64/libpython2.7.so.1.0 (0x00007f4f09eca000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4f09cae000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4f098e0000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f4f096ca000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f4f094c6000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007f4f092c3000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f4f08fc1000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f4f0a995000)
[root@heavydb ~]# find / -name libcurl.so.4
/root/libcurl.so.4
/root/curl-7.29.0/lib/.libs/libcurl.so.4
/usr/lib64/libcurl.so.4
/usr/local/lib/libcurl.so.4
/usr/local/mapd-deps/20230829-778137465/lib/libcurl.so.4
[root@heavydb ~]# find / -name libcurl.so.4.3.0
/root/curl-7.29.0/lib/.libs/libcurl.so.4.3.0
/usr/lib64/libcurl.so.4.3.0
/usr/local/lib/libcurl.so.4.3.0

[root@heavydb ~]# mv /usr/lib64/libcurl.so.4 /usr/lib64/libcurl.so.4.bak
[root@heavydb ~]# ln -s /usr/lib64/libcurl.so.4.3.0 /usr/lib64/libcurl.so.4
[root@heavydb ~]# cd /usr/lib64
[root@heavydb lib64]# ll libcurl.so.4*
lrwxrwxrwx. 1 root root     27 Oct 12 20:32 libcurl.so.4 -> /usr/lib64/libcurl.so.4.3.0
-rwxr-xr-x. 1 root root 439280 Nov 17  2020 libcurl.so.4.3.0
lrwxrwxrwx. 1 root root     16 Oct 12 20:23 libcurl.so.4.bak -> libcurl.so.4.3.0
[root@heavydb lib64]# ldd  /usr/lib64/python2.7/site-packages/pycurl.so
        linux-vdso.so.1 =>  (0x00007fffea9c4000)
        libcurl.so.4 (0x00007f2f7daa5000)
        libpython2.7.so.1.0 (0x00007f2f7d6d9000)
        libpthread.so.0 (0x00007f2f7d4bd000)
        libc.so.6 (0x00007f2f7d0ef000)
        libidn.so.11 (0x00007f2f7cebc000)
        libssh2.so.1 (0x00007f2f7cc8f000)
        libssl3.so (0x00007f2f7ca2a000)
        libsmime3.so (0x00007f2f7c802000)
        libnss3.so (0x00007f2f7c4c8000)
        libnssutil3.so (0x00007f2f7c298000)
        libplds4.so (0x00007f2f7c094000)
        libplc4.so (0x00007f2f7be8f000)
        libnspr4.so (0x00007f2f7bc50000)
        libdl.so.2 (0x00007f2f7ba4c000)
        libgssapi_krb5.so.2 (0x00007f2f7b7ff000)
        libkrb5.so.3 (0x00007f2f7b516000)
        libk5crypto.so.3 (0x00007f2f7b2e3000)
        libcom_err.so.2 (0x00007f2f7b0df000)
        liblber-2.4.so.2 (0x00007f2f7aed0000)
        libldap-2.4.so.2 (0x00007f2f7ac7b000)
        libz.so.1 (0x00007f2f7aa65000)
        libutil.so.1 (0x00007f2f7a862000)
        libm.so.6 (0x00007f2f7a560000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f2f7df20000)
        libssl.so.10 (0x00007f2f7a2ee000)
        libcrypto.so.10 (0x00007f2f79e8b000)
        librt.so.1 (0x00007f2f79c83000)
        libkrb5support.so.0 (0x00007f2f79a73000)
        libkeyutils.so.1 (0x00007f2f7986f000)
        libresolv.so.2 (0x00007f2f79655000)
        libsasl2.so.3 (0x00007f2f79438000)
        libselinux.so.1 (0x00007f2f79211000)
        libcrypt.so.1 (0x00007f2f78fda000)
        libpcre.so.1 (0x00007f2f78d78000)
        libfreebl3.so (0x00007f2f78b75000)
[root@heavydb lib64]# yum install sysstat -y
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
epel/x86_64/metalink                                                                                                                                | 5.1 kB  00:00:00     
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
 * base: mirrors.aliyun.com
 * epel: repo.jing.rocks
 * extras: mirrors.aliyun.com
 * updates: mirrors.huaweicloud.com

sysstat-10.1.5-20.el7_9.x86_64 FAILED                                          
http://mirrors.bupt.edu.cn/centos/7.9.2009/updates/x86_64/Packages/sysstat-10.1.5-20.el7_9.x86_64.rpm: [Errno 14] HTTP Error 403 - Forbidden0.0 B/s |    0 B  --:--:-- ETA 
Trying other mirror.
sysstat-10.1.5-20.el7_9.x86_64 FAILED                                          
http://mirrors.cqu.edu.cn/CentOS/7.9.2009/updates/x86_64/Packages/sysstat-10.1.5-20.el7_9.x86_64.rpm: [Errno 14] HTTP Error 503 - Service Unavailable    0 B  --:--:-- ETA 
Trying other mirror.
sysstat-10.1.5-20.el7_9.x86_64 FAILED                                          
http://mirrors.jlu.edu.cn/centos/7.9.2009/updates/x86_64/Packages/sysstat-10.1.5-20.el7_9.x86_64.rpm: [Errno 14] curl#52 - "Empty reply from server"|    0 B  --:--:-- ETA 
Trying other mirror.


Error downloading packages:
  sysstat-10.1.5-20.el7_9.x86_64: [Errno 256] No more mirrors to try.

[root@heavydb lib64]# cd /etc/yum.repos.d/

[root@heavydb yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2523  100  2523    0     0  11222      0 --:--:-- --:--:-- --:--:-- 11263
[root@heavydb yum.repos.d]# yum install sysstat -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
base                                                                                                                                                | 3.6 kB  00:00:00     
extras                                                                                                                                              | 2.9 kB  00:00:00     
updates                                                                                                                                             | 2.9 kB  00:00:00     
updates/7/x86_64/primary_db                                                                                                                         |  27 MB  00:02:03     
Resolving Dependencies
--> Running transaction check
---> Package sysstat.x86_64 0:10.1.5-20.el7_9 will be installed
--> Processing Dependency: libsensors.so.4()(64bit) for package: sysstat-10.1.5-20.el7_9.x86_64
--> Running transaction check
---> Package lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.el7_9.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================
 Package                                 Arch                           Version                                                      Repository                       Size
===========================================================================================================================================================================
Installing:
 sysstat                                 x86_64                         10.1.5-20.el7_9                                              updates                         315 k
Installing for dependencies:
 lm_sensors-libs                         x86_64                         3.4.0-8.20160601gitf9185e5.el7_9.1                           updates                          42 k

Transaction Summary
===========================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 357 k
Installed size: 1.2 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7_9.1.x86_64.rpm                                                                                |  42 kB  00:00:00     

sysstat-10.1.5-20.el7_9.x86_64 FAILED                                          
http://mirrors.aliyuncs.com/centos/7/updates/x86_64/Packages/sysstat-10.1.5-20.el7_9.x86_64.rpm: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/7/updates/x86_64/Packages/sysstat-10.1.5-20.el7_9.x86_64.rpm: (28, 'Connection timed out after 30001 milliseconds')
Trying other mirror.
(2/2): sysstat-10.1.5-20.el7_9.x86_64.rpm                                                                                                           | 315 kB  00:00:00     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                       12 kB/s | 357 kB  00:00:30     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7_9.1.x86_64                                                                                               1/2 
  Installing : sysstat-10.1.5-20.el7_9.x86_64                                                                                                                          2/2 
  Verifying  : sysstat-10.1.5-20.el7_9.x86_64                                                                                                                          1/2 
  Verifying  : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7_9.1.x86_64                                                                                               2/2 

Installed:
  sysstat.x86_64 0:10.1.5-20.el7_9                                                                                                                                         

Dependency Installed:
  lm_sensors-libs.x86_64 0:3.4.0-8.20160601gitf9185e5.el7_9.1                                                                                                              

Complete!
[root@heavydb yum.repos.d]# 
[root@heavydb yum.repos.d]# 

相关参考:centos7更新yum国内源-CSDN博客

更多推荐