EXPKEYSIG debian ubuntu

Fix EXPKEYSIG 1655A0AB68576280

NodeSource Node.js <gpg@nodesource.com> — by NodeSource

Error message
EXPKEYSIG 1655A0AB68576280 NodeSource Node.js <gpg@nodesource.com>

Fix commands for RHEL / CentOS / AlmaLinux

Method 1 Import from official URL

Directly imports the GPG key from the vendor URL into the RPM database.

RHEL / CentOS / AlmaLinux — bash
$ sudo rpm --import https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key
$ sudo yum check-update || sudo dnf check-update

Method 2 Import via GnuPG then rpm

Compatible with RHEL, CentOS, AlmaLinux and Rocky Linux (both yum and dnf).

RHEL / CentOS / AlmaLinux — bash
$ gpg --keyserver hkps://keys.openpgp.org --recv-keys 1655A0AB68576280
$ gpg --export --armor 1655A0AB68576280 | sudo rpm --import -
$ sudo yum check-update || sudo dnf check-update

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.