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 and 20 versions are not updated #1715

Closed
orgads opened this issue Nov 9, 2023 · 9 comments
Closed

[ERROR] Node.js 18 and 20 versions are not updated #1715

orgads opened this issue Nov 9, 2023 · 9 comments

Comments

@orgads
Copy link

orgads commented Nov 9, 2023

Describe your bug
Node versions are not updated for long time. 18.x is stuck on 18.17.1, and 20.x is stuck on 20.5.1.

It's been more than 3 months since the release of 20.5.1, and about 2 months since 20.6.0.

For 18.x, 3 months since 18.17.1 and almost 2 months since 18.18.0.

Is this project still maintained?

Distribution Information:

  • OS: Ubuntu lunar (23.04) and Debian bookworm

Node Version:

  • Node: 18.x, 20.x
@pomeo
Copy link

pomeo commented Nov 11, 2023

What's in your file /etc/apt/sources.list.d/nodesource.list?

@jgottlander
Copy link

I have a similar problem, that I think is related.
I've added the repository from nodesource, but when I try to install nodejs via apt, it installs the version provided with bookworm, which is 18.13.
when I type apt show nodejs -al it lists all available version, also from nodesource. But somehow the Debian package has higher priority when installing.

@jgottlander
Copy link

jgottlander commented Nov 12, 2023

I have a similar problem, that I think is related. I've added the repository from nodesource, but when I try to install nodejs via apt, it installs the version provided with bookworm, which is 18.13. when I type apt show nodejs -al it lists all available version, also from nodesource. But somehow the Debian package has higher priority when installing.

I remembered that I had set a custom priority for the stable repo to 900, from when installing firefox from unstable. I uncommented the setting and it installed nodejs version 20 as wanted.

@orgads
Copy link
Author

orgads commented Nov 12, 2023

What's in your file /etc/apt/sources.list.d/nodesource.list?

Ubuntu:

deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x lunar main

Debian:

deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x bookworm main

@pomeo
Copy link

pomeo commented Nov 12, 2023

What's in your file /etc/apt/sources.list.d/nodesource.list?

Ubuntu:

deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x lunar main

Debian:

deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x bookworm main

They no longer use the name of the distribution, you need to change to nodistro
deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main

@orgads
Copy link
Author

orgads commented Nov 12, 2023

Ok, I just found out that the updated distro should be nodistro.

I changed it and it looks good now.

Notice that the gpg instructions on https://deb.nodesource.com don't work on Debian testing. The gpg file should be stored in /etc/apt/trusted.gpg.d/nodesource.gpg, and there's no need to specify it in signed-by.

@orgads
Copy link
Author

orgads commented Nov 12, 2023

Is it possible to change the old ones to be symbolic links to nodistro?

@angryziber
Copy link

I have just realized that my node wasn't updated for several months. Definitely, symlinks should be there for backwards-compatibility

richardlau added a commit to richardlau/build that referenced this issue Jul 4, 2024
The old NodeSource repository stopped updating and the version of
Node.js installed from there is old (20.5.1). Update to use the
new repository, which will install Node.js 20.15.0 at the time of
this change.

Refs: nodesource/distributions#1715
richardlau added a commit to nodejs/build that referenced this issue Jul 5, 2024
The old NodeSource repository stopped updating and the version of
Node.js installed from there is old (20.5.1). Update to use the
new repository, which will install Node.js 20.15.0 at the time of
this change.

Refs: nodesource/distributions#1715
@MartinEmrich
Copy link

I have just realized that my node wasn't updated for several months. Definitely, symlinks should be there for backwards-compatibility

Either that, or please delete the old distro-specific distributions, so running apt-get update will present an error to act on. This way, I bet many will be stuck on old (possibly error-prone) versions for a long time, thinking they are running the latest version.

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