Error: xz compression not available的解决办法
2018-01-05 15:25
459 查看
问题:
在CentOS 6.5上安装PHP7的时候,报错"Error: xz compression not available".通过搜索资料,得知是epel-release版本安装错了,CentOS 6.5装epel-release-7版本会导致这个错误。
解决方法:
于是,通过以下三步,把7版本的epel删除再装上适合的epel6版本:
1.yum remove epel-release
2.rm -rf /var/cache/yum/x86_64/6/epel/*
3.rpm -Uvh http://mirrors.ustc.edu.cn/epel/epel-release-latest-6.noarch.rpm
4.rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
再次执行安装命令安装php7,发现仍然提示此错误。在网上查找的解决方法大都同上,反复操作多次后问题都没有得到有效的解决。
后,认真看错误提示,内容是“xz 压缩不可用”,xz是一个压缩工具,而我的系统是最小化安装的,应该是没有安装这个工具。
接下来执行以下步骤安装xz:
yum clean all (清空epel的安装)
yum -y install xz
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
再执行yum install -y php7……成功!
在CentOS 6.5上安装PHP7的时候,报错"Error: xz compression not available".通过搜索资料,得知是epel-release版本安装错了,CentOS 6.5装epel-release-7版本会导致这个错误。
解决方法:
于是,通过以下三步,把7版本的epel删除再装上适合的epel6版本:
1.yum remove epel-release
2.rm -rf /var/cache/yum/x86_64/6/epel/*
3.rpm -Uvh http://mirrors.ustc.edu.cn/epel/epel-release-latest-6.noarch.rpm
4.rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
再次执行安装命令安装php7,发现仍然提示此错误。在网上查找的解决方法大都同上,反复操作多次后问题都没有得到有效的解决。
后,认真看错误提示,内容是“xz 压缩不可用”,xz是一个压缩工具,而我的系统是最小化安装的,应该是没有安装这个工具。
接下来执行以下步骤安装xz:
yum clean all (清空epel的安装)
yum -y install xz
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
再执行yum install -y php7……成功!
相关文章推荐
- Error: xz compression not available解决办法
- 解决CentOS6.5的yum命令时出现Error: xz compression not available
- 解决yum命令时出现Error: xz compression not available
- Linux yum操作时出现Error: xz compression not available
- CenOS 6.* Error: xz compression not available 问题
- yum.Errors.MiscError: xz compression not available
- Linux出现Error: xz compression not available
- yum安装报错“Error: xz compression not available”
- 由于CentOS的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compression not available问题。
- 解决python安装Twisted CompressionError: bz2 module is not available
- 关于Error: xz compression not available
- yum search/intall, Error: xz compression not available
- Linux yum操作时出现Error: xz compression not available
- archive validationg failed with errors error description not available 上传不成功包解决办法 那么问题来了
- Error: xz compression not available
- Linux yum操作时出现Error: xz compression not available
- Linux yum操作时出现 Error: xz compression not available
- yum安装报错“Error: xz compression not available”
- 关于yum安装时报Error: xz compression not available
- SAP BPC Automation error 及File not found错误解决办法