Docker Community Forums

Share and learn in the Docker community.

[Linux][Debian, Ubuntu] Dependency on gnupg-agent

As of today Ubuntu installation instruction https://docs.docker.com/engine/install/ubuntu/ shows gnupg-agent as a required install item. I’m talking in a downstream community https://github.com/ros/rosdistro/pull/27597#pullrequestreview-547275496 and we found that that package only installs document. It does seems to depend on gpg-agent (*1) that installs actual meat.

Is there any reason why gnupg-agent is specifically needed? If not, can it be gpg-agent?

*1 Dependency on

$ apt-cache depends gnupg-agent
gnupg-agent
  Depends: gpg-agent
    gpg-agent:i386

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS

I have dug a little deeper into the history of that line and found that it was proposed to be gpg-agent but was converged to gnupg-agent because it was installable on more platforms. On Xenial gnupg-agent has the content, on newer platforms it’s just the documentation, with a dependency on gpg-agent.

gpg-agent is only available back through bionic: https://packages.ubuntu.com/focal/gpg-agent

gnupg-agent is available on all versions: https://packages.ubuntu.com/focal/gnupg-agent I believe mostly as a backwards compatibility package it’s labeled “(dummy transitional package)” on the newer platforms. It’s produced from the same source package: Ubuntu – Details of source package gnupg2 in focal

Sorry, as a new user I can only post two links so I had to quote two of the links.

1 Like