您的位置:首页 > 运维架构 > Linux

解决CentOS6.5的yum命令时出现Error: xz compression not available

2017-04-26 20:43 731 查看
1.问题的提出:

因为最近要捣鼓论坛的事情,所以使用了CentOS6.5系统,但是今天在使用yum安装东西的时候总是提示如下的出错信息:

[root@blog blog]# yum install wget

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.sohu.com

* epel: mirror.premi.st

* extras: mirrors.sohu.com

* updates: mirrors.sohu.com

* webtatic: sp.repo.webtatic.com

Error: xz compression not available

上网搜了下解决方案了,找到如下的解决方案:

1.到http://ftp.riken.jp/Linux/fedora/epel/下载epel-release-latest-6.noarch.rpm

2.卸载epel-release-latest-7.noarch.rpm:yum remove epel-release

3.清空epel目录:rm -rf /var/cache/yum/x86_64/6/epel/

4.安装epel6:rpm -ivh epel-release-latest-6.noarch.rpm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: