distributions icon indicating copy to clipboard operation
distributions copied to clipboard

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

Open malsabbagh opened this issue 5 years ago • 56 comments

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.

malsabbagh avatar Nov 03 '21 23:11 malsabbagh

This might be related to https://github.com/nodesource/distributions/issues/1126 and https://github.com/nodesource/distributions/issues/1265

malsabbagh avatar Nov 03 '21 23:11 malsabbagh

I'm dealing with the same issue, and have been looking at the comments in #1265. We happen to be running in AWS us-gov-west, and it looks like this could be region-dependent. Are you in a similar environment?

[root@ip-10-1-0-71 ~]# curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -

## Installing the NodeSource Node.js 14.x repo...


## Inspecting system...

+ 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
+ uname -m

## Confirming "el7-x86_64" is supported...

+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_14.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'

## Downloading release setup RPM...

+ mktemp
+ curl -sL -o '/tmp/tmp.c864iJVJt4' 'https://rpm.nodesource.com/pub_14.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'

## Installing release setup RPM...

+ rpm -i --nosignature --force '/tmp/tmp.c864iJVJt4'

## Cleaning up...

+ rm -f '/tmp/tmp.c864iJVJt4'

## Checking for existing installations...

+ rpm -qa 'node|npm' | grep -v nodesource

## Run `sudo yum install -y nodejs` to install Node.js 14.x and npm.
## You may run dnf if yum is not available:
     sudo dnf install -y nodejs
## You may also need development tools to build native addons:
     sudo yum install gcc-c++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
     sudo yum install yarn

[root@ip-10-1-0-71 ~]# yum install -y nodejs
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                                                                                                                          | 3.7 kB  00:00:00
amzn2extra-ansible2                                                                                                                                                                 | 3.0 kB  00:00:00
amzn2extra-docker                                                                                                                                                                   | 3.0 kB  00:00:00
amzn2extra-php7.4                                                                                                                                                                   | 3.0 kB  00:00:00
amzn2extra-redis4.0                                                                                                                                                                 | 3.0 kB  00:00:00
epel/x86_64/metalink                                                                                                                                                                |  13 kB  00:00:00
epel                                                                                                                                                                                | 4.7 kB  00:00:00
nodesource                                                                                                                                                                          | 2.5 kB  00:00:00
(1/15): amzn2-core/2/x86_64/group_gz                                                                                                                                                | 2.5 kB  00:00:00
(2/15): amzn2-core/2/x86_64/updateinfo                                                                                                                                              | 419 kB  00:00:00
(3/15): amzn2extra-docker/2/x86_64/primary_db                                                                                                                                       |  85 kB  00:00:00
(4/15): amzn2extra-php7.4/2/x86_64/updateinfo                                                                                                                                       |   76 B  00:00:00
(5/15): amzn2extra-ansible2/2/x86_64/primary_db                                                                                                                                     |  39 kB  00:00:00
(6/15): amzn2extra-redis4.0/2/x86_64/updateinfo                                                                                                                                     |   76 B  00:00:00
(7/15): amzn2extra-docker/2/x86_64/updateinfo                                                                                                                                       |   76 B  00:00:00
(8/15): amzn2extra-ansible2/2/x86_64/updateinfo                                                                                                                                     |   76 B  00:00:00
(9/15): amzn2extra-php7.4/2/x86_64/primary_db                                                                                                                                       | 275 kB  00:00:00
(10/15): amzn2extra-redis4.0/2/x86_64/primary_db                                                                                                                                    |  11 kB  00:00:00
(11/15): epel/x86_64/group_gz                                                                                                                                                       |  96 kB  00:00:00
(12/15): epel/x86_64/updateinfo                                                                                                                                                     | 1.0 MB  00:00:00
(13/15): amzn2-core/2/x86_64/primary_db                                                                                                                                             |  57 MB  00:00:01
(14/15): nodesource/x86_64/primary_db                                                                                                                                               |  49 kB  00:00:00
(15/15): epel/x86_64/primary_db                                                                                                                                                     | 7.0 MB  00:00:01
247 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:14.18.1-1nodesource will be installed
--> Finished Dependency Resolution

Dependencies Resolved

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

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

Total download size: 32 M
Installed size: 92 M
Downloading packages:
nodejs-14.18.1-1nodesource.x86 FAILED                                                  90% [=====================================================================-       ]  22 MB/s |  29 MB  00:00:00 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 ETA
Trying other mirror.


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

shermaza avatar Nov 03 '21 23:11 shermaza

Similar to #1126, I am able to yum install -y nodejs-14.17.1-1nodesource which would be the previous version. I'm curious if this could be the same issue as what @igsu described here?

https://github.com/nodesource/distributions/issues/1126#issuecomment-717440963

shermaza avatar Nov 03 '21 23:11 shermaza

We are using GitHub hosted runners. I am not 100% sure which regions they use. But it does feel like a cache issue.

malsabbagh avatar Nov 03 '21 23:11 malsabbagh

We've also just run into this issue using GH hosted runners

slaughtr avatar Nov 03 '21 23:11 slaughtr

Having the exact same issue here, running on us-west-1.

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.

asiegle avatar Nov 04 '21 00:11 asiegle

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?

neurostream avatar Nov 04 '21 00:11 neurostream

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

keepevets avatar Nov 04 '21 00:11 keepevets

We get No package nodejs-12.22.6-1nodesource available. Error: Nothing to do. error when trying to install via sudo yum install nodejs-12.22.6-1nodesource -y command

GProst avatar Nov 04 '21 01:11 GProst

We get No package nodejs-12.22.6-1nodesource available. Error: Nothing to do. error when trying to install via sudo yum install nodejs-12.22.6-1nodesource -y command

try running curl --silent --location https://rpm.nodesource.com/setup_12.x | sudo bash - first, unless you're trying to install a different major version other than 12

keepevets avatar Nov 04 '21 01:11 keepevets

Yeah, I forgot to revert setup_14.x after testing 🤦🏼‍♂️ works now, thanks

GProst avatar Nov 04 '21 01:11 GProst

Having the same issue started about 1.5 hours ago on autoscaling AWS:

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.

DaveCollinsJr avatar Nov 04 '21 02:11 DaveCollinsJr

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!

DaveCollinsJr avatar Nov 04 '21 03:11 DaveCollinsJr

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!

Hi @DaveCollinsJr you try it with 12.22.7 first? per your original comment.

jonathonyuen-spotcap avatar Nov 04 '21 03:11 jonathonyuen-spotcap

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

devinstewart avatar Nov 04 '21 03:11 devinstewart

I'm having the same issue in AWS Singapore.

willbt avatar Nov 04 '21 03:11 willbt

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

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

zrhoffman avatar Nov 04 '21 03:11 zrhoffman

As a workaround I used following command

sudo yum install -y nodejs-16.12.0

pavankjadda avatar Nov 04 '21 05:11 pavankjadda

Happened this night in AWS eu-west-1.... It locked all our ASG/launchconfig deployment.

Will implement something like this: yum -y install nodejs || yum install -y nodejs-16.12.0 as a fallback, but I do not really like having to maintain/update this version...

Any news on an ETA for a fix ?

VRevol avatar Nov 04 '21 09:11 VRevol

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

gunjanpatel avatar Nov 04 '21 09:11 gunjanpatel