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 ...
随机推荐
- webpack等bundler是如何工作的-简化版本
webpack- why and how 首先不要被webpack做的复杂花哨的工作所迷惑,到底webpack是个啥?一句话,webpack是一个module bundler(模块打包器).多一句话, ...
- StarGAN学习笔记
11 December 2019 20:32 来自 <https://zhuanlan.zhihu.com/p/44563641> StarGAN StarGAN是CVPR2018 ...
- English--七种句子成分概述
English|七种句子成分概述 现代英语的语法是非常严谨的,英语句子的成分与汉语的句子成分有很大的区别.所以在学习语法的开始,需要上文讲到的句型作为骨架支撑,还需要明白句子的成分是什么,以及个各自的 ...
- HTML5中重新定义的 b 和 i 元素
HTML5强调元素的语义,而非表现.b和i元素是早期HTML遗留下来的产物,它们分别用于将文本变为粗体和斜体(那时CSS还未出现). 当时的规范建议编码人员用strong替代b,用em替代i.不过,事 ...
- Java 之 异常基础
一.异常概念 异常:指的是程序在执行过程中,出现的非正常的情况,最终会导致 JVM 的非正常停止. 在 Java 等面向对象的编程语言中,异常本身就是一个类,产生异常就是创建异常对象并抛出了一个异常对 ...
- Java 获取网络重定向URL(302重定向)
方法1: import java.net.HttpURLConnection; import java.net.URL; import org.junit.Assert; import org.jun ...
- 快速了解MongoDB
简介 MongoDB是一款为广泛的现代应用程序设计的高性能.可扩展.分布式数据库系统.MongoDB可用于不同规模大小的组织,为那些对系统低延迟.高吞吐量以及可持续性有很高要求的应用提供稳定关键的服务 ...
- 国内不fq安装K8S二: 安装kubernet
目录 2 安装kubelet 2.1 环境准备 2.2 设置国内的源 2.3 重要的设置 2.4 获取镜像 2.5 使用kubeadm init初始化集群 2.6 安装Pod Network 2.7 ...
- ELK快速入门(五)配置nginx代理kibana
ELK快速入门五-配置nginx代理kibana 由于kibana界面默认没有安全认证界面,为了保证安全,通过nginx进行代理并设置访问认证. 配置kibana [root@linux-elk1 ~ ...
- mysql查看表的属性 mysql将查询结果给临时变量
查看所有的表show table status ; 查看具体的某张表show table status from xxdb like 'tm_properties' ; 查看具体的字段的意思 sele ...