阿里云centos7安装mysql报错conflicts with file from package mariadb-libs

操作系统环境:

  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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20893244/viewspace-2146797/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值