安装percona-xtrabackup-24报错: file /etc/my.cnf from install of Percona-Server-shared-56-5.6.48-rel88.解决

77 篇文章 15 订阅
27 篇文章 0 订阅

报错信息:

...
Transaction check error:
  file /etc/my.cnf from install of Percona-Server-shared-56-5.6.48-rel88.0.1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.30-1.el7.x86_64

错误概要
-------------

安装过程:

[root@test2 ~]# yum -y install https://repo.percona.com/yum/percona-release-latest.noarch.rpm    //安装percona Yum源
...
已安装:
  percona-release.noarch 0:1.0-21

完毕!

[root@test2 ~]# yum list | grep percona     //搜索percona各软件包版本
...
percona-release.noarch                   1.0-21                        installed
percona-xtrabackup-24.x86_64             2.4.5-1.el7                   installed
Percona-Server-55-debuginfo.x86_64       5.5.62-rel38.14.el7           percona-release-x86_64
Percona-Server-56-debuginfo.x86_64       5.6.48-rel88.0.1.el7          percona-release-x86_64
Percona-Server-57-debuginfo.x86_64       5.7.30-33.1.el7               percona-release-x86_64
Percona-Server-80-info.x86_64            8.0-1.el7                     percona-release-x86_64
Percona-Server-MongoDB.x86_64            3.0.15-1.10.el7               percona-release-x86_64
Percona-Server-MongoDB-32.x86_64         3.2.22-3.13.el7               percona-release-x86_64
                                         3.2.22-3.13.el7               percona-release-x86_64
Percona-Server-MongoDB-32-mongos.x86_64  3.2.22-3.13.el7               percona-release-x86_64
Percona-Server-MongoDB-32-server.x86_64  3.2.22-3.13.el7               percona-release-x86_64
Percona-Server-MongoDB-32-shell.x86_64   3.2.22-3.13.el7               percona-release-x86_64
Percona-Server-MongoDB-32-tools.x86_64   3.2.22-3.13.el7               percona-release-x86_64
Percona-Server-MongoDB-34.x86_64         3.4.24-3.0.el7                percona-release-x86_64
                                         3.4.24-3.0.el7                percona-release-x86_64
Percona-Server-MongoDB-34-mongos.x86_64  3.4.24-3.0.el7                percona-release-x86_64
...

[root@test2 ~]# yum -y install percona-xtrabackup-24.x86_64       //安装percona-xtrabackup-24
...
事务概要
============================================================================================================================================
安装  1 软件包 (+2 依赖软件包)

总下载量:8.3 M
安装大小:8.5 M
Downloading packages:
(1/3): perl-DBD-MySQL-4.023-6.el7.x86_64.rpm                                                                         | 140 kB  00:00:00
(2/3): percona-xtrabackup-24-2.4.20-1.el7.x86_64.rpm                                                                 | 7.6 MB  00:00:12
(3/3): Percona-Server-shared-56-5.6.48-rel88.0.1.el7.x86_64.rpm                                                      | 619 kB  00:00:22
--------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                        380 kB/s | 8.3 MB  00:00:22
Running transaction check
Running transaction test


Transaction check error:
  file /etc/my.cnf from install of Percona-Server-shared-56-5.6.48-rel88.0.1.el7.x86_64 conflicts with file from package mysql-community-server-5.7.30-1.el7.x86_64

错误概要
-------------

解决方法:

解决这个问题,需要安装mysql相关的libs-compat软件。

[root@test2 ~]# yum list | grep mysql | grep libs-compat
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
mysql-community-libs-compat.i686         5.7.30-1.el7                  mysql57-community
mysql-community-libs-compat.x86_64       5.7.30-1.el7                  mysql57-community

[root@test2 ~]# yum -y install mysql-community-libs-compat.x86_64
...
已安装:
  mysql-community-libs-compat.x86_64 0:5.7.30-1.el7

完毕!

[root@test2 ~]# yum -y install percona-xtrabackup-24.x86_64
...
已安装:
  percona-xtrabackup-24.x86_64 0:2.4.20-1.el7

作为依赖被安装:
  perl-DBD-MySQL.x86_64 0:4.023-6.el7

完毕!

 报错解决,可以看到现在已经成功安装了percona-xtrabackup-24。

↓↓↓↓↓↓

最近刚申请了个微信公众号,上面也会分享一些运维知识,大家点点发财手关注一波,感谢大家。 【原创公众号】:非著名运维 【福利】:公众号回复 “资料” 送运维自学资料大礼包哦!
在这里插入图片描述

  • 6
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

非著名运维

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值