help
help copied to clipboard
Unable to install node image due to gpg check failed
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
Can you share your ~/.gnupg/gpg.conf
@preveen-stack Thanks for the reply.
IIRC @RafaelGSS had some key discrepancies with this version
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.
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.