Linux_Centos7在安装Mysql常见错误依赖时失败——warning: mysql-community-libs-8.0.28-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY

error: Failed dependencies:

mariadb-libs is obsoleted by mysql-community-libs-8.0.28-1.el7.x86_64

MySql安装问题

问题一:Centos7在安装Mysql依赖(libs)或客户端(client)时失败

解决方案

问题二:Centos7在安装Mysql服务器(server)时失败

解决方案

问题一:Centos7在安装Mysql依赖(libs)或客户端(client)时失败

warning: mysql-community-libs-8.0.28-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
	mariadb-libs is obsoleted by mysql-community-libs-8.0.28-1.el7.x86_64

在这里插入图片描述

解决方案
  • 先卸载mysql-libs
  • 再执行安装
# 先卸载mysql-libs
yum remove mysql-libs
# 再执行安装
rpm -ivh mysql-community-libs-8.0.28-1.el7.x86_64.rpm

问题二:Centos7在安装Mysql服务器(server)时失败

warning: mysql-community-server-8.0.28-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
	mysql-community-icu-data-files = 8.0.28-1.el7 is needed by mysql-community-server-8.0.28-1.el7.x86_64

在这里插入图片描述

解决方案

解决的方法就是在rpm 语句后面加上 --nodeps --force,安装时忽略依赖关系

# 在rpm -ivh mysql-community-server-8.0.28-1.el7.x86_64.rpm 添加参数--force --nodeps
rpm -ivh mysql-community-server-8.0.28-1.el7.x86_64.rpm --force --nodeps
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐