mysql 安装问题 mariadb-libs is obsoleted by mysql-community-libs

bash 复制代码
[root@ebs-139266 home]# rpm -ivh mysql-community-*.rpm
warning: mysql-community-client-5.7.42-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-5.7.42-1.el7.x86_64
	mariadb-libs is obsoleted by mysql-community-libs-compat-5.7.42-1.el7.x86_64
	perl(JSON) is needed by mysql-community-test-5.7.42-1.el7.x86_64
[root@ebs-139266 home]# yum remove mariadb-libs
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.68-1.el7 will be erased
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-9.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-9.el7.x86_64
--> Running transaction check
---> Package postfix.x86_64 2:2.10.1-9.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================================================
 Package                                                             Arch                                                          Version                                                                 Repository                                                    Size
==============================================================================================================================================================================================================================================================================
Removing:
 mariadb-libs                                                        x86_64                                                        1:5.5.68-1.el7                                                          @base                                                        4.4 M
Removing for dependencies:
 postfix                                                             x86_64                                                        2:2.10.1-9.el7                                                          @base                                                         12 M

Transaction Summary
==============================================================================================================================================================================================================================================================================
Remove  1 Package (+1 Dependent package)

Installed size: 17 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : 2:postfix-2.10.1-9.el7.x86_64                                                                                                                                                                                                                              1/2 
  Erasing    : 1:mariadb-libs-5.5.68-1.el7.x86_64                                                                                                                                                                                                                         2/2 
  Verifying  : 1:mariadb-libs-5.5.68-1.el7.x86_64                                                                                                                                                                                                                         1/2 
  Verifying  : 2:postfix-2.10.1-9.el7.x86_64                                                                                                                                                                                                                              2/2 

Removed:
  mariadb-libs.x86_64 1:5.5.68-1.el7                                                                                                                                                                                                                                          

Dependency Removed:
  postfix.x86_64 2:2.10.1-9.el7                                                                                                                                                                                                                                               

Complete!

卸载原来的 yum remove mariadb-libs 重新安装

相关推荐
左直拳15 小时前
mysql分区表自动归档
mysql·分区表·分区表归档
haven-85215 小时前
MySQL事务ACID、隔离级别、MVCC、幻读解决
数据库·mysql
加加and减减17 小时前
Docker真实安装mysql8教程并优化配置
运维·mysql·docker·容器
程序猿乐锅17 小时前
【MySQL | 第九篇】MySQL 存储过程
数据库·mysql
王小王-12318 小时前
基于深度学习的个性化音乐推荐系统的设计与开发
人工智能·深度学习·mysql·vue·推荐算法·个性化音乐推荐系统·音乐预测
xuefuhe18 小时前
MySQL8.4 tar.xz安装
mysql
五阿哥永琪19 小时前
正则表达式
数据库·mysql·正则表达式
LaughingZhu19 小时前
Product Hunt 每日热榜 | 2026-06-13
数据库·mysql
sulikey20 小时前
数据库中等值连接与自然连接的区别。为什么不建议使用自然连接?
数据库·sql·mysql·等值连接·自然连接
周末也要写八哥21 小时前
数据库安装 | MySQL 8.0.32安装教程及网盘下载地址
数据库·mysql