操作系统环境:
-
CentOS Linux release 7.4.1708 (Core)
具体报错提示:
-
[root@iZ2ze6jo3o3bqbcongnypqZ ~]# yum install mysql-community-common-5.7.17-1.el7.x86_64.rpm
-
Loaded plugins: fastestmirror
-
Examining mysql-community-common-5.7.17-1.el7.x86_64.rpm: mysql-community-common-5.7.17-1.el7.x86_64
-
Marking mysql-community-common-5.7.17-1.el7.x86_64.rpm to be installed
-
Resolving Dependencies
-
--> Running transaction check
-
---> Package mysql-community-common.x86_64 0:5.7.17-1.el7 will be installed
-
--> Finished Dependency Resolution
-
-
Dependencies Resolved
-
-
==============================================================================================================================================================================================================================================================================
-
Package Arch Version Repository Size
-
==============================================================================================================================================================================================================================================================================
-
Installing:
-
mysql-community-common x86_64 5.7.17-1.el7 /mysql-community-common-5.7.17-1.el7.x86_64 2.5 M
-
-
Transaction Summary
-
==============================================================================================================================================================================================================================================================================
-
Install 1 Package
-
-
Total size: 2.5 M
-
Installed size: 2.5 M
-
Is this ok [y/d/N]: y
-
Downloading packages:
-
Running transaction check
-
Running transaction test
-
-
-
Transaction check error:
-
file /usr/share/mysql/czech/errmsg.sys from install of mysql-community-common-5.7.17-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
-
file /usr/share/mysql/danish/errmsg.sys from install of mysql-community-common-5.7.17-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
-
file /usr/share/mysql/dutch/errmsg.sys from install of mysql-community-common-5.7.17-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
-
file /usr/share/mysql/english/errmsg.sys from install of mysql-community-common-5.7.17-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
解决办法是把mariadb-libs-1:5.5.56-2.el7.x86_64删除,如下:
-
[root@iZ2ze6jo3o3bqbcongnypqZ ~]# yum -y remove mariadb-libs-5.5.56-2.el7.x86_64
-
Loaded plugins: fastestmirror
-
Resolving Dependencies
-
--> Running transaction check
-
---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be erased
-
--> 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: 2:postfix-2.10.1-6.el7.x86_64
-
--> Running transaction check
-
---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased
-
--> Processing Dependency: /usr/sbin/sendmail for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
-
--> Restarting Dependency Resolution with new changes.
-
--> Running transaction check
-
---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be erased
-
--> Finished Dependency Resolution
-
-
Dependencies Resolved
-
-
==============================================================================================================================================================================================================================================================================
-
Package Arch Version Repository Size
-
==============================================================================================================================================================================================================================================================================
-
Removing:
-
mariadb-libs x86_64 1:5.5.56-2.el7 @base 4.4 M
-
Removing for dependencies:
-
postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M
-
redhat-lsb-core x86_64 4.1-27.el7.centos.1 @base 45 k
-
-
Transaction Summary
-
==============================================================================================================================================================================================================================================================================
-
Remove 1 Package (+2 Dependent packages)
-
-
Installed size: 17 M
-
Downloading packages:
-
Running transaction check
-
Running transaction test
-
Transaction test succeeded
-
Running transaction
-
Erasing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 1/3
-
Erasing : 2:postfix-2.10.1-6.el7.x86_64 2/3
-
Erasing : 1:mariadb-libs-5.5.56-2.el7.x86_64 3/3
-
Verifying : 1:mariadb-libs-5.5.56-2.el7.x86_64 1/3
-
Verifying : 2:postfix-2.10.1-6.el7.x86_64 2/3
-
Verifying : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 3/3
-
-
Removed:
-
mariadb-libs.x86_64 1:5.5.56-2.el7
-
-
Dependency Removed:
-
postfix.x86_64 2:2.10.1-6.el7 redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1
-
-
Complete!
-
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/20893244/viewspace-2146797/
,如需转载,请注明出处,否则将追究法律责任。