Ubuntu 18.04 не удалось добавить ключ gpg из-за ошибки gpg-agent not found

пытаясь перенести наш базовый образ на стабильную 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

person Rui Yang    schedule 13.05.2018    source источник


Ответы (2)


Вам не хватает пакета gpg-agent, скорее всего:

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

Вы должны запустить команду apt install gpg-agent.

person Community    schedule 13.05.2018

Спасибо @user2849211

sudo apt-get install gpg-agent -y

Решил проблему

person Abderrazzak Nejeoui    schedule 27.01.2021