Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt_repository needs dirmngr installed #234

Closed
palfrey opened this issue Feb 4, 2018 · 1 comment
Closed

apt_repository needs dirmngr installed #234

palfrey opened this issue Feb 4, 2018 · 1 comment

Comments

@palfrey
Copy link
Contributor

palfrey commented Feb 4, 2018

Cookbook version

6.1.4

Chef-client version

13.7.16

Platform Details

Debian Stretch

Scenario:

Adding new apt_repository

Steps to Reproduce:

I was using nodejs::repo (https://github.com/redguide/nodejs/blob/master/recipes/repo.rb) but anything that uses apt_repository on a fresh Debian Stretch box will fail similarly. Note that this doesn't work on your current Travis tests, as the Dokken Docker Stretch box installs dirmngr (https://github.com/someara/dokken-images/blob/master/debian-9/Dockerfile)

Expected Result:

New apt repository added ok

Actual Result:

[2018-02-04T22:18:18+00:00] ERROR: apt_repository[node.js] (nodejs::repo line 5) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[install-key 1655a0ab68576280] (/var/lib/gems/2.3.0/gems/chef-13.7.16/lib/chef/provider/apt_repository.rb line 194) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of apt-key adv --recv --keyserver hkp://keyserver.ubuntu.com:80 1655a0ab68576280 ----
STDOUT: Executing: /tmp/apt-key-gpghome.0WrlgX684r/gpg.1.sh --recv --keyserver hkp://keyserver.ubuntu.com:80 1655a0ab68576280
STDERR: Warning: apt-key output should not be parsed (stdout is not a terminal)
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.0WrlgX684r/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
---- End output of apt-key adv --recv --keyserver hkp://keyserver.ubuntu.com:80 1655a0ab68576280 ----
Ran apt-key adv --recv --keyserver hkp://keyserver.ubuntu.com:80 1655a0ab68576280 returned 2

Relatedly, there's https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845720 but upstream has marked it as "wontfix" for some reason.

@majormoses
Copy link
Contributor

majormoses commented May 15, 2018

I think its reasonable to add the package to be installed in the default recipe. Not sure how the other maintainers feel but I can certainly agree with the debian maintainer that gpg can be run without dirmgr as it is only needed if you are using a nework. As this repo/cookbook clearly takes the stance that you have a network to add keys from I think we should add it here.

palfrey added a commit to palfrey/apt that referenced this issue May 17, 2018
The Dokken image includes a number of packages not everyone has,
and hence the bug with dirmngr

Signed-off-by: Tom Parker <palfrey@tevp.net>
palfrey added a commit to palfrey/apt that referenced this issue May 17, 2018
apt-get needs gnupg for keys, and dirmngr for downloading CRLs

Signed-off-by: Tom Parker <palfrey@tevp.net>
palfrey added a commit to palfrey/apt that referenced this issue May 17, 2018
Signed-off-by: Tom Parker <palfrey@tevp.net>
@palfrey palfrey mentioned this issue May 17, 2018
4 tasks
palfrey added a commit to palfrey/apt that referenced this issue May 17, 2018
Remove annoying tty service which consumes 100% CPU

Signed-off-by: Tom Parker <palfrey@tevp.net>
palfrey added a commit to palfrey/apt that referenced this issue May 17, 2018
palfrey added a commit to palfrey/apt that referenced this issue May 17, 2018
gnupg and dirmngr specifically

Signed-off-by: Tom Parker <palfrey@tevp.net>
palfrey added a commit to palfrey/apt that referenced this issue Jun 5, 2018
tas50 added a commit that referenced this issue Jul 26, 2018
Install gnupg and dirmngr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants