warning: MySQL-server-5.5.48-1.linux2.6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: N

时间:2022-10-06 07:04:21

CentOS rpm安装Mysql时出现这样的错误:

warning: MySQL-server-5.5.48-1.linux2.6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
/usr/bin/perl is needed by MySQL-server-5.5.481.linux2.6.x86_64

原因:这是由于yum安装了旧版本的GPG keys造成的

解决办法:
命令后面跟上 - -force - -nodeps

如:warning: MySQL-server-5.5.48-1.linux2.6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: N