Ubuntu 18.04添加gpg密钥失败,找不到gpg-agent错误

时间:2018-05-13 17:35:12

标签: ubuntu-18.04 gpg-agent

尝试将我们的基本映像迁移到稳定的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

1 个答案:

答案 0 :(得分:0)

谢谢@user2849211

sudo apt-get install gpg-agent -y

解决了问题