Security gnupg给了我一个错误;无效的公钥算法“;当我尝试使用旧钥匙时

Security gnupg给了我一个错误;无效的公钥算法“;当我尝试使用旧钥匙时,security,legacy,gnupg,Security,Legacy,Gnupg,当我尝试解密旧文件时,gpg2会出现以下错误: gpg: public key decryption failed: Invalid public key algorithm gpg: decryption failed: No secret key gpg: Ohhhh jeeee: no decrypt() for 17 secmem usage: 1664/2432 bytes in 5/8 blocks of pool 2432/32768 Abort trap: 6 gpg1给了我

当我尝试解密旧文件时,gpg2会出现以下错误:

gpg: public key decryption failed: Invalid public key algorithm
gpg: decryption failed: No secret key
gpg: Ohhhh jeeee: no decrypt() for 17
secmem usage: 1664/2432 bytes in 5/8 blocks of pool 2432/32768
Abort trap: 6
gpg1给了我这个错误:

gpg: public key decryption failed: Invalid public key algorithm
gpg: decryption failed: No secret key
gpg: Ohhhh jeeee: no decrypt() for 17
secmem usage: 1664/2432 bytes in 5/8 blocks of pool 2432/32768
Abort trap: 6

当您导入一个旧密钥而不是相应的公钥时,您会收到此消息。返回并导入公钥