【问题标题】:Ubuntu 18.04 add gpg key failed with gpg-agent not found errorUbuntu 18.04 add gpg key failed with gpg-agent not found 错误
【发布时间】:2018-05-13 17:35:12
【问题描述】:

尝试将我们的基础映像迁移到稳定的 Ubuntu 18.04,当我们尝试添加我们的 gpg 密钥时,收到此错误:

root@77ff14f29cab:/# apt-key add apt-key.gpg 
gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory
gpg: can't connect to the agent: No such file or directory
gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory
gpg: can't connect to the agent: No such file or directory

【问题讨论】:

    标签: ubuntu-18.04 gpg-agent


    【解决方案1】:

    您很可能缺少 gpg-agent 包:

    gpg-agent/testing,unstable,now 2.2.5-1 amd64 [installed,automatic]
      GNU privacy guard - cryptographic agent
    

    您应该运行的命令是apt install gpg-agent

    【讨论】:

      猜你喜欢
      • 2023-03-14
      • 2019-04-21
      • 2019-01-29
      • 2021-04-17
      • 2022-12-28
      • 1970-01-01
      • 2018-04-26
      • 2021-12-18
      • 1970-01-01
      相关资源
      最近更新 更多