阿里雲centos7安裝mysql報錯conflicts with file from package mariadb-libs

甲骨文技術支援發表於2017-11-03
作業系統環境:

  1. CentOS Linux release 7.4.1708 (Core)
具體報錯提示:

  1. [root@iZ2ze6jo3o3bqbcongnypqZ ~]# yum install mysql-community-common-5.7.17-1.el7.x86_64.rpm
  2. Loaded plugins: fastestmirror
  3. Examining mysql-community-common-5.7.17-1.el7.x86_64.rpm: mysql-community-common-5.7.17-1.el7.x86_64
  4. Marking mysql-community-common-5.7.17-1.el7.x86_64.rpm to be installed
  5. Resolving Dependencies
  6. --> Running transaction check
  7. ---> Package mysql-community-common.x86_64 0:5.7.17-1.el7 will be installed
  8. --> Finished Dependency Resolution

  9. Dependencies Resolved

  10. ==============================================================================================================================================================================================================================================================================
  11.  Package Arch Version Repository Size
  12. ==============================================================================================================================================================================================================================================================================
  13. Installing:
  14.  mysql-community-common x86_64 5.7.17-1.el7 /mysql-community-common-5.7.17-1.el7.x86_64 2.5 M

  15. Transaction Summary
  16. ==============================================================================================================================================================================================================================================================================
  17. Install 1 Package

  18. Total size: 2.5 M
  19. Installed size: 2.5 M
  20. Is this ok [y/d/N]: y
  21. Downloading packages:
  22. Running transaction check
  23. Running transaction test


  24. Transaction check error:
  25.   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
  26.   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
  27.   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
  28.   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刪除,如下:


  1. [root@iZ2ze6jo3o3bqbcongnypqZ ~]# yum -y remove mariadb-libs-5.5.56-2.el7.x86_64
  2. Loaded plugins: fastestmirror
  3. Resolving Dependencies
  4. --> Running transaction check
  5. ---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be erased
  6. --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
  7. --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
  8. --> Running transaction check
  9. ---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased
  10. --> Processing Dependency: /usr/sbin/sendmail for package: redhat-lsb-core-4.1-27.el7.centos.1.x86_64
  11. --> Restarting Dependency Resolution with new changes.
  12. --> Running transaction check
  13. ---> Package redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1 will be erased
  14. --> Finished Dependency Resolution

  15. Dependencies Resolved

  16. ==============================================================================================================================================================================================================================================================================
  17.  Package Arch Version Repository Size
  18. ==============================================================================================================================================================================================================================================================================
  19. Removing:
  20.  mariadb-libs x86_64 1:5.5.56-2.el7 @base 4.4 M
  21. Removing for dependencies:
  22.  postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M
  23.  redhat-lsb-core x86_64 4.1-27.el7.centos.1 @base 45 k

  24. Transaction Summary
  25. ==============================================================================================================================================================================================================================================================================
  26. Remove 1 Package (+2 Dependent packages)

  27. Installed size: 17 M
  28. Downloading packages:
  29. Running transaction check
  30. Running transaction test
  31. Transaction test succeeded
  32. Running transaction
  33.   Erasing : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 1/3
  34.   Erasing : 2:postfix-2.10.1-6.el7.x86_64 2/3
  35.   Erasing : 1:mariadb-libs-5.5.56-2.el7.x86_64 3/3
  36.   Verifying : 1:mariadb-libs-5.5.56-2.el7.x86_64 1/3
  37.   Verifying : 2:postfix-2.10.1-6.el7.x86_64 2/3
  38.   Verifying : redhat-lsb-core-4.1-27.el7.centos.1.x86_64 3/3

  39. Removed:
  40.   mariadb-libs.x86_64 1:5.5.56-2.el7

  41. Dependency Removed:
  42.   postfix.x86_64 2:2.10.1-6.el7 redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1

  43. Complete!




來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2146797/,如需轉載,請註明出處,否則將追究法律責任。

相關文章