Debian repository signing key uses SHA1, will be rejected by apt policy in February 2026
Description
The NodeSource APT repository for Debian is using a GPG signing key with SHA1 hashing, which is being flagged by apt's security policy and will be rejected starting February 1, 2026.
Environment
- Distribution: Debian Trixie (testing)
- Repository:
https://deb.nodesource.com/node_20.x - Node.js version: 20.19.6-1nodesource1
- Date: December 24, 2025
Current Behavior
When running apt update --audit, the following warning and audit messages appear:
Warning: https://deb.nodesource.com/node_20.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details
Audit: https://deb.nodesource.com/node_20.x/dists/nodistro/InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is:
Signing key on 6F71F525282841EEDAF851B42F59B5F99B1BE0B4 is not bound:
No binding signature at time 2025-12-04T19:30:50Z
because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance
because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
Expected Behavior
The repository signing key should use a modern hashing algorithm (SHA256 or stronger) that complies with current APT security policies.
Impact
- Current: Repository still functions but generates security warnings
- After February 1, 2026: APT will reject the repository signature, preventing package installations and updates
Affected Key
- Key ID:
6F71F525282841EEDAF851B42F59B5F99B1BE0B4 - Issue: Uses SHA1 for binding signatures
Suggested Solution
Please update the repository signing key to use SHA256 or SHA512 hashing algorithms to ensure compatibility with modern APT security policies.
Additional Context
This affects all users on Debian systems (and potentially Ubuntu) using the NodeSource repositories. The deadline is approaching in approximately two months.
Workaround
Users can temporarily ignore the warning or switch to alternative Node.js installation methods (nvm, official Debian packages, etc.), but an official fix would be preferred to maintain the repository's reliability.
๐ CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
- [ ] Create Plan
๐ Similar Issues
Related Issues
- https://github.com/nodesource/distributions/issues/1882
- https://github.com/nodesource/distributions/issues/1904
- https://github.com/nodesource/distributions/issues/1887
๐งช Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
๐ฌ Have feedback or questions? Drop into our discord!
same for version 22 :)
Thanks for the update!
The fixes are now live in the repository. Weโve also integrated apt update --audit into our CI to catch these issues early moving forward.
Everything should be working smoothly now. You can check the changes here.
@JesusPaz thanks for the updates. I am trying to (yes, I know it is old!) install using setup_14.x on Ubuntu 20.04 and still have PUBKEY errors. Does the new signing key not work with any of the older versions? Can this be fixed?
build 21-Jan-2026 18:41:28 Get:5 https://deb.nodesource.com/node_14.x focal InRelease [4583 B]
build 21-Jan-2026 18:41:28 Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
build 21-Jan-2026 18:41:28 Err:5 https://deb.nodesource.com/node_14.x focal InRelease
build 21-Jan-2026 18:41:28 The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280
build 21-Jan-2026 18:41:29 Hit:7 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease
build 21-Jan-2026 18:41:30 Reading package lists...
error 21-Jan-2026 18:41:30 W: GPG error: https://deb.nodesource.com/node_14.x focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1655A0AB68576280
error 21-Jan-2026 18:41:30 E: The repository 'https://deb.nodesource.com/node_14.x focal InRelease' is not signed.
This is affecting us also on version 12.x...
Today is the day! shouldnt this be fixed by now?
Err:4 https://deb.nodesource.com/node_20.x nodistro InRelease
Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 6F71F525282841EEDAF851B42F59B5F99B1BE0B4 is not bound:
No binding signature at time 2026-01-19T15:27:46Z
because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance
because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
Fix (as root):
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
@AbelLykens this doesn't work, because its still SHA1
The issue is not fixed. The GPG key still contains SHA1 binding signatures:
$ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --list-packets 2>&1 | grep 'digest algo'
digest algo 10, begin of digest bd 02
digest algo 2, begin of digest 4f ce
Digest algo 2 is SHA1. The key needs to be re-signed with SHA256+ self-signatures.
Current behavior on Debian Trixie (Feb 2, 2026):
Err:10 https://deb.nodesource.com/node_22.x nodistro InRelease
Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on 6F71F525282841EEDAF851B42F59B5F99B1BE0B4 is not bound:
No binding signature at time 2026-01-23T18:12:38Z
because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance
because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
Please reopen this issue.
I logged a new issue about this, #1920. Definitely still a problem. Workaround there if you need it.
It works on Debian 13 with @AbelLykens command. You just need to make sure that your sources.list is using the right key:
deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main
@Alwaysin what version Debian are you running?
Yeah I think this policy is only in place as of Debian 13.
It works on Debian 13 with @AbelLykens command. You just need to make sure that your sources.list is using the right key:
deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main
works for me too :)
Confirmed, this appears to be working again.
Why the change in key location? Why not just copy the key directly to where it's supposed to be, instead of copying it somewhere else and then having to update the source?
Is /etc/apt/keyrings outdated and /usr/share/keyrings preferred?
Why the change in key location? Why not just copy the key directly to where it's supposed to be, instead of copying it somewhere else and then having to update the source?
Is /etc/apt/keyrings outdated and /usr/share/keyrings preferred?
From man sources.list:
The recommended locations for keyrings are /usr/share/keyrings for keyrings managed by packages, and /etc/apt/keyrings for keyrings managed by the system operator.
For anyone still hitting the SHA1 rejection on Debian 13 (apt 2.8+):
Even though the repository key has been updated upstream, existing systems may still have the old key in their local keyring.
What worked for me was to completely replace the local keyring and ensure
the source entry explicitly uses signed-by=:
-
Remove old key and source entry
rm -f /usr/share/keyrings/nodesource.gpg rm -f /etc/apt/sources.list.d/nodesource.list -
Re-import the current key
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \ | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg -
Recreate the source entry
deb [signed-by=/usr/share/keyrings/nodesource.gpg] \ https://deb.nodesource.com/node_22.x nodistro main -
apt update
After replacing the local keyring, the SHA1 policy error disappeared.