Home > OS >  Centos 7 yum command error
Centos 7 yum command error

Time:09-29

Yum command when an error prompt: There was a problem importing one of the Python modules
Required to run yum. The error leading to this problem was:

/lib64/libxml2. So. 2: symbol gzopen64, version ZLIB_1. 2.3.3 not defined in the file libz. So. 1 with link time reference

Both 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
The current version of Python, which is:
2.7.5 (default, Nov 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

If you always solve this problem yourself, both please go to
The yum FAQ at:
http://yum.baseurl.org/wiki/Faq



Operating system and kernel version is as follows:
CentOS Linux release 7.2.1511 (Core)

Linux server2 3.10.0-327. El7. X86_64 # 1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


Python version is as follows:
[root @ server2 lib] # whereis python
Python:/usr/bin/python2.7/usr/bin/python/usr/lib/python2.7/usr/lib64/python2.7/etc/python/usr/include/python2.7/usr/share/man/man1/python. 1. Gz
[root @ server2 lib] # python
Python 2.7.5 (default, Nov 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2


Yum version information is as follows:
[root @ server2 lib] # RPM - qa | grep yum
Yum - utils - 1.1.31-50. El7. Noarch
Yum - metadata - parser - 1.1.4-10. El7. X86_64
Yum - langpacks - 0.4.2-7. El7. Noarch
Yum - plugin - fastestmirror - 1.1.31-40. El7. Noarch
Yum - rule 3.4.3-150. El7. Centos. Noarch
PackageKit - yum - 1.1.10-1. El7. Centos. X86_64

Libxml2 version information is as follows:
[root @ server2 lib] # RPM - qa | grep libxm
Libxml2 - python - 2.9.1-6. El7_2. 3. The x86_64
Libxml2 2.9.1-6. El7_2. 3. The x86_64


[root @ server2 lib] # LDD/lib64/libxml2. So.
2/lib64/libxml2. So. 2:/appli/analytics/bin64 libz. So. 1: no version information available (required by/lib64/libxml2. So. 2)
/lib64/libxml2. So. 2:/appli/analytics/bin64 libz. So. 1: no version information available (required by/lib64/libxml2. So. 2)
Linux - vdso. So. 1=& gt; (0 x00007ffd4a4f8000)
Libdl. So. 2=& gt;/lib64/libdl. So. 2 (0 x00007fe473382000)
Libz. So. 1=& gt;/cognos/appli/IBM/cognos/analytics/bin64/libz. So. 1 (0 x00007fe47316a000)
5=& gt; liblzma. So./lib64/liblzma. So. 5 (0 x00007fe472f44000)
6=& gt; libm. So./lib64/libm. So. 6 (0 x00007fe472c42000)
6=& gt; libc. So./lib64/libc. So. 6 (0 x00007fe472874000)
/lib64/ld - Linux - x86-64. So. 2 (0 x00007fe473908000)
Libpthreads. So. 0=& gt;/lib64/libpthreads. So. 0 (0 x00007fe472658000)


Excuse me, ladies and gentlemen, how to solve this problem, from which aspects?

CodePudding user response:

Seems to have to wait until tomorrow to work people comment,,
up

CodePudding user response:

Python to 2.6, and then modify the/usr/bin/yum
The python path,
  • Related