关于Error: xz compression not available

来源:互联网 发布:2016免费翻墙软件 编辑:程序博客网 时间:2024/06/04 18:04

今天在安装插件时遇到了这个错误,经网上查阅资料:https://www.centos.org/forums/viewtopic.php?t=46326

找到原因是安装软件时错误安装了CENTOS 7版本的软件导致yum不可用。


附上原文:Your "fix" removes the repository entirely. The correct fix is to remove the cached files for epel under /var/cache/yum/epel and to uninstall the EPEL *7* version of the rpm which is designed to install on CentOS/RHEL7 not on CentOS 6.


解决方法:

 gedit /root/install.log

查看安装日志,找出版本不兼容软件,卸载之即可。


注:如因为安装EPEL导致此类问题,请在安装后输入:

rm -rf /etc/yum.repos.d/epel*



0 0
原创粉丝点击