distributions: Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata

I am getting this:

1- When trying to install from https://rpm.nodesource.com/setup_12.x

https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-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-12.22.7-1nodesource.x86_64: [Errno 256] No more mirrors to try.

2- When trying to install from https://rpm.nodesource.com/setup_14.x

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.

This was working yesterday.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 55
  • Comments: 56 (3 by maintainers)

Commits related to this issue

Most upvoted comments

same issue

https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-1nodesource.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata

Error downloading packages: 2:nodejs-12.22.7-1nodesource.x86_64: [Errno 256] No more mirrors to try.

AWS Linux us-east-1 and us-east-2

seems to affect every node version i try

Edit: replacing sudo yum install nodejs -y with sudo yum install nodejs-12.22.6-1nodesource -y seems to fix for now, looks like it’s an issue with latest release, if your using a different version, just look at what it’s trying to install and replace the version number in this command with one minor before the one you’re trying sudo yum install nodejs-[[VERSION]]-1nodesource -y

Another workaround like said above, I have followed and installed Node 14 using, and it worked smooth. Thanks.

yum remove -y nodejs npm nodesource-release
wget https://rpm.nodesource.com/pub_14.x/el/7/x86_64/nodejs-14.18.1-1nodesource.x86_64.rpm
yum clean all
yum install -y nodejs-14.18.1-1nodesource.x86_64.rpm

This issue appears to be back for nodejs16

# yum install nodejs
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
228 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:16.17.0-1nodesource will be installed
--> Finished Dependency Resolution
--> Finding unneeded leftover dependencies
Found and removing 0 unneeded dependencies

Dependencies Resolved

==================================================================================================================================
 Package                   Arch                      Version                                  Repository                     Size
==================================================================================================================================
Installing:
 nodejs                    x86_64                    2:16.17.0-1nodesource                    nodesource                     32 M

Transaction Summary
==================================================================================================================================
Install  1 Package

Total download size: 32 M
Installed size: 89 M
Is this ok [y/d/N]: y
Downloading packages:
nodejs-16.17.0-1nodesource.x86 FAILED                                          
https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodejs-16.17.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.17.0-1nodesource.x86_64: [Errno 256] No more mirrors to try.

Please note that as soon as we detected the issue, we took action to correct it, however, Akamai has shown that its spreading is not even across regions (what makes it a bit unreliable).

Apologies for the inconvenience.

This should be fixed now or in the next few minutes.

Just adding another workaround. We do not want to user 12.22.6 has the .7 patch was a security vulnerability.

So until this is resolved we are able to download the RPM file via:

wget https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-1nodesource.x86_64.rpm

Then installing it via:

yum install -y ./nodejs-12.22.7-1nodesource.x86_64.rpm
curl --silent --location "https://rpm.nodesource.com/setup_14.x" | bash - &&   yum -y install nodejs-14*

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 metadata00 ETA 
Trying other mirror.


Error downloading packages:
  2:nodejs-14.18.1-1nodesource.x86_64: [Errno 256] No more mirrors to try.

Thank you for reporting this issue, we are working to fix it.

We’re seeing this as resolved. Our hosts are able to successfully download and install the package using the command we had previously.

curl -sL https://rpm.nodesource.com/setup_14.x | bash - && yum install -y nodejs

We’re seeing this as resolved. Our hosts are able to successfully download and install the package using the command we had previously.

curl -sL https://rpm.nodesource.com/setup_14.x | bash - && yum install -y nodejs

Still experiencing it here

curl --silent --location "https://rpm.nodesource.com/setup_14.x" | bash - &&   yum -y install nodejs-14*

.....
.....

nodejs-14.18.1-1nodesource.x86 FAILED                                          

nodejs-14.18.1-1nodesource 0% [                 ]  0.0 B/s |    0 B   --:-- ETA 
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.

Still having the same issue in AWS

This is happening to us. One year since the last one, could be cert related?

https://rpm.nodesource.com/pub_14.x/el/7/x86_64/nodejs-14.21.0-1nodesource.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata

We are also having issues. Are there alternative mirrors that we can use in the meantime?

Confirming that this is still a problem on CentOS 7 trying to install latest 16.x from repository in https://rpm.nodesource.com/pub_16.x/el/7x86_64/.

Happens even after removing /var/cache/yum and doing yum clean all Perhaps a problem in repodata?

Excerpt of output from yum install nodejs :

Dependencies Resolved

====================================================================================================
 Package           Arch              Version                            Repository             Size
====================================================================================================
Installing:
 nodejs            x86_64            2:16.13.0-1nodesource              nodesource             30 M

Transaction Summary
====================================================================================================
Install  1 Package

Total download size: 30 M
Installed size: 85 M
Is this ok [y/d/N]: y
Downloading packages:
nodejs-16.13.0-1nodesource.x86 FAILED                                           29 MB  --:--:-- ETA 
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.

Another workaround like said above, I have followed and installed Node 14 using, and it worked smooth. Thanks.

yum remove -y nodejs npm nodesource-release
wget https://rpm.nodesource.com/pub_14.x/el/7/x86_64/nodejs-14.18.1-1nodesource.x86_64.rpm
yum clean all
yum install -y nodejs-14.18.1-1nodesource.x86_64.rpm

workaround confirmed.

Can confirm that the fix from @keepevets worked: Replacing:

sudo yum -y install nodejs

with

sudo yum install nodejs-12.22.6-1nodesource -y

got our AWS workers auto-scaling again. Thanks!

We get the same error in our AWS code build running in us-east-1.

Step 1/34 : FROM amazonlinux 225 | latest: Pulling from library/amazonlinux 226 | 5e0be87f98fb: Pulling fs layer 227 | 5e0be87f98fb: Verifying Checksum 228 | 5e0be87f98fb: Download complete 229 | 5e0be87f98fb: Pull complete 230 | Digest: sha256:3535ab19660e96ed538ae7814f12eda76606064e40e2b8775aa74613bc8e6592 231 | Status: Downloaded newer image for amazonlinux:latest 232 | —> f341032df1f7 233 | Step 2/34 : RUN yum update -y 234 | —> Running in 544f9871dbb8 235 | Loaded plugins: ovl, priorities 236 | Resolving Dependencies 237 | --> Running transaction check 238 | —> Package glibc.x86_64 0:2.26-59.amzn2 will be updated 239 | —> Package glibc.x86_64 0:2.26-60.amzn2 will be an update 240 | —> Package glibc-common.x86_64 0:2.26-59.amzn2 will be updated 241 | —> Package glibc-common.x86_64 0:2.26-60.amzn2 will be an update 242 | —> Package glibc-langpack-en.x86_64 0:2.26-59.amzn2 will be updated 243 | —> Package glibc-langpack-en.x86_64 0:2.26-60.amzn2 will be an update 244 | —> Package glibc-minimal-langpack.x86_64 0:2.26-59.amzn2 will be updated 245 | —> Package glibc-minimal-langpack.x86_64 0:2.26-60.amzn2 will be an update 246 | —> Package libcrypt.x86_64 0:2.26-59.amzn2 will be updated 247 | —> Package libcrypt.x86_64 0:2.26-60.amzn2 will be an update 248 | —> Package openssl-libs.x86_64 1:1.0.2k-24.amzn2.0.3 will be updated 249 | —> Package openssl-libs.x86_64 1:1.0.2k-24.amzn2.0.4 will be an update 250 | --> Finished Dependency Resolution 251 |   252 | Dependencies Resolved 253 |   254 | ================================================================================ 255 | Package Arch Version Repository Size 256 | ================================================================================ 257 | Updating: 258 | glibc x86_64 2.26-60.amzn2 amzn2-core 3.4 M 259 | glibc-common x86_64 2.26-60.amzn2 amzn2-core 773 k 260 | glibc-langpack-en x86_64 2.26-60.amzn2 amzn2-core 289 k 261 | glibc-minimal-langpack x86_64 2.26-60.amzn2 amzn2-core 32 k 262 | libcrypt x86_64 2.26-60.amzn2 amzn2-core 52 k 263 | openssl-libs x86_64 1:1.0.2k-24.amzn2.0.4 amzn2-core 1.2 M 264 |   265 | Transaction Summary 266 | ================================================================================ 267 | Upgrade 6 Packages 268 |   269 | Total download size: 5.7 M 270 | Downloading packages: 271 | Delta RPMs disabled because /usr/bin/applydeltarpm not installed. 272 | -------------------------------------------------------------------------------- 273 | Total 35 MB/s | 5.7 MB 00:00 274 | Running transaction check 275 | Running transaction test 276 | Transaction test succeeded 277 | Running transaction 278 | Updating : glibc-minimal-langpack-2.26-60.amzn2.x86_64 1/12 279 | Updating : glibc-2.26-60.amzn2.x86_64 2/12 280 | Updating : glibc-common-2.26-60.amzn2.x86_64 3/12 281 | Updating : glibc-langpack-en-2.26-60.amzn2.x86_64 4/12 282 | Updating : libcrypt-2.26-60.amzn2.x86_64 5/12 283 | Updating : 1:openssl-libs-1.0.2k-24.amzn2.0.4.x86_64 6/12 284 | Cleanup : glibc-langpack-en-2.26-59.amzn2.x86_64 7/12 285 | Cleanup : 1:openssl-libs-1.0.2k-24.amzn2.0.3.x86_64 8/12 286 | Cleanup : libcrypt-2.26-59.amzn2.x86_64 9/12 287 | Cleanup : glibc-common-2.26-59.amzn2.x86_64 10/12 288 | Cleanup : glibc-minimal-langpack-2.26-59.amzn2.x86_64 11/12 289 | Cleanup : glibc-2.26-59.amzn2.x86_64 12/12 290 | Verifying : libcrypt-2.26-60.amzn2.x86_64 1/12 291 | Verifying : 1:openssl-libs-1.0.2k-24.amzn2.0.4.x86_64 2/12 292 | Verifying : glibc-common-2.26-60.amzn2.x86_64 3/12 293 | Verifying : glibc-langpack-en-2.26-60.amzn2.x86_64 4/12 294 | Verifying : glibc-minimal-langpack-2.26-60.amzn2.x86_64 5/12 295 | Verifying : glibc-2.26-60.amzn2.x86_64 6/12 296 | Verifying : glibc-common-2.26-59.amzn2.x86_64 7/12 297 | Verifying : glibc-2.26-59.amzn2.x86_64 8/12 298 | Verifying : glibc-langpack-en-2.26-59.amzn2.x86_64 9/12 299 | Verifying : 1:openssl-libs-1.0.2k-24.amzn2.0.3.x86_64 10/12 300 | Verifying : libcrypt-2.26-59.amzn2.x86_64 11/12 301 | Verifying : glibc-minimal-langpack-2.26-59.amzn2.x86_64 12/12 302 |   303 | Updated: 304 | glibc.x86_64 0:2.26-60.amzn2 305 | glibc-common.x86_64 0:2.26-60.amzn2 306 | glibc-langpack-en.x86_64 0:2.26-60.amzn2 307 | glibc-minimal-langpack.x86_64 0:2.26-60.amzn2 308 | libcrypt.x86_64 0:2.26-60.amzn2 309 | openssl-libs.x86_64 1:1.0.2k-24.amzn2.0.4 310 |   311 | Complete! 312 | Removing intermediate container 544f9871dbb8 313 | —> a4d0f4cd8a9c 314 | Step 3/34 : RUN yum upgrade -y 315 | —> Running in 1f21de9a78df 316 | Loaded plugins: ovl, priorities 317 | No packages marked for update 318 | Removing intermediate container 1f21de9a78df 319 | —> 22c746d65200 320 | Step 4/34 : RUN curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash - 321 | —> Running in 6f1cfde177c4 322 |   323 | ## Installing the NodeSource Node.js 16.x repo… 324 |   325 |   326 | ## Inspecting system… 327 |   328 | + rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release || rpm -q --whatprovides fedora-release 329 | + uname -m 330 |   331 | ## Confirming “el7-x86_64” is supported… 332 |   333 | + curl -sLf -o /dev/null ‘https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm’ 334 |   335 | ## Downloading release setup RPM… 336 |   337 | + mktemp 338 | + curl -sL -o ‘/tmp/tmp.SWoKggOyfU’ ‘https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm’ 339 |   340 | ## Installing release setup RPM… 341 |   342 | + rpm -i --nosignature --force ‘/tmp/tmp.SWoKggOyfU’ 343 |   344 | ## Cleaning up… 345 |   346 | + rm -f ‘/tmp/tmp.SWoKggOyfU’ 347 |   348 | ## Checking for existing installations… 349 |   350 | + rpm -qa ‘node|npm’ | grep -v nodesource 351 |   352 | ## Run sudo yum install -y nodejs to install Node.js 16.x and npm. 353 | ## You may run dnf if yum is not available: 354 | sudo dnf install -y nodejs 355 | ## You may also need development tools to build native addons: 356 | sudo yum install gcc-c++ make 357 | ## To install the Yarn package manager, run: 358 | curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo 359 | sudo yum install yarn 360 |   361 | Removing intermediate container 6f1cfde177c4 362 | —> c3040eacb2f1 363 | Step 5/34 : RUN yum install -y nodejs 364 | —> Running in a4e3f0d1247f 365 | Loaded plugins: ovl, priorities 366 | Resolving Dependencies 367 | --> Running transaction check 368 | —> Package nodejs.x86_64 2:16.17.0-1nodesource will be installed 369 | --> Finished Dependency Resolution 370 |   371 | Dependencies Resolved 372 |   373 | ================================================================================ 374 | Package Arch Version Repository Size 375 | ================================================================================ 376 | Installing: 377 | nodejs x86_64 2:16.17.0-1nodesource nodesource 32 M 378 |   379 | Transaction Summary 380 | ================================================================================ 381 | Install 1 Package 382 |   383 | Total download size: 32 M 384 | Installed size: 89 M 385 | Downloading packages: 386 | https://rpm.nodesource.com/pub_16.x/el/7/x86_64/nodejs-16.17.0-1nodesource.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata 387 | Trying other mirror. 388

For us 12 and 14 are working now reproducible from eu-west-1. Thank you!

We’re still facing this in our us-east-1 region:

$ curl -I https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-1nodesource.x86_64.rpm
HTTP/2 200
content-type: application/x-redhat-package-manager
content-length: 22914915
server: nginx
last-modified: Wed, 03 Nov 2021 21:44:05 GMT
etag: "618302a5-15da763"
accept-ranges: bytes
date: Fri, 05 Nov 2021 07:16:14 GMT

@igsu our CircleCI builds are still running into this problem. Can you confirm it was indeed fixed?

Hey - we are still running in this issue with: yum install -y nodejs

do we need to change the command?

Another workaround is to download and install it directly using the RPM URL:

yumdownloader -q --url nodejs | xargs yum -y install

For people who want to install nodejs 16.x for centos 7

wget https://nodejs.org/dist/v16.15.0/node-v16.15.0-linux-x64.tar.xz

xz -d node-v16.15.0-linux-x64.tar.xz

tar xvf node-v16.15.0-linux-x64.tar

mv node-v16.15.0-linux-x64 /usr/local/nodejs

vi /etc/profile

add line

export PATH=$PATH:‘/usr/local/nodejs/bin’

source /etc/profile node -v npm -v

I got this error again today, My debugging is in morning RUN yum install -y nodejs was installing nodejs-14.20.1 and now same command is installing nodejs-14.20.0 on hard coding version RUN yum install nodejs-14.20.1 -y it is proceeding

For me the manually way works.

ENV NODE_VERSION "16.17.0"

RUN wget https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz

RUN xz -d node-v$NODE_VERSION-linux-x64.tar.xz

RUN tar xvf node-v$NODE_VERSION-linux-x64.tar

RUN mv node-v$NODE_VERSION-linux-x64 /usr/local/nodejs

RUN echo export PATH=$PATH:'/usr/local/nodejs/bin' >> /etc/profile

RUN source /etc/profile

Confirmed that this is still not working for me in us-east-1 region:

================================================================================
 Package      Arch         Version                       Repository        Size
================================================================================
Installing:
 nodejs       x86_64       2:12.22.7-1nodesource         nodesource        22 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 22 M
Installed size: 67 M
Downloading packages:
https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-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-12.22.7-1nodesource.x86_64: [Errno 256] No more mirrors to try.

Akamai is still serving different rpms depending on the edge-node, one hits.

e.g. France (working)

curl -s -o - https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-1nodesource.x86_64.rpm --resolve rpm.nodesource.com:443:$(dig +short A rpm.nodesource.com @$(curl -s https://public-dns.info/nameserver/fr.json | jq -r '.[0].ip') | tail -n1) | rpm -qp - --qf '%{SIGPGP:pgpsig}\n' 2>/dev/null
RSA/SHA512, Wed Nov  3 21:43:59 2021, Key ID 5ddbe8d434fa74dd
curl -H "Pragma: akamai-x-get-extracted-values" -sI https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-1nodesource.x86_64.rpm --resolve rpm.nodesource.com:443:$(dig +short A rpm.nodesource.com @$(curl -s https://public-dns.info/nameserver/fr.json | jq -r '.[0].ip') | tail -n1) | grep BC_TRAIL_DATA
x-akamai-session-info: name=BC_TRAIL_DATA; value=[a=104.117.77.150,b=278095128,c=g,d=1636111906,h=200,k=174,l=1,n=BE__BRUSSELS,o=20940,r=175]

but Ireland (not working)

curl -s -o - https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-1nodesource.x86_64.rpm --resolve rpm.nodesource.com:443:$(dig +short A rpm.nodesource.com @$(curl -s https://public-dns.info/nameserver/ie.json | jq -r '.[3].ip') | tail -n1) | rpm -qp - --qf '%{SIGPGP:pgpsig}\n' 2>/dev/null
RSA/SHA512, Tue Oct 12 19:40:18 2021, Key ID 5ddbe8d434fa74dd
curl -H "Pragma: akamai-x-get-extracted-values" -sI https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-1nodesource.x86_64.rpm --resolve rpm.nodesource.com:443:$(dig +short A rpm.nodesource.com @$(curl -s https://public-dns.info/nameserver/ie.json | jq -r '.[3].ip') | tail -n1) | grep BC_TRAIL_DATA
x-akamai-session-info: name=BC_TRAIL_DATA; value=[a=2.21.33.87,b=23829964,c=g,d=1636111871,h=200,k=113,l=0,n=IE__DUBLIN,o=20940,r=113]

For nodejs-14.18.1-1nodesource.x86_64.rpm also Germany (where nodejs-12.22.7-1nodesource.x86_64.rpm fails) is working. But Ireland… 😞

Can’t you “just” issue https://developer.akamai.com/api/core_features/fast_purge/v3.html with either all rpm-urls or worst case for the whole cpcode?

It seems like Akamai’s CDN service has not yet fully propagated the modified files. This is most likely the reason that some people are experiencing issues while others are not. I’m not sure how long it will take for this to complete, but there is likely a way to manually expire the cache for the broken files if this does not resolve after a while.

;; QUESTION SECTION:
;rpm.nodesource.com.            IN      A

;; ANSWER SECTION:
rpm.nodesource.com.     210     IN      CNAME   rpm.nodesource.com-v1.akamaized.net.
rpm.nodesource.com-v1.akamaized.net. 145 IN CNAME a1969.dscd.akamai.net.
a1969.dscd.akamai.net.  20      IN      A       104.124.58.163
a1969.dscd.akamai.net.  20      IN      A       104.124.58.138

I too am assuming that it’s related to an issue within the repodata directory (I.E. the file’s checksum does not match.)

This should be fixed now or in the next few minutes.

How long do you believe this will get fixed in AWS servers?

@igsu still having the same problem, are there any updates?

As a workaround I used following command

sudo yum install -y nodejs-16.12.0

Having this same issue, sometime in the past few hours, running from AWS Codebuild, in this case:

https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodejs-12.22.7-1nodesource.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=nodesource clean metadata

Interesting that this is happening exactly 1 year from #1126 …is it some sort of package signing certificate expiration thing?