MySQL依赖冲突

MySQL依赖冲突

我已成功安装 Cloudera Server 和 Agent,但在安装 MySQL 时遇到问题。

我已经为此安装设置了本地存储库,因为我需要离线安装。

如何解决离线安装的冲突?如果我连接到互联网,我就能成功安装 mysql。

[root@localhost repo]# yum install mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.7.16-1.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.7.16-1.el6 for package: mysql-community-server-5.7.16-1.el6.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.16-1.el6.x86_64
--> Processing Dependency: net-tools for package: mysql-community-server-5.7.16-1.el6.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.16-1.el6 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.16-1.el6.x86_64
---> Package mysql-community-common.x86_64 0:5.7.16-1.el6 will be installed
---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.44-2.el7.centos will be obsoleted
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: MySQL-python-1.2.3-11.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: MySQL-python-1.2.3-11.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
---> Package mysql-community-libs.x86_64 0:5.7.16-1.el6 will be obsoleting
--> Finished Dependency Resolution
Error: Package: MySQL-python-1.2.3-11.el7.x86_64 (@cloudera-manager)
           Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit)
           Removing: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (@anaconda)
               libmysqlclient.so.18(libmysqlclient_18)(64bit)
           Obsoleted By: mysql-community-libs-5.7.16-1.el6.x86_64 (cloudera-manager)
               Not found
Error: Package: MySQL-python-1.2.3-11.el7.x86_64 (@cloudera-manager)
           Requires: libmysqlclient.so.18()(64bit)
           Removing: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (@anaconda)
               libmysqlclient.so.18()(64bit)
           Obsoleted By: mysql-community-libs-5.7.16-1.el6.x86_64 (cloudera-manager)
              ~libmysqlclient.so.20()(64bit)
Error: Package: 2:postfix-2.10.1-6.el7.x86_64 (@anaconda)
           Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit)
           Removing: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (@anaconda)
               libmysqlclient.so.18(libmysqlclient_18)(64bit)
           Obsoleted By: mysql-community-libs-5.7.16-1.el6.x86_64 (cloudera-manager)
               Not found
Error: Package: 2:postfix-2.10.1-6.el7.x86_64 (@anaconda)
           Requires: libmysqlclient.so.18()(64bit)
           Removing: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64 (@anaconda)
               libmysqlclient.so.18()(64bit)
           Obsoleted By: mysql-community-libs-5.7.16-1.el6.x86_64 (cloudera-manager)
              ~libmysqlclient.so.20()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

答案1

我在启动 AWS RHEL 实例时遇到了同样的问题。

MariaDB是默认安装的,它会导致一些冲突。
如果您只想使用 MySQL,只需通过以下方式删除 MariaDB:

sudo yum remove mariadb-libs-5.5.44-2.el7.centos.x86_64

相关内容