Add support for NodeSource changes to distribution following Fall 2023
At some point in Fall 2023, NodeSource changed their distribution of NodeJS to make all repositories from v18 onwards to use the nodistro
codename.
They only announced it in the readme of their distribution repo on Github, linked here: README.md @ 0ff1854
Legacy versions (14, 16) continue to use per-distro codenames.
However, this meant that v18 stopped getting security updates and bugfixes with the "jammy" or "focal" codenames. I discovered this with a deprecation warning.
This MR changes the node.sources.rtr
to only include v14 and v16 for their per-distro changes.
It adds nodesource.sources.rtr
to include the new nodistro
codename for v18+, and the new key name.
The new GPG key for nodistro
is taken from here: https://github.com/nodesource/distributions/blob/master/scripts/deb/setup_18.x