Gpg does not replace subkey stubs with secret keys when importing secret keys

Run gpg --list-secret-keys --with-keygrip to get the keygrip of your special subkey, then delete ~/.gnupg/private-keys-v1.d/<keygrip>.key. Now, import your backup of the subkey. Everything will be OK.

1 Like