yum安裝報錯“Error: xz compression not available”


在測試服務器進行docker學習,有些centos7軟件安裝上和自己的服務器不兼容所以導致yun下載軟件時報錯:Error: xz compression not available


對於報錯解決辦法:

  1. rm -fr /var/cache/yum/x86_64/6/epel/

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


重新安裝epel源和base源

wget -O/etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repohttp://mirrors.aliyun.com/repo/epel-7.repo
yum repolist


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章