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

Fix apt-key error #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

grokcode
Copy link

Hello,

I was running into an error on Ubuntu:

Error: apt-key adv --keyserver hkp://subkeys.pgp.net --recv-keys 548C16BF returned 2 instead of one of [0]
Error: /Stage[main]/Newrelic::Repo/Exec[newrelic-add-apt-key]/returns: change from notrun to 0 failed: apt-key adv --keyserver hkp://subkeys.pgp.net --recv-keys 548C16BF returned 2 instead of one of [0]

These changes should fix that.

I also ended up having to change the sequence of the commands and enforce ordering with require in order to work around a Ubuntu 16.04 bug described here and here.

I believe #11 solves this same issue, however I didn't see anywhere that specifies what version of the apt module it needs, and I wasn't able to get it working with the versions I tried.

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

Successfully merging this pull request may close these issues.

1 participant