You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strace shows that aptly publish calls gpg --version (for me gpg (GnuPG) 2.2.12 libgcrypt 1.8.4), then gpg1 --version (for me gpg (GnuPG) 1.4.23), then settles on continuing with gpg1.
Finally it comes to gpg1 -o /tmp/aptly024000720/Release.gpg --digest-algo SHA256 --armor --yes -u 0xD4...3A --detach-sign /tmp/aptly024000720/Release, which fails with gpg: signing failed: secret key not available. If I manually execute the command line, but with gpg1 changed to gpg2, then it works.
Possible Implementation
Use gpg2 / gpg when gpg1 fails with secret key not available, or at least use it by default instead of explicitly calling gpg1.
Your Environment
After updating from Debian Stretch to Debian Buster (amd64) aptly publish stopped working.
Workaround
Uninstalling or temporarily disabling gnupg1 and gpgv1.
Exporting the secret key from gpg2 and importing to gpg1 (not checked).
The text was updated successfully, but these errors were encountered:
Looks like documentation is outdated (https://www.aptly.info/doc/feature/pgp-providers/), but the story is that aptly for a long time supported only GnuPG 1, and preferred that by default. When support for different gpg providers landed, aptly still prefers gpg1 to stay compatible with older versions. If you want to use gpg2, just add gpgProvider: gpg2` to your aptly config, and aptly will stick with gpg2.
aptly publish ...
started failing.Context
strace
shows thataptly publish
callsgpg --version
(for megpg (GnuPG) 2.2.12 libgcrypt 1.8.4
), thengpg1 --version
(for megpg (GnuPG) 1.4.23
), then settles on continuing withgpg1
.Finally it comes to
gpg1 -o /tmp/aptly024000720/Release.gpg --digest-algo SHA256 --armor --yes -u 0xD4...3A --detach-sign /tmp/aptly024000720/Release
, which fails withgpg: signing failed: secret key not available
. If I manually execute the command line, but withgpg1
changed togpg2
, then it works.Possible Implementation
Use
gpg2
/gpg
whengpg1
fails withsecret key not available
, or at least use it by default instead of explicitly callinggpg1
.Your Environment
After updating from Debian Stretch to Debian Buster (amd64)
aptly publish
stopped working.Workaround
gnupg1
andgpgv1
.The text was updated successfully, but these errors were encountered: