前言
先试试通用的方法
分情况解决的话!
情况1:
情况2:
情况3:
情况4:
情况5:
情况6:
情况7:
总结
前言安装的时候,出现#######100%就是安装成功了,命令行检验是否安装成功rpm -qa | grep mysql 如果你成功安装了两个rpm包就会出现两行MySQL-commnity-巴拉巴拉 ,显示出你安装上的
咱安装失败的话就是说
先试试通用的方法(假设这里是中间段值含有-client-plugins的rpm包没有安装上)
解决办法1,卸载mariadb -client-plugins并再次安装失败的rpm包
rpm -e mariadb-client-plugins --nodeps
解决办法2,最后面加--nodeps --force,忽略依赖安装
rpm -ivh mysql-community-client-plugins-8.0.29巴拉巴拉 --nodeps --force
分情况解决的话!
情况1:
[root@192 mysql]# rpm -ivh mysql-community-embedded-compat-8.0.25-1.el7.x86_64.rpm
warning: mysql-community-embedded-compat-8.0.25-1.el7.x86_64.rpm: Header V3 DSA/SHA256 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
libnuma.so.1()(64bit) is needed by mysql-community-embedded-compat-8.0.25-1.el7.x86_64
libnuma.so.1(libnuma_1.1)(64bit) is needed by mysql-community-embedded-compat-8.0.25-1.el7.x86_64
libnuma.so.1(libnuma_1.2)(64bit) is needed by mysql-community-embedded-compat-8.0.25-1.el7.x86_64
解决办法:
yum -y install numactl
情况2:
[root@192 mysql]# rpm -ivh mysql-community-devel-8.0.25-1.el7.x86_64.rpm
warning: mysql-community-devel-8.0.25-1.el7.x86_64.rpm: Header V3 DSA/SHA256 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
pkgconfig(openssl) is needed by mysql-community-devel-8.0.25-1.el7.x86_64
解决办法
yum install openssl-devel
情况3:
错误提示说缺少依赖包libaio
解决办法
yum -y install libaio
再次安装刚才安装失败的rpm包
情况4:安装mysql-community-libs-8.0.29的rpm包时,提示错误检测失败,mariadb-libs被mysql-community-libs-8.0.29取代
解决办法
yum remove mysql-libs
再次安装这个包
情况5:[root@localhost opt]# rpm -ivh mysql-community-libs-8.0.25-1.el7.x86_64.rpm
warning: mysql-community-libs-8.0.25-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mariadb-libs is obsoleted by mysql-community-libs-8.0.25-1.el7.x86_64
解决办法
yum -y remove mariadb-libs
情况6:
[root@localhost opt]# rpm -ivh mysql-community-server-8.0.25-1.el7.x86_64.rpm
warning: mysql-community-server-8.0.25-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
/usr/bin/perl is needed by mysql-community-server-8.0.25-1.el7.x86_64
perl(Getopt::Long) is needed by mysql-community-server-8.0.25-1.el7.x86_64
perl(strict) is needed by mysql-community-server-8.0.25-1.el7.x86_64
解决办法
yum install -y perl-Module-Install.noarch
yum install -y perl
情况7:
[root@jiwei_test01 mysql]# rpm -ivh mysql-community-server-8.0.29-1.el8.x86_64.rpm
警告:mysql-community-server-8.0.29-1.el8.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
错误:依赖检测失败:
mysql-community-icu-data-files = 8.0.29-1.el8 被 mysql-community-server-8.0.29-1.el8.x86_64 需要
mariadb-connector-c-config 被 mysql-community-server-8.0.29-1.el8.x86_64 取代
解决办法
好的兄弟们,这里有两条错误,咱们先看第一个,解决什么什么被什么什么需要,咱们就是说先看看有没有icu-data什么什么的东西
ls -l mysql-community-icu-data-file*
然后回车走你,我这里出现了一串红字mysql-community-icu-data-files-8.0.29-1.el8.x86_64.rpm
也就是说我有这个呢,那我现在把它安装一下就行了,如果你没有的话,就要去官网下载一下这个包辽
rpm -ivh mysql-community-icu-data-files-8.0.29-1.el8.x86_64.rpm
然后我想继续安装这个安装失败的server的rpm包,于是我输入
rpm -ivh mysql-community-server-8.0.29-1.el8.x86_64.rpm
然后我收到的提示是这样的
警告:mysql-community-server-8.0.29-1.el8.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
错误:依赖检测失败:
mariadb-connector-c-config 被 mysql-community-server-8.0.29-1.el8.x86_64 取代
很好那个问题已经被解决了,现在剩下一个什么什么被什么什么取代的问题,咱们直接让前面这个东西走你就行了
yum remove mariadb-connector-c-config
然后会弹出来一堆东西,但是别害怕,坚定一点,咱直接一个大大的yes,输入
Y
okk ,再次安装失败的server啥啥的rpm包
rpm -ivh mysql-community-server-8.0.29-1.el8.x86_64.rpm
出现三个#########%,咱就是已经安装大成功了,一整个成功的大动作,想检查一下咋说,那咱们就
rpm -qa|grep mysql
总结
到此这篇关于安装rpm包时提示错误:依赖检测失败解决的文章就介绍到这了,更多相关安装rpm包报错依赖检测失败内容请搜索软件开发网以前的文章或继续浏览下面的相关文章希望大家以后多多支持软件开发网!