Postfix 无法在 MySQL 5.7 中安装

Postfix 无法在 MySQL 5.7 中安装

我正在尝试在我的服务器上安装 postfix

Centos7 MySQL 5.7

不幸的是,它们似乎不兼容。为什么?

这是错误信息。有办法解决这个问题吗?

[root@doc ~]# yum --enablerepo=remi install postfix
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.sonn.com
 * epel: mirror.nus.edu.sg
 * extras: centos.sonn.com
 * remi: mirrors.thzhost.com
 * updates: centos.sonn.com
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.10.1-6.el7 will be installed
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Running transaction check
---> Package MariaDB-shared.x86_64 0:10.0.17-1.el7.centos will be installed
--> Processing Dependency: MariaDB-common for package: MariaDB-shared-10.0.17-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-common.x86_64 0:10.0.17-1.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================================
 Package                                          Arch                                     Version                                                   Repository                                 Size
=====================================================================================================================================================================================================
Installing:
 postfix                                          x86_64                                   2:2.10.1-6.el7                                            base                                      2.4 M
Installing for dependencies:
 MariaDB-common                                   x86_64                                   10.0.17-1.el7.centos                                      mariadb                                    23 k
 MariaDB-shared                                   x86_64                                   10.0.17-1.el7.centos                                      mariadb                                   1.2 M

Transaction Summary
=====================================================================================================================================================================================================
Install  1 Package (+2 Dependent packages)

Total size: 3.7 M
Installed size: 13 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  file /usr/share/mysql/charsets/Index.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/armscii8.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/ascii.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/cp1250.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/cp1256.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/cp1257.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/cp850.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/cp852.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/cp866.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/dec8.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/geostd8.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/greek.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/hebrew.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/hp8.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/keybcs2.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/koi8r.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/koi8u.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/latin1.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/latin2.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/latin5.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/latin7.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/macce.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/macroman.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /usr/share/mysql/charsets/swe7.xml from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.6-0.3.m16.el6.x86_64
  file /etc/my.cnf from install of MariaDB-common-10.0.17-1.el7.centos.x86_64 conflicts with file from package mysql-community-server-5.7.6-0.3.m16.el6.x86_64

Error Summary
-------------

答案1

您已为系统配置了 MySQL 5.7 和 MariaDB 10.0 的存储库。这行不通;这些包不能在同一系统上并行运行。您需要选择其中一个。

显然,由于 CentOS 已经希望使用 MariaDB,并且出于各种其他原因,您可能应该选择 MariaDB 而不是 MySQL。

相关内容