在Suse 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

我想在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-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
    
  • 使用以下命令安装4个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存储库,该存储库似乎使用到最近服务器镜像的代理,但问题是,某些镜像似乎没有更新其服务器上的某些内容,因此您会发现类似“签名验证失败”的消息。 您可以尝试几种解决方案:

  • 使用一些VPN服务来更改您的IP位置,以找到一个机会,download.opensuse.org将在一些好的镜像上重定向您

  • 将/etc/repo.d(或/etc/zypp/repo.d)中repo配置中的“download.opensuse.org”域更改为列表中的其他服务器:并将其放入存储库文件(/etc/repo.d/*或/etc/zypp/*),例如(而不是)

  • 此外,即使在OpenSUSE安装模式下,您也可以在使用图形安装时更改源服务器。为此,您应该取消图形安装,当文本模式菜单打开时,在“专家模式”下,您可以从控制台编辑配置。在控制台中,您不能使用“vi”,因此请使用“sed”命令更改文件内容

    扫描配置:

    grep "downloads.opensuse.org" -r /etc
    
    更改每个文件的内容:

    sed -i s/downloads.opensuse.org/nrt.edge.kernel.org\/opensuse/g /etc/products.d/openSUSE.prod
    ...