【CentOS6 CentOS7】YUM安装任何软件 报错:ERROR: XZ COMPRESSION NOT AVAILABLE

使用yum安装任何软件均提示错误

YUM错误:ERROR: XZ COMPRESSION NOT AVAILABLE


解决方案:

[root@centos7 ~]# yum remove epel-release
[root@centos7 ~]# rm -rf /var/cache/yum/x86_64/6/epel/
[root@centos7 ~]# yum clean all


然后执行yum操作:成功~

[root@centos7 ~]# yum install lrzsz
Loaded plugins: aliases, fastestmirror, protectbase
Loading mirror speeds from cached hostfile
 * base: mirrors.cn99.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
0 packages excluded due to repository protections
Resolving Dependencies
--> Running transaction check
---> Package lrzsz.x86_64 0:0.12.20-36.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================

猜你喜欢

转载自blog.csdn.net/weixin_42350212/article/details/107953535
今日推荐