help icon indicating copy to clipboard operation
help copied to clipboard

Unable to install node image due to gpg check failed

Open psruthi30 opened this issue 1 year ago • 3 comments

Node.js Version

v16.20.2

NPM Version

8.19.4

Operating System

Linux buildkitsandbox 6.6.26-linuxkit

Subsystem

Other

Description

Docker file:

FROM docker.artifactory.aws.athenahealth.com/athenahealth-base-oraclelinux.....

ARG NODESOURCE_URL=https://rpm.nodesource.com/setup_16.x

COPY certs.pem ${ATHENA_CAFILE_PATH}
ENV NODE_EXTRA_CA_CERTS=${ATHENA_CAFILE_PATH}
ENV NODE_VERSION $NODE_VERSION


RUN set -ex \ 
  && curl --output setup.sh -fsSL "${NODESOURCE_URL}" \
  && bash ./setup.sh \
  && yum install -y nodejs \
  && rm ./setup.sh \
  && node --version \
  && npm --version \
  && groupadd -g 993 jenkins_grp \
  && adduser -u 996 -g 993 jenkins \
  && yum install -y gcc-c++ make tini-0.19.0 \
  && yum clean all \
  && npm i -g yarn \
  && npm i -g pnpm \
  && yum clean packages


ENTRYPOINT ["tini", "--"]

CMD [ "node" ]

Error Message:

From : https://rpm.nodesource.com/gpgkey/NODESOURCE-GPG-SIGNING-KEY-EL warning: Signature not supported. Hash algorithm SHA1 not available. Key import failed (code 2). Failing package is: nodejs-2:16.20.2-1nodesource.x86_64 GPG Keys are configured as: https://rpm.nodesource.com/gpgkey/NODESOURCE-GPG-SIGNING-KEY-EL The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. Error: GPG check FAILED

Build is working fine when I provide --nogpgcheck. But Could someone help with resolving this gpg check ?

Minimal Reproduction

No response

Output

No response

Before You Submit

  • [X] I have looked for issues that already exist before submitting this
  • [X] My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask

psruthi30 avatar Jul 25 '24 11:07 psruthi30

Can you share your ~/.gnupg/gpg.conf

preveen-stack avatar Jul 27 '24 07:07 preveen-stack

@preveen-stack Thanks for the reply.

image gpg.conf -> file is missing but GPG check is happening in "yum install -y nodejs"

psruthi30 avatar Jul 29 '24 08:07 psruthi30

IIRC @RafaelGSS had some key discrepancies with this version

avivkeller avatar Aug 04 '24 18:08 avivkeller

It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] avatar Feb 01 '25 01:02 github-actions[bot]

It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] avatar Mar 03 '25 01:03 github-actions[bot]