在Suse Linux Leap 15.1上安装MySQL 5.7.29时签名验证失败
我想在OpenSuse Linux leap 15.1上安装MySQL社区版5.7.29,如下所示:在Suse Linux Leap 15.1上安装MySQL 5.7.29时签名验证失败,mysql,Mysql,我想在OpenSuse Linux leap 15.1上安装MySQL社区版5.7.29,如下所示: 下载文件:mysql-5.7.29-1.sles12.x86_64.rpm-bundle.tar 解压文件,然后获得8个文件 >mysql-community-client-5.7.29-1.sles12.x86_64.rpm >mysql-community-common-5.7.29-1.sles12.x86_64.rpm >mysql-community-devel
>mysql-community-client-5.7.29-1.sles12.x86_64.rpm
>mysql-community-common-5.7.29-1.sles12.x86_64.rpm
>mysql-community-devel-5.7.29-1.sles12.x86_64.rpm
>mysql-community-embedded-5.7.29-1.sles12.x86_64.rpm
>mysql-community-embedded-devel-5.7.29-1.sles12.x86_64.rpm
>mysql-community-libs-5.7.29-1.sles12.x86_64.rpm
>mysql-community-server-5.7.29-1.sles12.x86_64.rpm
>mysql-community-test-5.7.29-1.sles12.x86_64.rpm
>sudo zypper install mysql-community-{server,client,common,libs}-*
>mysql-community-common-5.7.29-1.sles12.x86_64.rpm:
Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
>Looking for gpg key ID 5072E1F5 in cache /var/cache/zypp/pubkeys.
Repository Plain RPM files cache does not define additional
'gpgkey=' URLs.
mysql-community-common-5.7.29-1.sles12.x86_64 (Plain RPM files
cache): Signature verification failed [4-Signatures public key is
not available]
>Abort, retry, ignore? [a/r/i] (a):
任何回复都将不胜感激。只需编写
i
即可绕过此问题并成功完成安装。此问题是因为默认情况下,OpenSUSE使用downloads.OpenSUSE.org存储库,该存储库似乎使用到最近服务器镜像的代理,但问题是,某些镜像似乎没有更新其服务器上的某些内容,因此您会发现类似“签名验证失败”的消息。
您可以尝试几种解决方案:
grep "downloads.opensuse.org" -r /etc
更改每个文件的内容:
sed -i s/downloads.opensuse.org/nrt.edge.kernel.org\/opensuse/g /etc/products.d/openSUSE.prod
...