[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. 用这个模型去理解CPU?

  2. 无法打开内核设备:\\Global\\vmx86

    关于如题目的问题,网上有好几个解决办法,这里只介绍最方便的一个办法,利用脚本来解决 @Echo Off title Hankcs's program color 8F CD %~d0 CD %~dp0 ...

  3. Python如何去实际提高工作的效率?也许这个会有用!

    4月初,班主任的某次周会议上,华华关切的问了一下:最近班主任们有什么难题吗?就是花费了你们大部分时间的工作!我们Python天团可以帮你们解决问题. 班主任大主管星星说:有.目前有一个大难题.我们每天 ...

  4. es聚合后排序

    注意: es版本至少6.1以上 语句: GET 76/sessions/_search { "size": 0, "query": { "bool&q ...

  5. prometheus学习系列七: Prometheus promQL查询语言

    Prometheus promQL查询语言 Prometheus提供了一种名为PromQL (Prometheus查询语言)的函数式查询语言,允许用户实时选择和聚合时间序列数据.表达式的结果既可以显示 ...

  6. VS2015配置Qt5

    目录 需要准备的东西 VS2015 Qt5 VS2015 Qt插件 rc.exe无法启动 基于CMake的Qt工程 reference 需要准备的东西 Visual Studio 2015 Qt5 V ...

  7. Odoo中的Widget

    转载请注明原文地址:https://www.cnblogs.com/ygj0930/p/10826144.html 一:Widget是什么 Odoo中定义了字段的显示形式,不同字段类型的字段都有其不同 ...

  8. Beta冲刺(3/7)——2019.5.24

    所属课程 软件工程1916|W(福州大学) 作业要求 Beta冲刺(3/7)--2019.5.24 团队名称 待就业六人组 1.团队信息 团队名称:待就业六人组 团队描述:同舟共济扬帆起,乘风破浪万里 ...

  9. 安装GO

    1.中文社区 下载地址   https://studygolang.com/dl    选择自己操作系统版本 2.找到适合你系统的版本下载,本人下载的是windows版本.也可以下载Source自己更 ...

  10. 31 Game-Based Learning Resources for Educators

    https://www.legendsoflearning.com/resource/31-game-based-learning-resources-for-educators/ Game base ...