nodejs-14.18.1-1nodesource.x86_64.rpm: Downloading successful, but checksum doesn't match
[MIRROR] nodejs-14.18.1-1nodesource.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 169c65275299723d25d069e4b66a0bb07bbd6f9a(sha1) Expected: 3d3655ab9862340b3aa9371d15290aa323c8f9c9(sha1) [MIRROR] nodejs-14.18.1-1nodesource.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 169c65275299723d25d069e4b66a0bb07bbd6f9a(sha1) Expected: 3d3655ab9862340b3aa9371d15290aa323c8f9c9(sha1) [MIRROR] nodejs-14.18.1-1nodesource.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 169c65275299723d25d069e4b66a0bb07bbd6f9a(sha1) Expected: 3d3655ab9862340b3aa9371d15290aa323c8f9c9(sha1) [MIRROR] nodejs-14.18.1-1nodesource.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 169c65275299723d25d069e4b66a0bb07bbd6f9a(sha1) Expected: 3d3655ab9862340b3aa9371d15290aa323c8f9c9(sha1) [FAILED] nodejs-14.18.1-1nodesource.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
dnf clean packages yum clean all
Always getting the error.
Is the checksum correct on the downloads site?
Same broken for nodejs-12.22.7...
MIRROR] nodejs-12.22.7-1nodesource.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 97450e8d786f1b501f30fbba55b5c2ab52ffedd9(sha1) Expected: a48c6ab7b1596d6a44ff10a7cffe2fe2cb22dbe7(sha1)
[MIRROR] nodejs-12.22.7-1nodesource.x86_64.rpm: Downloading successful, but checksum doesn't match. Calculated: 97450e8d786f1b501f30fbba55b5c2ab52ffedd9(sha1) Expected: a48c6ab7b1596d6a44ff10a7cffe2fe2cb22dbe7(sha1)
[FAILED] nodejs-12.22.7-1nodesource.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
I'm getting the same error for node 14 on a build process that was working a week ago and has not been modified.
Issue with node12 is the latest version update added 12.22.7 on nov 3rd, and the checksums were not properly matching the file... and the script always grabs the latest. The 12.22.6 is fine. Probably a shared 'release' script bug they need to fix to get the checksum files updated properly.
Side note, it would be really useful if these scripts supported an optional environment variable to force the download of a specific version so users like us could manually backlevel to a working version. Example would be that instead of just this Dockerfile sniplet:
RUN curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -
we could set some env-var like:
RUN FETCHNODEVERSION=12.22.6 curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash -
same issue here with 14.18.1
container cannot be built because of that
https://rpm.nodesource.com/pub_14.x/el/7/x86_64/nodejs-14.18.1-1nodesource.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata
Same here.
https://rpm.nodesource.com/pub_14.x/el/7/x86_64/nodejs-14.18.1-1nodesource.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata
Trying other mirror.
Error downloading packages:
2:nodejs-14.18.1-1nodesource.x86_64: [Errno 256] No more mirrors to try.
Just tried with v16 and it's also broken:
https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodejs-16.13.0-1nodesource.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata
Trying other mirror.
Error downloading packages:
2:nodejs-16.13.0-1nodesource.x86_64: [Errno 256] No more mirrors to try.
I am having the same problem for 14.x. Is there a fix for this yet?
Same issue here as well. Node 12.22.7.
Hey friends, maybe not the best solution, but I solved it by changing the node version my process is working with: from: curl -sL https://rpm.nodesource.com/setup_14.x | bash - to: curl -sL https://rpm.nodesource.com/setup_13.x | bash -
There is another issue for this problem: https://github.com/nodesource/distributions/issues/1290
The workarounds that worked for me:
- Run clean all before installing:
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash -
RUN yum clean all
RUN yum install nodejs -y
- Hardcoding version in the yum command:
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash -
RUN yum install nodejs-14.18.1 -y
I hope it helps.
@snobb's suggested pinning didn't work for me but the LTS (14.18.0) did:
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash -
RUN yum install nodejs-14.18.0 -y
@kulor Yes, I also noticed that the workarounds do not work everytime. Eg. it works when I build a container locally, but consistently fails at the build servers. Stilll trying to figure out why.
@kulor Yes, I also noticed that the workarounds do not work everytime. Eg. it works when I build a container locally, but consistently fails at the build servers. Stilll trying to figure out why.
@snobb Cool. Using 14.18.0 feels fairly deterministic so far (ran in an isolated container a few times). Just realised my previous comment sounded a bit aggressive, not intended 🤗 .
Duplicated #1290