[root@mysql-mon40 mm]# yum localinstall rrdtool-1.4.7-1.el6.rfx.x86_64.rpm -y
错误: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.: . You have an upgrade for rrdtool which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of rrdtool of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
--exclude rrdtool.otherarch ... this should give you an error
message showing the root cause of the problem. . You have multiple architectures of rrdtool installed, but
yum can only see an upgrade for one of those arcitectures.
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work. . You have duplicate versions of rrdtool installed already.
You can use "yum check" to get yum show these errors. ...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems). Protected multilib versions: rrdtool-1.3.-.el6.i686 != rrdtool-1.4.-.el6.rfx.x86_64

根据上面rrdtool-1.3.8-7.el6.i686 != rrdtool-1.4.7-1.el6.rfx.x86_64可知,系统已安装过rrdtool-1.3.8-7.el6.i686版本,将其移除后

yum remove -y rrdtool后yum check

再次执行本地安装,依然存在上述报错

按照报错提示使用--setopt=protected_multilib=false 参数(不检查多版本问题),

yum localinstall rrdtool-1.4.7-1.el6.rfx.x86_64.rpm -y --setopt=protected_multilib=false (不检查多版本问题)

[root@mysql-mon40 ~]# yum localinstall rrdtool-1.4.7-1.el6.rfx.x86_64.rpm --setopt=protected_multilib=false
已加载插件:fastestmirror, security
设置本地安装进程
诊断 rrdtool-1.4.7-1.el6.rfx.x86_64.rpm: rrdtool-1.4.7-1.el6.rfx.x86_64
rrdtool-1.4.7-1.el6.rfx.x86_64.rpm 将被安装
Loading mirror speeds from cached hostfile
* epel: mirrors.ustc.edu.cn
解决依赖关系
--> 执行事务检查
---> Package rrdtool.x86_64 0:1.4.7-1.el6.rfx will be 安装
--> 处理依赖关系 perl(RRDp),它被软件包 rrdtool-1.4.7-1.el6.rfx.x86_64 需要
--> 处理依赖关系 perl(RRDs),它被软件包 rrdtool-1.4.7-1.el6.rfx.x86_64 需要
--> 处理依赖关系 ruby,它被软件包 rrdtool-1.4.7-1.el6.rfx.x86_64 需要
--> 处理依赖关系 libdbi.so.0()(64bit),它被软件包 rrdtool-1.4.7-1.el6.rfx.x86_64 需要
--> 完成依赖关系计算
错误:Package: rrdtool-1.4.7-1.el6.rfx.x86_64 (/rrdtool-1.4.7-1.el6.rfx.x86_64)
Requires: perl(RRDs)
错误:Package: rrdtool-1.4.7-1.el6.rfx.x86_64 (/rrdtool-1.4.7-1.el6.rfx.x86_64)
Requires: ruby
错误:Package: rrdtool-1.4.7-1.el6.rfx.x86_64 (/rrdtool-1.4.7-1.el6.rfx.x86_64)
Requires: perl(RRDp)
错误:Package: rrdtool-1.4.7-1.el6.rfx.x86_64 (/rrdtool-1.4.7-1.el6.rfx.x86_64)
Requires: libdbi.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

报错仍然存在,此法不可行,不过我们可以进一步发现问题 Requires: perl(RRDs)   Requires: ruby Requires: perl(RRDp)

经由网上查询相关perl(RRDs)资料,需要将rrdtool-1.4.7-1.el6.rfx.x86_64.rpm 和 perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm放在一起执行安装

[root@mysql-mon40 mm]# yum localinstall rrdtool-1.4.7-1.el6.rfx.x86_64.rpm perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm
已加载插件:fastestmirror, security
设置本地安装进程
诊断 rrdtool-1.4.7-1.el6.rfx.x86_64.rpm: rrdtool-1.4.7-1.el6.rfx.x86_64
rrdtool-1.4.7-1.el6.rfx.x86_64.rpm 将被安装
Loading mirror speeds from cached hostfile
* epel: mirrors.ustc.edu.cn
诊断 perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm: perl-rrdtool-1.4.7-1.el6.rfx.x86_64
perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm 将被安装
解决依赖关系
--> 执行事务检查
---> Package perl-rrdtool.x86_64 0:1.4.7-1.el6.rfx will be 安装
---> Package rrdtool.x86_64 0:1.4.7-1.el6.rfx will be 安装
--> 处理依赖关系 ruby,它被软件包 rrdtool-1.4.7-1.el6.rfx.x86_64 需要
--> 处理依赖关系 libdbi.so.0()(64bit),它被软件包 rrdtool-1.4.7-1.el6.rfx.x86_64 需要
--> 完成依赖关系计算
错误:Package: rrdtool-1.4.7-1.el6.rfx.x86_64 (/rrdtool-1.4.7-1.el6.rfx.x86_64)
Requires: ruby
错误:Package: rrdtool-1.4.7-1.el6.rfx.x86_64 (/rrdtool-1.4.7-1.el6.rfx.x86_64)
Requires: libdbi.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

从上可知还缺少ruby环境

[root@mysql-mon40 mm]# yum install -y ruby

安装完成ruby环境后再次执行

[root@mysql-mon40 mm]# yum localinstall rrdtool-1.4.7-1.el6.rfx.x86_64.rpm perl-rrdtool-1.4.7-1.el6.rfx.x86_64.rpm

正在安装:
perl-rrdtool x86_64 1.4.7-1.el6.rfx /perl-rrdtool-1.4.7-1.el6.rfx.x86_64 118 k
rrdtool x86_64 1.4.7-1.el6.rfx /rrdtool-1.4.7-1.el6.rfx.x86_64 2.3 M
为依赖而安装:
libdbi x86_64 0.8.3-4.el6 centos6-iso 39 k 事务概要
===========================================================================================================================================================================
Install 3 Package(s) 总文件大小:2.4 M
总下载量:39 k
Installed size: 2.5 M
确定吗?[y/N]:y
下载软件包:
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装 : libdbi-0.8.3-4.el6.x86_64 1/3
正在安装 : perl-rrdtool-1.4.7-1.el6.rfx.x86_64 2/3
正在安装 : rrdtool-1.4.7-1.el6.rfx.x86_64 3/3
Verifying : rrdtool-1.4.7-1.el6.rfx.x86_64 1/3
Verifying : libdbi-0.8.3-4.el6.x86_64 2/3
Verifying : perl-rrdtool-1.4.7-1.el6.rfx.x86_64 3/3 已安装:
perl-rrdtool.x86_64 0:1.4.7-1.el6.rfx rrdtool.x86_64 0:1.4.7-1.el6.rfx 作为依赖被安装:
libdbi.x86_64 0:0.8.3-4.el6 完毕!

 安装完毕,大功告成!

拓展知识-----来自网络
yum check-update 检查可更新的所有软件包
yum update 下载更新系统已安装的所有软件包
yum upgrade 大规模的版本升级,与yum update不同的是,连旧的淘汰的包也升级
yum install <packages> 安装新软件包
yum update <packages> 更新指定的软件包
yum remove <packages> 卸载指定的软件包
yum groupinstall <groupnames> 安装指定软件组中的软件包
yum groupupdate <groupnames> 更新指定软件组中的软件包
yum groupremove <groupnames> 卸载指定软件组中的软件包
yum grouplist 查看系统中已经安装的和可用的软件组
yum list 列出资源库中所有可以安装或更新以及已经安装的rpm包
yum list <regex> 列出资源库中与正则表达式匹配的可以安装或更新以及已经安装的rpm包
yum list available 列出资源库中所有可以安装的rpm包
yum list available <regex> 列出资源库中与正则表达式匹配的所有可以安装的rpm包
yum list updates 列出资源库中所有可以更新的rpm包
yum list updates <regex> 列出资源库中与正则表达式匹配的所有可以更新的rpm包
yum list installed 列出资源库中所有已经安装的rpm包
yum list installed <regex> 列出资源库中与正则表达式匹配的所有已经安装的rpm包
yum list extras 列出已经安装的但是不包含在资源库中的rpm包
yum list extras <regex> 列出与正则表达式匹配的已经安装的但是不包含在资源库中的rpm包
yum list recent 列出最近被添加到资源库中的软件包
yum search <regex> 检测所有可用的软件的名称、描述、概述和已列出的维护者,查找与正则表达式匹配的值
yum provides <regex> 检测软件包中包含的文件以及软件提供的功能,查找与正则表达式匹配的值
yum clean headers 清除缓存中的rpm头文件
yum clean packages 清除缓存中rpm包文件
yum clean all 清除缓存中的rpm头文件和包文件
yum deplist <packages> 显示软件包的依赖信息
当第一次使用yum 或yum 资源库有更新时,yum 会自动下载所有所需的he ade rs放置于 /var/cache /yum 目录下,所需时间可能较长。
还可以使用 yum info 命令列出包信息,yum info 可用的参数与 yum list 的相同。
yum 命令还可以使用 -y 参数用于用 ye s 回答命令运行时所提出的问题,比如 yum -y install vsftpd,这样在安装软件的时候就不用输入yes/y了
yum 命令工具使用举例
1、升级系统
[root@localhost ~]#yum update
2、安装指定的软件包,我最喜欢用下面的命令
[root@localhost ~]# yum -y install vsftpd
3、升级指定的软件包
[root@localhost ~]# yum -y update mysql
4、卸载指定的软件包
[root@localhost ~]# yum -y remore vsftpd mysql
5、查看系统中已经安装的和可用的软件组,对于可用的软件组,你可以选择安装
[root@localhost ~]# yum grouplist
6、安装上一个命令中显示的可用的软件组中的一个软件组,神之编辑器-Emacs,大约安装了12个软件包
[root@localhost ~]# yum -y groupinstall Emacs
7、更新指定软件组中的软件包
[root@localhost ~]# yum -y groupupdate Emacs
8、卸载指定软件组中的软件包,对于Emacs,安装的时候安装了12个软件包,但是卸载的时候只卸载了4个软件包!
[root@localhost ~]# yum -y groupremove Emacs
9、清除缓存中的rpm 头文件和包文件
[root@localhost ~]# yum clean all
10、搜索相关的软件包
[root@localhost ~]# yum -y search Emacs
11、显示指定软件包的信息
[root@localhost ~]# yum info Emacs
和rpm -qi emacs显示的信息差不多,但不完全相同
12、查询指定软件包的依赖信息,emacs依赖的模块不少啊
[root@localhost ~]# yum deplist emacs
13、列出所有以 yum 开头的软件包
[root@localhost ~]# yum list yum\*
14、列出已经安装的但是不包含在资源库中的rpm 包
# yum list extras
最常用的还是第3,4命令
number of view: 225
No related posts.
启动动 yum 升级系统
第一次执行yum check-update必须花比较久的时间,因為yum必须检查伺服器上所有header资料; 完成之后,往后执行 yum check-update就会很快了。
在使用yum升级系统之前,基於系统安全性考量,yum需要所有RPM套件的GPG认证金钥,认证升级RPM套件的完整性之后,才能安全地帮您自动升级系 统,所以您必须先载入Fedora DVD安装光碟的RPM-GPG-KEY与RPM-GPG-KEY-fedora这两个GPG认证金钥档案,才能执行yum update自动升级所有RPM套件。
# yum check-update   (检查需要升级的套件)
# rpm --import RPM-GPG-KEY
# rpm --import RPM-GPG-KEY-fedora
# yum -y update    (自动升级所有RPM套件)
yum程式已经自动在系统的 /etc/cron.daily 目录中放有yum.cron,每天会定时帮您自动执行yum系统升级程式,自动检查并更新伺服器上update的新RPM套件,所有的yum执行过程也都 会记录在 /var/log/yum.log中,我们只要确定 cron、yum 的 service 有啟动,即会每天作 yum update 的动作了
#chkconfig crond on
#chkconfig yum on
yum相关的套件
Yum Extender
是一套图形介面的yum更新程式,安装后会出现在 Xwindow的应用程式/系统工具/yum延伸程式。
yum -y install yumex
Yum UpdateOnBoot
若电脑并非24小时开机,不适合作cron定时更新的主机,可设定在开机时检查是否有要更新的套件。
yum -y install yum-updateonboot
chkconfig yum-updateonboot on
yum的常用指令
更新套件
yum update [套件1] [套件2] [...] yum update
安装套件
yum install 套件1 [套件2] [...]
yum install php*
移除套件
yum remove 套件1 [套件2] [...] yum removel nmap
列出所有的套件
yum list
列出所有可以更新的套件 yum list updates
列出所有已安装的套件 yum list installed
列出所有已安装但不在 Yum Repository 内的套件 yum list extras
检查可以更新的套件 yum check-update
列出所有套件的资讯 yum info
列出所有可以更新的套件资讯 yum info updates
列出所有已安装的套件资讯 yum info installed
列出所有已安装但不在 Yum Repository 内的套件资讯 yum info extras
列出套件提供哪些档案
yum provides 套件1 [套件2] [...]
搜寻套件
yum search [参数]

  

 

yum本地安装rrdtool报错,提示版本冲突的解决办法的更多相关文章

  1. 通过本地yum源安装软件报错[Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"

    通过本地yum源安装软件报错 http://192.168.3.85/centos/6/os/x86_64/Packages/php-pdo-5.3.3-47.el6.x86_64.rpm: [Err ...

  2. Intellij里检出svn报错找不到svn解决办法

    Intellij里检出svn报错找不到,解决办法: 1. 安装svn客户端: 2. 去掉settings->version control->subversion里的use command ...

  3. electron-vue中使用iview 报错this. is readonly的解决办法

    title: electron-vue中使用iview 报错this. is readonly的解决办法 toc: false date: 2019-02-12 19:33:28 categories ...

  4. centos git clone 报错 fatal: HTTP request failed 解决办法

    git clone报错提示 git clone https://github.com/xxxx.git Initialized empty Git repository in /root/xxxx/. ...

  5. Maven 项目 无缘无故报错:版本冲突,其他机器上正常-提交的时候报冲突怎么也解决不掉

    2018年: maven突然之间报错了,显示版本冲突,但是其他的机器是好的, 使用命令:mvn compile -P dev -e; 看看测试环境有没有问题,还是有问题.而且,刚开始只是报错:erro ...

  6. 阿里云安装kubernetes-UI报错endpoints \"kubernetes-dashboard\" not found解决方法

    问题:阿里云ECS安装kube-ui v5后,访问 http://master_ip:8080/ui/跳转到http://master_ip:8080/api/v1/proxy/namespaces/ ...

  7. Android安装APK报错:Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE解决方法

    今天调试一个android应用的时候,安装报了Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE错误,代码如下: [2015-12-28 15 ...

  8. http://localhost/ 或 http://127.0.0.1/ 报错:HTTP 404 的解决办法

    一些初次接触使用 Eclipse 工具来开发 JAVA Web 工程的开发人员,可能会对 Eclipse 和 Tomcat 的绑定产生一个疑惑. 那就是 在修改了 Tomcat 的8080端口为80后 ...

  9. jmeter执行报错:java.lang.UnsupportedClassVersionError解决办法

    做个记录. 问题记录: jmeter版本:5.4.1 本地Java版本:1.8.0_151 执行jmeter,报错: 2022-10-14 12:06:27,372 ERROR o.a.j.JMete ...

随机推荐

  1. MongoDB netcore

    mongodb.driver mongodb.driver.core url:  http://dl.mongodb.org/dl/win32/x86_64 ********************* ...

  2. python自动备份阿里云数据库binlog

    #coding:utf8from aliyunsdkcore import clientfrom aliyunsdkrds.request.v20140815 import DescribeBacku ...

  3. MySQL--用户管理 pymysql 索引

    目录 用户管理 创建mysql账户 权限管理 涉及到的表 pymysql 索引 语法 结论 用户管理 主要是为了控制权限,让不同的人只能操作只属于只记得那部分数据 创建mysql账户 账户中涉及三个数 ...

  4. 12 ARM汇编

    Android系统采用java作为平台软件基础开发语言,NDK使Android平台可以运行C/C++代码这些代码汇编成ARM的elf可执行文件. 原生程序生成过程 经历4步:1.预处理2.编译3.汇编 ...

  5. Golang Web应用 创建docker镜像笔记(win 平台)

    记录的是 本地编译好了再创建容器镜像的方法 ,这样子生成的镜像文件比较小,方便分发部署 win 平台需要设置golang交叉编译 生成linux可执行文件 CMD下: Set GOOS="l ...

  6. TensorFlow NMT的数据处理过程

    在tensorflow/nmt项目中,训练数据和推断数据的输入使用了新的Dataset API,应该是tensorflow 1.2之后引入的API,方便数据的操作.如果你还在使用老的Queue和Coo ...

  7. ML-软间隔(slack)的 SVM

    Why Slack? 为了处理异常值(outlier). 前面推导的svm形式, 是要求严格地全部分对, 基于该情况下, 在margin 的边界线 线上的点, 只能是支持向量. \(min_w \ \ ...

  8. redis的cluster(分布式or分片)

    1.创建配置文件: /data/cluster目录下创建6个redis配置 2.逐个配置 port 7001 添加: daemonize yes cluster-enabled yes cluster ...

  9. UML类图 入门 (转载)

    学习 UML的类图,主要是为了学习设计模式方便,也便于自己看别人代码时,用UML来整理别人的设计.所以基本的学习工具还是必须掌握. 参考: https://blog.csdn.net/qq_35495 ...

  10. 浏览器渲染html的过程

    关于浏览器如何渲染html界面一直不太清晰,所以现在理一理.由于本身对前深入的东西不太清晰,这篇博客更多的是在记录. 参考:https://www.cnblogs.com/dojo-lzz/p/398 ...