distributions icon indicating copy to clipboard operation
distributions copied to clipboard

Warning: apt-key output should not be parsed (stdout is not a terminal)

Open LinqLover opened this issue 5 years ago • 3 comments

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.

LinqLover avatar Apr 30 '20 08:04 LinqLover

Would love to know how to fix this, I too have the same issue

henz90 avatar Nov 04 '20 14:11 henz90

Same...

OlafStyle avatar Nov 11 '20 11:11 OlafStyle

So I am guessing the only fix to this is to use a functioning OS other than Ubuntu... GOT IT THANKS. flippin sweet

AkashicSeer avatar Jan 10 '21 15:01 AkashicSeer

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

JesusPaz avatar Aug 29 '23 19:08 JesusPaz