Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Node.js 18 on contos 9 Installation fail SHA1 #1693

Closed
phoneben opened this issue Oct 20, 2023 · 8 comments
Closed

[ERROR] Node.js 18 on contos 9 Installation fail SHA1 #1693

phoneben opened this issue Oct 20, 2023 · 8 comments

Comments

@phoneben
Copy link

warning: Signature not supported. Hash algorithm SHA1 not available.
Key import failed (code 2). Failing package is: nodejs-2:18.18.2-1nodesource.x86_64

Distribution Information:

  • OS: centos
  • Version 9

Node Version:
Node.js v18.18.2:

To Reproduce
sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1

Expected behavior
just work

Additional context
the work around for now is to allow sha 1
update-crypto-policies --set DEFAULT:SHA1
reboot
after change it back
update-crypto-policies --set DEFAULT
reboot
as in post from redhat
https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9
sha1 is depreciated by default

@nexryai
Copy link

nexryai commented Nov 8, 2023

I have the same problem on RockyLinux 9 and can't install Node20.

@divishav
Copy link

divishav commented Nov 9, 2023

Facing the same error in Oracle linux 9, failing to install Node 18.18.2

@jcox10
Copy link

jcox10 commented Dec 18, 2023

Duplicate of #1653

@JesusPaz
Copy link
Contributor

JesusPaz commented Jan 2, 2024

This issue is now resolved, please run the new scripts:

curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
yum install -y nodejs

@JesusPaz JesusPaz closed this as completed Jan 2, 2024
@BioEngLuisPereira
Copy link

Well...did so and nothing changed:

The GPG keys listed for the "Node.js Packages for Linux RPM based distros - x86_64" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.. Failing package is: nodejs-2:18.19.0-1nodesource.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/NODESOURCE-NSOLID-GPG-SIGNING-KEY-EL
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

Did it worked for everyone else?
I'm on Oracle linux 9.

Thank you.

@JesusPaz
Copy link
Contributor

@BioEngLuisPereira doesn't work for you?
I don't have this problem, try running the script.

curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
dnf install -y nodejs

image

@BioEngLuisPereira
Copy link

Thanks for the quick repply.
Unfortunaly I'm not being able to test it since I'm at the free instances limits =.
After this issue, I went straight to Oracle Linux 8 instance and all worked well, had to install nodejs v18 though.
So, your suggestion could solve the issue since it points to v18 instead of v20.
It might come to be usefull to the next guy.

Thank you.

@jcox10
Copy link

jcox10 commented Feb 1, 2024

I don't think your gpgkey is correct in the repo file, it should be NODESOURCE-GPG-SIGNING-KEY-EL. Installing as @JesusPaz has recommended should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants