CentOS 7:yum 无法导入所需的 Python 模块 liblzma

CentOS 7:yum 无法导入所需的 Python 模块 liblzma

我正在访问一台装有 CentOS Linux 7.9.2009、Python 2.7.5 和 GCC 10.3.0 的机器(python2 不是我的选择)。我尝试通过 yum 命令安装 rpm,但收到以下错误消息:

[cevangel@lxplus760 ~]$ yum install https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-3-2.src.rpm
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /cvmfs/cms.cern.ch/el8_amd64_gcc10/cms/cmssw-patch/CMSSW_12_5_2_patch1/external/el8_amd64_gcc10/lib/liblzma.so.5: version `XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3)

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 28 2022, 15:30:04) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]

每次我使用 yum 命令时都会遇到同样的错误,因此我无法安装 xz 模块。

我将不胜感激任何帮助。

相关内容