You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu FIPS模式下执行apt-get update时出现NO_PUBKEY报错的问题求助

Ubuntu FIPS模式下执行apt-get update时出现NO_PUBKEY报错的问题求助

大家好,我在Ubuntu的FIPS模式下执行apt-get update时遇到了公钥缺失的错误,折腾半天没搞定,想请教下各位大佬怎么解决。

先说明下我的环境:

  • Ubuntu处于FIPS模式
  • 内核版本为5.4.0-1092-fips

执行apt-get update时,我碰到了以下报错:

Err:5 https://esm.ubuntu.com/fips-updates/ubuntu focal-updates InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY $MY_KEY1
Err:6 https://esm.ubuntu.com/cis/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY $MY_KEY2

我之前试过常规的导入公钥方法,比如:

  • apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $MY_KEY1
  • gpg --keyserver keyserver.ubuntu.com --recv-keys $MY_KEY1

但执行这些命令后,出现了这样的提示:

gpg: out of core handler ignored in FIPS mode
gpg: key $MY_KEY1: public key "Ubuntu Federal Information Processing Standards Auto...

有没有朋友遇到过类似情况?求指点解决办法!

备注:内容来源于stack exchange,提问作者itsjc

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 11:43:06