Closed joshxyzhimself closed 2 years ago
Any updates on this? Ubuntu 22.04 is schedule to be released in 2 days (April 21, 2022).
Ubuntu 22.04 has released
Changes to support Ubuntu 22.04 are already on our server. It is necessary to wait for a new Node.js version for the changes to be applied.
How long do you think it will be before there is an update?
How long do you think it will be before there is an update?
You can make a guess from this: https://github.com/nodejs/node/releases Probably a week or two. They just did a major release two days ago.
I agree with @mwt.
There is also the option to install the packages manually by following our README.
There is also the option to install the packages manually by following our README.
It's a single package repo. So you could also just install the appropriate file from this folder (probably this one). By the time you can update, the script will be working.
There is also the option to install the packages manually by following our README.
Is the above suggestion expected to work?
Following the above instructions leads to this error message FYI:
$ sudo apt-get update
Get:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:4 https://deb.nodesource.com/node_18.x jammy InRelease
Err:5 https://deb.nodesource.com/node_18.x jammy Release
404 Not Found [IP: 23.44.133.12 443]
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
E: The repository 'https://deb.nodesource.com/node_18.x jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
(FYI 23.44.133.12 is pingable, which is just to confirm that this is not a network/connectivity issue.)
No, you'd have to set it to one of the supported dists like focal instead of jammy.
It's a single package repo. So you could also just install the appropriate file from this folder (probably this one). By the time you can update, the script will be working.
Thanks — that seems to work:
$ sudo apt install ./nodejs_18.0.0-deb-1nodesource1_amd64.deb
...
N: Download is performed unsandboxed as root as file '/root/nodejs_18.0.0-deb-1nodesource1_amd64.deb' couldn't be
accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
The above warning would appear to be harmless. As indicated by:
$ apt list nodejs
Listing... Done
nodejs/now 18.0.0-deb-1nodesource1 amd64 [installed,local]
$ node -v
v18.0.0
$ npm -v
8.6.0
$ cat /etc/issue.net
Ubuntu 22.04 LTS
I agree with @mwt.
There is also the option to install the packages manually by following our README.
I tried this manual installation - with out any luck. My /etc/apt/sources.list.d looks like this:
cat /etc/apt/sources.list.d/nodesource.list
deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x focal main
deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x focal main
But I still get this error when doing an update:
Ign:1 https://deb.nodesource.com/node_18.x focal InRelease
Err:2 https://deb.nodesource.com/node_18.x focal Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 5.186.13.19 443]
I'm on WSL v1 on a windows 10 and suspecting this might be a root cause. A lsb_release -a gives me this:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
I need to update my node.js which is version v10.19.0
@LadyCharlotte do you appy point 2 of "readme"
KEYRING=/usr/share/keyrings/nodesource.gpg curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
gpg --no-default-keyring --keyring "$KEYRING" --list-keys
@akpatternica
from my bash history:
550 curl -fsSLk https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | sudo tee "$KEYRING" >/dev/null
551 gpg --no-default-keyring --keyring "$KEYRING" --list-keys
552 VERSION=node_18.x
553 KEYRING=/usr/share/keyrings/nodesource.gpg
554 DISTRO="$(lsb_release -s -c)"
555 echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
556 echo "deb-src [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
557 sudo apt-get update
As you might notice above, I always need to add the -k to curl to suppress the certificate-issue. I still need to figure out why and how to fix it.
By now, I downloaded the deb-package as suggested by @mwt above, and this seemed to work:
node --version
v18.0.0
But, I would still like to understand my certificate-issue. I constantly get this, also when updating other packages in /etc/apt/sources.list.d/
I'm running into this issue too, please take a look!!
## Your distribution, identified as "jammy", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
I ran into the same issue, I installed it through nvm
sudo apt install curl
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.bashrc
nvm install 16.14.2
It's a single package repo. So you could also just install the appropriate file from this folder (probably this one). By the time you can update, the script will be working.
Thanks — that seems to work:
$ sudo apt install ./nodejs_18.0.0-deb-1nodesource1_amd64.deb ... N: Download is performed unsandboxed as root as file '/root/nodejs_18.0.0-deb-1nodesource1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
The above warning would appear to be harmless. As indicated by:
$ apt list nodejs Listing... Done nodejs/now 18.0.0-deb-1nodesource1 amd64 [installed,local] $ node -v v18.0.0 $ npm -v 8.6.0 $ cat /etc/issue.net Ubuntu 22.04 LTS
thanks, this seems to work.
Changes to support Ubuntu 22.04 are already on our server. It is necessary to wait for a new Node.js version for the changes to be applied.
That might be but that still does not help thousands of devs stuck on a major OS release without nodejs.
That might be but that still does not help thousands of devs stuck on a major OS release without nodejs.
I would hope that there isn't thousands of devs who upgrade to new distro version not even a week since its release without first checking that their work environment won't be affected by it...
That might be but that still does not help thousands of devs stuck on a major OS release without nodejs.
I would hope that there isn't thousands of devs who upgrade to new distro version not even a week since its release without first checking that their work environment won't be affected by it...
Was a fresh install of WSL2 on a fresh install of W11. No upgrade.
Changes to support Ubuntu 22.04 are already on our server. It is necessary to wait for a new Node.js version for the changes to be applied.
Yesterday NodeJS 16.15.0 got released, is it correct that I'm still getting this error when running apt update
?
E: The repository 'https://deb.nodesource.com/node_16.x jammy Release' does not have a Release file.
It is working now.. installed using
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
Indeed, https://deb.nodesource.com/node_16.x/dists/jammy/Release is now live.
https://deb.nodesource.com/node_18.x/dists/jammy/Release not yet however.
I was having this issue until recently. My usual way of installing Node in Ubuntu 20.04 Docker images was failing when I used an Ubuntu 22.04 base image. Things are now working on both Ubuntu versions (presumably thanks to the recent Node release?). Sharing the code below for completeness.
apt-get install --yes \
curl
curl -fsSL "https://deb.nodesource.com/setup_lts.x" |
bash -
apt-get install --yes \
nodejs
npm config set ignore-scripts true --global
corepack enable
Hello guys,
still have same issue
Confirming "jammy" is supported...
curl -sLf -o /dev/null 'https://deb.nodesource.com/node_18.x/dists/jammy/Release'
Your distribution, identified as "jammy", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
still have same issue
It will be fixed automatically at some point in the future. Please read above.
I’m aware this may be a long shot, but: is version 12 going to get a 22.04 build?
sudo curl -LO https://nodejs.org/dist/v18.0.0/node-v18.0.0-linux-x64.tar.xz
sudo tar -xvf node-v18.0.0-linux-x64.tar.xz
sudo cp -r node-v18.0.0-linux-x64/{bin,include,lib,share} /usr/
node --version # => v18.0.0
When distribution support will come ?
Indeed, https://deb.nodesource.com/node_16.x/dists/jammy/Release is now live.
https://deb.nodesource.com/node_18.x/dists/jammy/Release not yet however.
FYI https://nodejs.org/en/blog/release/v18.1.0/ = https://github.com/nodejs/node/releases/tag/v18.1.0 was released a couple hours ago.
This suggests Node.js 18.x support via nodesource.com for Ubuntu 22.04 will (probably!) be mainlined very shortly in coming days.
It is now possible to install Node.js v18 on Ubuntu 22.04
@JesusPaz will earlier Node.js releases be supported? as an example we need Node.js v14 for Ubuntu 22.04, but it is not there still: https://deb.nodesource.com/node_14.x/dists/
The script is still failing because https://deb.nodesource.com/node_18.x/dists/jammy/Release returns a 404.
18.x also has an release file
when install node 18
sudo apt-get install -y nodejs
it return this error:
Preparing to unpack .../nodejs_18.1.0-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (18.1.0-deb-1nodesource1) ...
dpkg: error processing archive /var/cache/apt/archives/nodejs_18.1.0-deb-1nodesource1_amd64.deb (--unpack):
trying to overwrite '/usr/share/systemtap/tapset/node.stp', which is also in package libnode72:amd64 12.22.9~dfsg-1ubuntu3
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_18.1.0-deb-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
UPDATE
The same error was also for node 16 lts. I fixed like this:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/nodejs_16.15.0-deb-1nodesource1_amd64.deb
I got the same error for node 18 on Ubuntu 22.04. But I fixed it like this:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get -o "Dpkg::Options::=–force-overwrite" install -y nodejs
sudo apt-get autoremove # cleans up libnode72