IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    centos9安装openresty导入gpg报错解决办法

    YY.K发表于 2023-05-29 20:26:00
    love 0

    解决办法:

    update-crypto-policies --set LEGACY
    rpm --import https://openresty.org/package/pubkey.gpg

    或者是dnf带上 --nogpgcheck参数

    dnf install -y --nogpgcheck openresty 

    把gpgcheck检查去掉也行.

    sed -i 's/gpgcheck=1/gpgcheck=0/g'  /etc/yum.repos.d/openresty.repo

     

    没导入时候报错提示

    GPG Keys are configured as: https://openresty.org/package/pubkey.gpg
    Error: GPG check FAILED

    当导入时候的错误提示

    warning: Signature not supported. Hash algorithm SHA1 not available.
    error: https://openresty.org/package/pubkey.gpg: key 1 import failed

    总结:更新update-crypto-policies设置

    文章内容源自:https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9



沪ICP备19023445号-2号
友情链接