RHEL6 +错误:xz压缩不可用


8

通过yum在RHEL Server 6.6系统上安装软件包时,出现以下错误:

$ sudo yum install foo
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Error: xz compression not available

搜索引擎搜索表明该pyliblzma软件包丢失。

我无法通过安装此文件,sudo yum install pyliblzma因为遇到相同的xz compression not available错误。

相反,我下载了RPM归档文件,并通过rpm以下方式进行了安装:

$ wget http://download.fedoraproject.org/pub/epel/6/SRPMS/pyliblzma-0.5.3-3.el6.src.rpm
$ sudo rpm -ivh pyliblzma-0.5.3-3.el6.src.rpm

它似乎尚未成功安装;以下没有结果:

$ rpm -qa | grep pyliblzma

我应该怎么做才能正确安装pyliblzma和修复xz compression not available错误?


安装了xz的狡猾版本(即EPEL版本而不是RHEL版本)?
史蒂夫

你是否尝试过yum clean all,然后rpmdb -v --rebuilddb,再尝试运行yum install foo?顺便说一句,我看到您已经安装了源rpm,我不确定这是否有用。
Soumyadip DM 2015年

正如@SoumyadipDM所提到的,您安装了一个源软件包src.rpm,其中包含源代码和.spec文件以构建二进制rpm。您应该下载的是download.fedoraproject.org/pub/epel/6/x86_64/…除此之外,yum clean all否则rpm --rebuilddb将无济于事。知道您最终如何解决此问题将会很有趣...
doktor5000

Answers:



3

在CentOS 6.X上为我工作

sudo rpm -e epel-release-7-5.noarch

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

sudo rpm -ivh epel-release-6-8.noarch.rpm

sudo yum clean all

sudo rpmdb -v --rebuilddb

sudo yum -y install libselinux-python

0

这为我工作:

yum remove epel-release
# Re-download the epel-release RPM
# Install it
yum install pyliblzma
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.