MySQL 종속성 충돌

MySQL 종속성 충돌

Cloudera 서버와 에이전트를 성공적으로 설치했지만 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

관련 정보