yum search/intall, Error: xz compression not available
转自:http://blog.hexu.org/archives/2060.shtml
遇到这个问题情景:
下午第一台系统是Centos7, 安装配置完成后,接着一台是Centos 6 系统,由于疏忽直接下载并安装了 “epel-release-7-5.noarch.rpm”,安装时提示了问题,于是下载安装“epel-release- 6-8.noarch.rpm” ,安装成功后发现遇到 问题了”Error: xz compression not available”。
遇到问题的原因:
epel-release-75.noarch.rpm 进了cache目录
如何解决这个问题:
需要手动进行清理 cache, 然后重新remove当前的 epel-relase, 最后重装一下正常的“epel-release-6-8.noarch.rpm”即可。
所有操作如下:
#系统是Centos 6.6, 这里错误了安装 epel
[root@ip-127-0-0-1 softs] rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm #使用 yum search munin 时提示了错误信息
[root@ip-127-0-0-1 softs] yum search munin
Loaded plugins: amazon-id, rhui-lb, security
Error: xz compression not available # 开始解决Error, remove 错误的epel
[root@ip-127-0-0-1 softs] yum remove epel-release
Loaded plugins: amazon-id, rhui-lb, security
Setting up Remove Process
Resolving Dependencies
.....
# 中间提示时 输入 y (yes)
Installed size: 22 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Erasing : epel-release-7-5.noarch 1/1
Verifying : epel-release-7-5.noarch 1/1
Removed:
epel-release.noarch 0:7-5
Complete! # 清理epel 缓存
[root@ip-127-0-0-1 softs]# rm -rf /var/cache/yum/x86_64/6Server/epel/ # 重新安装正确的epel
[root@ip-127-0-0-1 softs]# rpm -ivh epel-release-6-8.noarch.rpm # 再次确认,成功完成
[root@ip-127-0-0-1 softs]# yum search munin
Loaded plugins: amazon-id, rhui-lb, security
epel/metalink | 13 kB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.7 MB 00:00
epel/pkgtags | 1.6 MB 00:00
========================= N/S Matched: munin ===============
PyMunin.noarch : Python Module for developing Munin Multigraph Monitoring Plugins
munin-java-plugins.noarch : java-plugins for munin
munin-ruby-plugins.noarch : ruby-plugins for munin
unbound-munin.noarch : Plugin for the munin / munin-node monitoring package
munin.noarch : Network-wide graphing framework (grapher/gatherer)
munin-async.noarch : Network-wide graphing framework (asynchronous client tools)
munin-cgi.noarch : Network-wide graphing framework (cgi files for apache)
munin-common.noarch : Network-wide graphing framework (common files)
munin-netip-plugins.noarch : Network-wide graphing framework (dhcpd3 and ntp plugins)
munin-nginx.noarch : Network-wide graphing framework (cgi files for nginx)
munin-node.noarch : Network-wide graphing framework (node) Name and summary matches only, use "search all" for everything.
yum search/intall, Error: xz compression not available的更多相关文章
- yum报错:Error: xz compression not available
测试服务器(centos6.5)经过一段时间的折腾,有一天在上面进行yum操作时突然出现下面的报错: Error: xz compression not available 最后经过一番排查,发现原因 ...
- 解决yum命令时出现Error: xz compression not available
由于CentOS6的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compression not available问题. ...
- 由于CentOS的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compression not available问题
由于CentOS6的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compression not available问题.解 ...
- Linux yum操作时出现Error: xz compression not available
yum升级PHP版本的时候出现这个问题 由于CentOS6的系统安装了epel-release-latest-7.noarch.rpm 导致在使用yum命令时出现Error: xz compressi ...
- Error: xz compression not available解决办法
centos6升级php时误安装: rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm -Uvh https://mir ...
- 运行yum报错Error: Cannot retrieve metalink for reposit
http://www.netpc.com.cn/593.html 运行yum报错Error: Cannot retrieve metalink for reposit 今天给Centos通过rpm - ...
- 转:运行yum报错Error: Cannot retrieve metalink for reposit
http://www.netpc.com.cn/593.html 运行yum报错Error: Cannot retrieve metalink for repository: epel. Please ...
- 最小化安装CentOS7,没有ifconfig命令---yum search command_name搜索未知包名
新安装的CentOS7系统,想查询ip的时候,发现没有ifconfig这个命令: -bash: ifconfig: 未找到命令 yum安装: 没有可用软件包 ifconfig 既然知道命令,搜索一下命 ...
- CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf
先试试yum install gcc , 1,下载最新的yum-3.2.28.tar.gz并解压 #wget http://yum.baseurl.org/download/3.2/yum-3.2. ...
随机推荐
- 工作了3年的JAVA程序员应该具备什么技能?(转)
工作了3年的JAVA程序员应该具备什么技能? 因为和同事有约定再加上LZ自己也喜欢做完一件事之后进行总结,因此有了这篇文章.这篇文章大部分内容都是面向整个程序员群体的,当然因为LZ本身是做Java开发 ...
- Linux基本命令 压缩命令
1.压缩命令 ================================================================================== 命令名称:gzip ...
- 快乐学习 Ionic Framework+PhoneGap 手册1-2{介绍Header,Content,Footer的使用}
*先运行第一个简单的APP,介绍Header,Content,Footer的使用 {2.1}运行一个简单的APP,效果如下 {2.2}Header代码 <ion-header-bar class ...
- 我到 vim 配置文件---------修改从---http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html
""""""""""""""""&quo ...
- juniper ssg 常用命令
netscreen juniper ssg操作命令 2013年4月10日 命令行下取得配置信息 get config 命令行下取得相应时间设置 get clock set vrout ...
- thinkphp 多表事务处理
try{ $this->user = D('User'); $this->user->startTrans(); //开始事务 $res = $this->user->S ...
- Oralce查询后修改数据,弹窗报提示these query result are not updateable,include the ROWID to get updateable
select t.*, (select a.ANNEXNAME from base_annex a where a.id = t.closeFile) closeFileName, (select a ...
- hdoj1012--u Calculate e
Problem Description A simple mathematical formula for e is where n is allowed to go to infinity. Thi ...
- Eclipse下使用Maven建立简单Springboot程序
1.创建Maven工程 2.编写pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=&q ...
- The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files
要解决的话,方法有两个 1)可以选用较低版本的sdk,比如我就用回1.6版本的sdk window->preferences->Java->Installed JREs->Ad ...