distributions
distributions copied to clipboard
Warning: apt-key output should not be parsed (stdout is not a terminal)
When installing node in my Dockerfile using:
curl -sL https://deb.nodesource.com/setup_12.x | bash -
Then I receive the following warning multiple times:
Warning: apt-key output should not be parsed (stdout is not a terminal)
See the following places in the setup script:
- https://github.com/nodesource/distributions/blob/ce7f535a7bd9f0a684a388e358a61068888754c0/deb/setup#L304-L308
- https://github.com/nodesource/distributions/blob/ce7f535a7bd9f0a684a388e358a61068888754c0/deb/setup#L323
I did some research on the warning and it appears as if it is raised because the gpg keys could deprecate. However, all cited code fragments fetch these keys dynamically, so I think it would be okay to ignore the warnings.
Can we set APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 during each single apt-get add operation? It would be nice get rid of these warnings in so many Dockerfiles.
Would love to know how to fix this, I too have the same issue
Same...
So I am guessing the only fix to this is to use a functioning OS other than Ubuntu... GOT IT THANKS.

This issue is resolved with our new repository. More information can be found here.