centos7安装mysql时报错:依赖检测失败:

2023-12-13 20:07:15

项目场景:

centos7安装mysql时报错:依赖检测失败:
mariadb-libs 被 mysql-community-libs-8.0.28-1.el7.x86_64 取代


问题描述

[root@localhost mysql]# rpm -ivh mysql-community-libs-8.0.28-1.el7.x86_64.rpm 
警告:mysql-community-libs-8.0.28-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 >ID 3a79bd29: NOKEY
错误:依赖检测失败:
      mariadb-libs 被 mysql-community-libs-8.0.28-1.el7.x86_64 取代

原因分析:

mariadb没有卸载掉


解决方案:

  1. 检查是否存在 mariadb,使用此命令:rpm -qa|grep mariadb
  2. 将其强制卸载:rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64
[root@localhost mysql]# rpm -qa|grep mariadb
mariadb-libs-5.5.56-2.el7.x86_64
[root@localhost mysql]# rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64
[root@localhost mysql]# rpm -qa|grep mariadb
[root@localhost mysql]#  rpm -ivh mysql-community-common-8.0.28-1.el7.x86_64.rpm
警告:mysql-community-common-8.0.28-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
准备中...                          ################################# [100%]
        软件包 mysql-community-common-8.0.28-1.el7.x86_64 已经安装
[root@localhost mysql]#  rpm -ivh mysql-community-client-plugins-8.0.28-1.el7.x86_64.rpm 
警告:mysql-community-client-plugins-8.0.28-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
准备中...                          ################################# [100%]
        软件包 mysql-community-client-plugins-8.0.28-1.el7.x86_64 已经安装
[root@localhost mysql]# rpm -ivh mysql-community-libs-8.0.28-1.el7.x86_64.rpm 
警告:mysql-community-libs-8.0.28-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-libs-8.0.28-1.el7################################# [100%]
[root@localhost mysql]# rpm -ivh mysql-community-client-8.0.28-1.el7.x86_64.rpm 
警告:mysql-community-client-8.0.28-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:mysql-community-client-8.0.28-1.e################################# [100%]

文章来源:https://blog.csdn.net/qq_46645079/article/details/134929226
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。