在 RHEL Server 6.6 系统上通过安装软件包时yum
,出现以下错误:
$ 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
错误?
答案1
要解决此问题:
yum remove epel-release
- 重新下载
epel-release
RPM - 安装它
yum install pyliblzma
答案2
在 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
答案3
这对我有用:
yum remove epel-release
# Re-download the epel-release RPM
# Install it
yum install pyliblzma