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

Created on 30 Apr 2020  路  2Comments  路  Source: nodesource/distributions

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:

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.

All 2 comments

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

Same...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thameemk612 picture thameemk612  路  3Comments

SilkAndSlug picture SilkAndSlug  路  5Comments

xNarkon picture xNarkon  路  3Comments

normangilmore picture normangilmore  路  4Comments

ErisDS picture ErisDS  路  5Comments