warning: mysql-community-libs-5.7.11-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5
分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.****.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
1、错误描述
[[email protected] mysql]# rpm -ivh mysql-community-libs-5.7.11-1.el7.x86_64.rpmwarning: mysql-community-libs-5.7.11-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYerror: Failed dependencies: mysql-community-common(x86-64) = 5.7.11-1.el7 is needed by mysql-community-libs-5.7.11-1.el7.x86_64 mariadb-libs is obsoleted by mysql-community-libs-5.7.11-1.el7.x86_64
2、错误原因
[[email protected] mysql]# rpm -ivh mysql-community-client-5.7.11-1.el7.x86_64.rpmwarning: mysql-community-client-5.7.11-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYerror: Failed dependencies: mysql-community-libs(x86-64) = 5.7.11-1.el7 is needed by mysql-community-client-5.7.11-1.el7.x86_64[[email protected] mysql]# lsmysql-community-client-5.7.11-1.el7.x86_64.rpm mysql-community-libs-5.7.11-1.el7.x86_64.rpmmysql-community-common-5.7.11-1.el7.x86_64.rpm mysql-community-server-5.7.11-1.el7.x86_64.rpm
在Linux的Centos7下快速安装mysql,利用rpm -ivh命令,但是却出现一个一个的报错,结果发现是每个安装包需要相互依赖,必须有先后顺序;否则就会报错。
3、解决办法
按照官网上的安装包提示进行安装
[[email protected] mysql]# rpm -ivh mysql-community-release-el7-5.noarch.rpmPreparing... ################################# [100%]Updating / installing... 1:mysql-community-release-el7-5 ################################# [100%][[email protected] mysql]# yum install mysql-community-serverLoaded plugins: langpacksmysql-connectors-community | 2.5 kB 00:00:00 mysql-tools-community | 2.5 kB 00:00:00 mysql56-community | 2.5 kB 00:00:00 (1/3): mysql-connectors-community/x86_64/primary_db | 9.8 kB 00:00:00 (2/3): mysql-tools-community/x86_64/primary_db | 25 kB 00:00:00 (3/3): mysql56-community/x86_64/primary_db | 115 kB 00:00:01 Resolving Dependencies--> Running transaction check---> Package mysql-community-server.x86_64 0:5.6.29-2.el7 will be installed--> Processing Dependency: mysql-community-common(x86-64) = 5.6.29-2.el7 for package: mysql-community-server-5.6.29-2.el7.x86_64--> Processing Dependency: mysql-community-client(x86-64) = 5.6.29-2.el7 for package: mysql-community-server-5.6.29-2.el7.x86_64--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.29-2.el7.x86_64--> Running transaction check---> Package mysql-community-client.x86_64 0:5.6.29-2.el7 will be installed--> Processing Dependency: mysql-community-libs(x86-64) = 5.6.29-2.el7 for package: mysql-community-client-5.6.29-2.el7.x86_64---> Package mysql-community-common.x86_64 0:5.6.29-2.el7 will be installed---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64--> Running transaction check---> Package mariadb-libs.x86_64 1:5.5.40-1.el7_0 will be obsoleted---> Package mysql-community-libs.x86_64 0:5.6.29-2.el7 will be obsoleting---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch--> Running transaction check---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed--> Running transaction check---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================= Package Arch Version Repository Size=======================================================================================================================================================================Installing: mysql-community-libs x86_64 5.6.29-2.el7 mysql56-community 2.0 M replacing mariadb-libs.x86_64 1:5.5.40-1.el7_0 mysql-community-server x86_64 5.6.29-2.el7 mysql56-community 58 MInstalling for dependencies: mysql-community-client x86_64 5.6.29-2.el7 mysql56-community 19 M mysql-community-common x86_64 5.6.29-2.el7 mysql56-community 256 k perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k perl-DBI x86_64 1.627-4.el7 base 802 k perl-IO-Compress noarch 2.061-2.el7 base 260 k perl-Net-Daemon noarch 0.48-5.el7 base 51 k perl-PlRPC noarch 0.2020-14.el7 base 36 kTransaction Summary=======================================================================================================================================================================Install 2 Packages (+8 Dependent packages)Total download size: 80 MIs this ok [y/d/N]: yyyyyy^H^H^H^H^[[3~Is this ok [y/d/N]: yDownloading packages:warning: /var/cache/yum/x86_64/7/mysql56-community/packages/mysql-community-common-5.6.29-2.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY36 ETA Public key for mysql-community-common-5.6.29-2.el7.x86_64.rpm is not installed(1/10): mysql-community-common-5.6.29-2.el7.x86_64.rpm | 256 kB 00:00:02 (2/10): mysql-community-libs-5.6.29-2.el7.x86_64.rpm | 2.0 MB 00:00:04 (3/10): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm | 57 kB 00:00:00 (4/10): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm | 32 kB 00:00:00 (5/10): perl-Net-Daemon-0.48-5.el7.noarch.rpm | 51 kB 00:00:00 (6/10): perl-PlRPC-0.2020-14.el7.noarch.rpm | 36 kB 00:00:00 (7/10): perl-IO-Compress-2.061-2.el7.noarch.rpm | 260 kB 00:00:00 (8/10): perl-DBI-1.627-4.el7.x86_64.rpm | 802 kB 00:00:01 (9/10): mysql-community-client-5.6.29-2.el7.x86_64.rpm | 19 MB 00:01:10 (10/10): mysql-community-server-5.6.29-2.el7.x86_64.rpm | 58 MB 00:04:08 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 322 kB/s | 80 MB 00:04:15 Retrieving key from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysqlImporting GPG key 0x5072E1F5: Userid : "MySQL Release Engineering <[email protected]>" Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5 Package : mysql-community-release-el7-5.noarch (installed) From : file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysqlIs this ok [y/N]: yRunning transaction checkRunning transaction testTransaction test succeededRunning transactionWarning: RPMDB altered outside of yum. Installing : mysql-community-common-5.6.29-2.el7.x86_64 1/11 Installing : mysql-community-libs-5.6.29-2.el7.x86_64 2/11 Installing : mysql-community-client-5.6.29-2.el7.x86_64 3/11 Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 4/11 Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 5/11 Installing : perl-IO-Compress-2.061-2.el7.noarch 6/11 Installing : perl-Net-Daemon-0.48-5.el7.noarch 7/11 Installing : perl-PlRPC-0.2020-14.el7.noarch 8/11 Installing : perl-DBI-1.627-4.el7.x86_64 9/11 Installing : mysql-community-server-5.6.29-2.el7.x86_64 10/11 Erasing : 1:mariadb-libs-5.5.40-1.el7_0.x86_64 11/11 Verifying : mysql-community-common-5.6.29-2.el7.x86_64 1/11 Verifying : mysql-community-libs-5.6.29-2.el7.x86_64 2/11 Verifying : perl-Net-Daemon-0.48-5.el7.noarch 3/11 Verifying : mysql-community-client-5.6.29-2.el7.x86_64 4/11 Verifying : mysql-community-server-5.6.29-2.el7.x86_64 5/11 Verifying : perl-IO-Compress-2.061-2.el7.noarch 6/11 Verifying : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 7/11 Verifying : perl-DBI-1.627-4.el7.x86_64 8/11 Verifying : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 9/11 Verifying : perl-PlRPC-0.2020-14.el7.noarch 10/11 Verifying : 1:mariadb-libs-5.5.40-1.el7_0.x86_64 11/11 Installed: mysql-community-libs.x86_64 0:5.6.29-2.el7 mysql-community-server.x86_64 0:5.6.29-2.el7 Dependency Installed: mysql-community-client.x86_64 0:5.6.29-2.el7 mysql-community-common.x86_64 0:5.6.29-2.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 Replaced: mariadb-libs.x86_64 1:5.5.40-1.el7_0