Fix EXPKEYSIG 1655A0AB68576280
NodeSource Node.js <gpg@nodesource.com> — by NodeSource
EXPKEYSIG 1655A0AB68576280 NodeSource Node.js <gpg@nodesource.com>
Fix commands for Ubuntu
Method 1 Modern method (Debian 11+ / Ubuntu 22.04+)
The modern approach stores keys in /usr/share/keyrings/ as binary .gpg files and references them per-repository. This avoids the deprecated apt-key ring.
Method 2 Legacy apt-key method (Debian 10 / Ubuntu 20.04 and older)
Uses apt-key which is deprecated but still functional on older systems.
Method 3 Direct download from official source
Downloads the key directly from the official vendor URL. Preferred when available as it does not rely on keyservers.
After importing the key
Run sudo apt-get update (or your distro's equivalent)
again. If successful you should see Hit: lines with no
EXPKEYSIG warnings. Still broken?
Check that your /etc/apt/sources.list.d/ entry references the correct
[signed-by=…] keyring path.