码迷,mamicode.com
首页 > 其他好文 > 详细

安装percona-xtrabackup一直提示依赖冲突的一个解决办法

时间:2015-07-15 20:56:58      阅读:403      评论:0      收藏:0      [点我收藏+]

标签:

我的Mysql是5.6版本,通过自己下载的rpm包执行安装:

yum instal percona-xtrabackup-2.1.7-721.rhel6.x86_64.rpm

会出现如下的安装错误提示:

[root@host2 MySQL]# yum install percona-xtrabackup-2.1.7-721.rhel6.x86_64.rpm

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Examining percona-xtrabackup-2.1.7-721.rhel6.x86_64.rpm: percona-xtrabackup-2.1.7-721.rhel6.x86_64

Marking percona-xtrabackup-2.1.7-721.rhel6.x86_64.rpm to be installed

Loading mirror speeds from cached hostfile

 * base: mirrors.zju.edu.cn

 * extras: mirrors.cqu.edu.cn

 * updates: mirrors.zju.edu.cn

Resolving Dependencies

--> Running transaction check

---> Package percona-xtrabackup.x86_64 0:2.1.7-721.rhel6 will be installed

--> Processing Dependency: perl(DBD::mysql) for package: percona-xtrabackup-2.1.7-721.rhel6.x86_64

--> Processing Dependency: perl(Time::HiRes) for package: percona-xtrabackup-2.1.7-721.rhel6.x86_64

--> Running transaction check

---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed

--> Processing Dependency: perl(DBI::Const::GetInfoType) for package: perl-DBD-MySQL-4.013-3.el6.x86_64

--> Processing Dependency: perl(DBI) for package: perl-DBD-MySQL-4.013-3.el6.x86_64

--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64

--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64

---> Package perl-Time-HiRes.x86_64 4:1.9721-136.el6_6.1 will be installed

--> Processing Dependency: perl = 4:5.10.1-136.el6_6.1 for package: 4:perl-Time-HiRes-1.9721-136.el6_6.1.x86_64

--> Running transaction check

---> Package mysql-libs.x86_64 0:5.1.73-5.el6_6 will be installed

---> Package perl.x86_64 4:5.10.1-136.el6 will be updated

--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Pod-Simple-3.13-136.el6.x86_64

--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 3:perl-version-0.77-136.el6.x86_64

--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Pod-Escapes-1.04-136.el6.x86_64

--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 1:perl-Module-Pluggable-3.90-136.el6.x86_64

--> Processing Dependency: perl = 4:5.10.1-136.el6 for package: 4:perl-libs-5.10.1-136.el6.x86_64

---> Package perl.x86_64 4:5.10.1-136.el6_6.1 will be an update

---> Package perl-DBI.x86_64 0:1.609-4.el6 will be installed

--> Running transaction check

---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6 will be updated

---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6_6.1 will be an update

---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6 will be updated

---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6_6.1 will be an update

---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6 will be updated

---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6_6.1 will be an update

---> Package perl-libs.x86_64 4:5.10.1-136.el6 will be updated

---> Package perl-libs.x86_64 4:5.10.1-136.el6_6.1 will be an update

---> Package perl-version.x86_64 3:0.77-136.el6 will be updated

---> Package perl-version.x86_64 3:0.77-136.el6_6.1 will be an update

--> Finished Dependency Resolution

 

Dependencies Resolved

 

============================================================================================================================================================================

 Package                                 Arch                     Version                                Repository                                                    Size

============================================================================================================================================================================

Installing:

 percona-xtrabackup                      x86_64                   2.1.7-721.rhel6                        /percona-xtrabackup-2.1.7-721.rhel6.x86_64                    24 M

Installing for dependencies:

 mysql-libs                              x86_64                   5.1.73-5.el6_6                         updates                                                      1.2 M

 perl-DBD-MySQL                          x86_64                   4.013-3.el6                            base                                                         134 k

 perl-DBI                                x86_64                   1.609-4.el6                            base                                                         705 k

 perl-Time-HiRes                         x86_64                   4:1.9721-136.el6_6.1                   updates                                                       48 k

Updating for dependencies:

 perl                                    x86_64                   4:5.10.1-136.el6_6.1                   updates                                                       10 M

 perl-Module-Pluggable                   x86_64                   1:3.90-136.el6_6.1                     updates                                                       40 k

 perl-Pod-Escapes                        x86_64                   1:1.04-136.el6_6.1                     updates                                                       32 k

 perl-Pod-Simple                         x86_64                   1:3.13-136.el6_6.1                     updates                                                      212 k

 perl-libs                               x86_64                   4:5.10.1-136.el6_6.1                   updates                                                      578 k

 perl-version                            x86_64                   3:0.77-136.el6_6.1                     updates                                                       51 k

 

Transaction Summary

============================================================================================================================================================================

Install       5 Package(s)

Upgrade       6 Package(s)

 

Total size: 37 M

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

 

 

Transaction Check Error:

  file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/cp1256.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/cp1257.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/cp850.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/cp852.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/cp866.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/dec8.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/geostd8.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/greek.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/hebrew.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/hp8.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/koi8r.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/koi8u.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/latin1.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/latin2.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/latin5.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/latin7.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/macce.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/macroman.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/charsets/swe7.xml from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.1.73-5.el6_6.x86_64 conflicts with file from package MySQL-server-5.6.16-1.el6.x86_64

 

Error Summary

 

原因是我安装的是5.6版本,而这个的依赖却是需要用5.1的,故会冲突,可以用percona官网的源可以避免此冲突:

操作方法如下:

vi /etc/yum.repos.d/Percona.repo

[percona]
name = CentOS $releasever - Percona
baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
gpgcheck = 1

 

vi /etc/pki/rpm-gpg/RPM-GPG-KEY-percona


-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.9 (GNU/Linux)

mQGiBEsm3aERBACyB1E9ixebIMRGtmD45c6c/wi2IVIa6O3G1f6cyHH4ump6ejOi
AX63hhEs4MUCGO7KnON1hpjuNN7MQZtGTJC0iX97X2Mk+IwB1KmBYN9sS/OqhA5C
itj2RAkug4PFHR9dy21v0flj66KjBS3GpuOadpcrZ/k0g7Zi6t7kDWV0hwCgxCa2
f/ESC2MN3q3j9hfMTBhhDCsD/3+iOxtDAUlPMIH50MdK5yqagdj8V/sxaHJ5u/zw
YQunRlhB9f9QUFfhfnjRn8wjeYasMARDctCde5nbx3Pc+nRIXoB4D1Z1ZxRzR/lb
7S4i8KRr9xhommFnDv/egkx+7X1aFp1f2wN2DQ4ecGF4EAAVHwFz8H4eQgsbLsa6
7DV3BACj1cBwCf8tckWsvFtQfCP4CiBB50Ku49MU2Nfwq7durfIiePF4IIYRDZgg
kHKSfP3oUZBGJx00BujtTobERraaV7lIRIwETZao76MqGt9K1uIqw4NT/jAbi9ce
rFaOmAkaujbcB11HYIyjtkAGq9mXxaVqCC3RPWGr+fqAx/akBLQ2UGVyY29uYSBN
eVNRTCBEZXZlbG9wbWVudCBUZWFtIDxteXNxbC1kZXZAcGVyY29uYS5jb20+iGAE
ExECACAFAksm3aECGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRAcTL3NzS79
Kpk/AKCQKSEgwX9r8jR+6tAnCVpzyUFOQwCfX+fw3OAoYeFZB3eu2oT8OBTiVYu5
Ag0ESybdoRAIAKKUV8rbqlB8qwZdWlmrwQqg3o7OpoAJ53/QOIySDmqy5TmNEPLm
lHkwGqEqfbFYoTbOCEEJi2yFLg9UJCSBM/sfPaqb2jGP7fc0nZBgUBnFuA9USX72
O0PzVAF7rCnWaIz76iY+AMI6xKeRy91TxYo/yenF1nRSJ+rExwlPcHgI685GNuFG
chAExMTgbnoPx1ka1Vqbe6iza+FnJq3f4p9luGbZdSParGdlKhGqvVUJ3FLeLTqt
caOn5cN2ZsdakE07GzdSktVtdYPT5BNMKgOAxhXKy11IPLj2Z5C33iVYSXjpTelJ
b2qHvcg9XDMhmYJyE3O4AWFh2no3Jf4ypIcABA0IAJO8ms9ov6bFqFTqA0UW2gWQ
cKFN4Q6NPV6IW0rV61ONLUc0VFXvYDtwsRbUmUYkB/L/R9fHj4lRUDbGEQrLCoE+
/HyYvr2rxP94PT6Bkjk/aiCCPAKZRj5CFUKRpShfDIiow9qxtqv7yVd514Qqmjb4
eEihtcjltGAoS54+6C3lbjrHUQhLwPGqlAh8uZKzfSZq0C06kTxiEqsG6VDDYWy6
L7qaMwOqWdQtdekKiCk8w/FoovsMYED2qlWEt0i52G+0CjoRFx2zNsN3v4dWiIhk
ZSL00Mx+g3NA7pQ1Yo5Vhok034mP8L2fBLhhWaK3LG63jYvd0HLkUFhNG+xjkpeI
SQQYEQIACQUCSybdoQIbDAAKCRAcTL3NzS79KlacAJ0aAkBQapIaHNvmAhtVjLPN
wke4ZgCePe3sPPF49lBal7QaYPdjqapa1SQ=
=qcCk
-----END PGP PUBLIC KEY BLOCK-----

 

执行完此操作后可用yum list | grep backup查看当前相关的备份工具

[root@host2 MySQL]# yum list | grep backup
percona-xtrabackup.x86_64                   2.2.11-1.el6                @percona
percona-xtrabackup-20.x86_64                2.0.8-587.rhel6             percona 
percona-xtrabackup-20-debuginfo.x86_64      2.0.8-587.rhel6             percona 
percona-xtrabackup-20-test.x86_64           2.0.8-587.rhel6             percona 
percona-xtrabackup-21.x86_64                2.1.9-746.rhel6             percona 
percona-xtrabackup-21-debuginfo.x86_64      2.1.9-746.rhel6             percona 
percona-xtrabackup-debuginfo.x86_64         2.2.11-1.el6                percona 
percona-xtrabackup-test.x86_64              2.2.11-1.el6                percona 
percona-xtrabackup-test-21.x86_64           2.1.9-746.rhel6             percona 

 

最后执行:

yum install percona-xtrabackup

就可以顺利安装了。

 

安装percona-xtrabackup一直提示依赖冲突的一个解决办法

标签:

原文地址:http://www.cnblogs.com/zejin2008/p/4649327.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!