恰当地:“gpg:没有默认密钥”,但密钥没有过期

恰当地:“gpg:没有默认密钥”,但密钥没有过期

我有很好的未过期 gpg 密钥,但是当我运行时

aptly -architectures=all publish repo product
Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag)
Loading packages...
Generating metadata files and linking package files...
Finalizing metadata files...
Signing file 'Release' with gpg, please enter your passphrase when prompted:
gpg: no default secret key: secret key not available
gpg: signing failed: secret key not available
ERROR: unable to publish: unable to detached sign file: exit status 2

为什么?

答案1

适当使用gpg1,您需要使用gpg1创建密钥。这为我解决了这个问题:

gpg1 --gen-key

相关内容