yum本地安装rrdtool报错,提示版本冲突的解决办法
[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报错,提示版本冲突的解决办法的更多相关文章
- 通过本地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 ...
- Intellij里检出svn报错找不到svn解决办法
Intellij里检出svn报错找不到,解决办法: 1. 安装svn客户端: 2. 去掉settings->version control->subversion里的use command ...
- electron-vue中使用iview 报错this. is readonly的解决办法
title: electron-vue中使用iview 报错this. is readonly的解决办法 toc: false date: 2019-02-12 19:33:28 categories ...
- centos git clone 报错 fatal: HTTP request failed 解决办法
git clone报错提示 git clone https://github.com/xxxx.git Initialized empty Git repository in /root/xxxx/. ...
- Maven 项目 无缘无故报错:版本冲突,其他机器上正常-提交的时候报冲突怎么也解决不掉
2018年: maven突然之间报错了,显示版本冲突,但是其他的机器是好的, 使用命令:mvn compile -P dev -e; 看看测试环境有没有问题,还是有问题.而且,刚开始只是报错:erro ...
- 阿里云安装kubernetes-UI报错endpoints \"kubernetes-dashboard\" not found解决方法
问题:阿里云ECS安装kube-ui v5后,访问 http://master_ip:8080/ui/跳转到http://master_ip:8080/api/v1/proxy/namespaces/ ...
- Android安装APK报错:Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE解决方法
今天调试一个android应用的时候,安装报了Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE错误,代码如下: [2015-12-28 15 ...
- http://localhost/ 或 http://127.0.0.1/ 报错:HTTP 404 的解决办法
一些初次接触使用 Eclipse 工具来开发 JAVA Web 工程的开发人员,可能会对 Eclipse 和 Tomcat 的绑定产生一个疑惑. 那就是 在修改了 Tomcat 的8080端口为80后 ...
- 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 ...
随机推荐
- Socket心跳机制-JS+PHP实现
本文是我在实际工作中用到的Socket通信,关于心跳机制的维护方式,特意总结了一下,希望对朋友们有所帮助. Socket应用:首先Socket 封装了tcp协议的,通过长连接的方式来与服务器通信,是由 ...
- Django---FORM组件.FORM组件的字段,FORM组件校验流程,FORM组件的全局和局部钩子,FORM和Model的组合
Django---FORM组件.FORM组件的字段,FORM组件校验流程,FORM组件的全局和局部钩子,FORM和Model的组合 一丶FORM的介绍 1.生成页面可用的HTML标签 2.对用户提交的 ...
- 【转载】C#手动往DataTable中末尾新增一行数据
在C#中的Datatable数据变量的操作过程中,需要手动往DataTable变量的末尾新增一行数据,例如一个实际的例子,我们做数据报表,在最后一行可能需要新增一行DataRow数据作为一个汇总记录, ...
- 微信分享接口的java开发的一些小步骤
1.配置接口信息进行验证 代码如下: /** * 访问没认证的地址跳转 * * @param request * @return 登录页面 * @throws ...
- echart绘制GDP数据
{% extends "base.html" %} {% block self_head_css_js %} {% endblock %} {% block main_conten ...
- MySQL安装和使用
1.MySQL安装: 1).到MySQL官网https://dev.mysql.com/downloads/installer/,下载MySQL 5.7版本:(注:现在官网上最新版本已经变成8.0.1 ...
- .Net Core 2.2 发布IIS遇到的那些坑
这两天在研究.Net Core 发布iis总结一下. 我主要是参照官方文档: https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/ ...
- Django 之 CBV
Django 中有两种编写方式,FBV 和 CBV,那么什么是 FBV,CBV 又是什么呢? 一.什么是 CBV FBV(function base views) 就是在视图里使用函数处理请求(常见) ...
- [FreeRTOS].FreeRTOS CortexM3 M4中断优先级设置总结
转自:https://blog.csdn.net/xukai871105/article/details/53516857 前言本文将说明在FreeRTOS嵌入式操作系统中,如何设置STM32 Cor ...
- 网站 & APP 安利
https://sitoi.cn/posts/51270.html APP 影视类 影视大院 地址:https://www.vfans.fun 描述:没有上架应用商店,需要安装信任企业证书,VIP资源 ...