RPM安装Mysql出现warning: MySQL-server-xxx.linux xxx.rpm: Header V3 DSA/SHA1 Signature, key ID xx: NOK问题

今天在阿里云服务器(CentOS7)上用rpm安装mysql时,出现如下问题

[root@iz2zed4h7bg5di7mivrsvyz opt]# rpm -ivh MySQL-server-5.5.48-1.linux2.6.i386.rpm 
warning: MySQL-server-5.5.48-1.linux2.6.i386.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
	libaio.so.1 is needed by MySQL-server-5.5.48-1.linux2.6.i386
	libaio.so.1(LIBAIO_0.1) is needed by MySQL-server-5.5.48-1.linux2.6.i386
	libaio.so.1(LIBAIO_0.4) is needed by MySQL-server-5.5.48-1.linux2.6.i386

原因是:这是由于yum安装了旧版本的GPG keys造成的
解决办法:
命令后面跟上 --force --nodeps

rpm -ivh MySQL-server-5.5.48-1.linux2.6.i386.rpm  --force --nodeps

看:看的
个人博客: 个人博客

你可能感兴趣的:(RPM安装Mysql出现warning: MySQL-server-xxx.linux xxx.rpm: Header V3 DSA/SHA1 Signature, key ID xx: NOK问题)