• We did not send an email asking for donations - please read this post.

Aptly said "gpg: no default secret key: secret key not available"

Fr. B

New Member
Joined
Oct 2, 2022
Messages
1
Reaction score
0
Credits
11
Why aptly said "gpg: no default secret key: secret key not available" when GPG works?


Code:
[email protected]:/home/frado/work/co/product_g$ export [email protected]
[email protected]:/home/frado/work/co/product_g$ export DEBFULLNAME='Frado Bhalla'
[email protected]:/home/frado/work/co/product_g$ echo $DEBEMAIL
[email protected]
[email protected]:/home/frado/work/co/product_g$ echo $DEBFULLNAME
Frado Bhalla
[email protected]:/home/frado/work/co/product_g$ gpg -K
/home/frado8/.gnupg/pubring.gpg
-------------------------------
sec   rsa3072 2022-09-28 [SC]
      0FA2D236135EA1B5849E4B6306CA7B9D3DB2353D
uid           [ unknown] Bhalla Frado <[email protected]>
ssb   rsa3072 2022-09-28 [E]

[email protected]:/home/frado/work/co/product_g$ gpg --list-keys --keyring secring.gpg
/home/frado8/.gnupg/pubring.gpg
-------------------------------
pub   rsa3072 2022-09-28 [SC]
      0FA2D236135EA1B5849E4B6306CA7B9D3DB2353D
uid           [ unknown] Bhalla Frado <[email protected]>
sub   rsa3072 2022-09-28 [E]

[email protected]:/home/frado/work/co/product_g$ echo test | gpg --clearsign
gpg: using "[email protected]" as default secret key for signing
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

test
-----BEGIN PGP SIGNATURE-----

iQHHBAEBCgAxFiEED6LSNhNeobWEnktjBsp7nT2yNT0FAmM4uwUTHGVpdmFub3Zh
QGxhYjUwLm5ldAAKCRAGynudPbI1PSOLC/90ONQwSumVw5tfzKee4mX0GHHZ4OIf
CuGDj4J6GqEzc5I9pU/ABlFzpmQgfxUgdNSTlSBnAH51uPtUTzrVhgSumLaflKLq
fFnt10XBmQycamGXkX+0Eu8YrohDkSN8zysTND0qGMiXd8a9uh8bMzz1g5+pf6HQ
LSNzeVL8wakamgpEnU5yUbI59hj1O8/gprF2S0qXq37PiWwOj2uZn3nUyuTO8q/Q
TSXyKtSYs7qjvw3jy8LUdLM8hWi2sZNse09p5ksQNvylDVB2ZUQ5BBhk8812esSb
WBq+ifR4DMaHRR91THpzJEGDIw6XLfso65VV/AFiilw+34HAdGbmJ2M0KOcxJeQd
BBGlvkmRlOgJzFt9KAep2MV8myybeyS2bTAwHspYbnj2h8zAxDgnGwRddApzyuNu
ot+O8LjUXzkvBOMVyAIVFFE3nFoTGwzpAGXoEXfmPmrTuyOkvlOLNmJWSQAda53/
HQNdmabJwHSyxlh0Glo8k4DxEUWIlKNYY4Q=
=O+Tw
-----END PGP SIGNATURE-----
[email protected]:/home/frado/work/co/product_g$ /home/frado/work/co/cui/cui/lbp-auto -b bundle.yml world bullseye
/home/frado/work/co/cui/cui/cui/program.py:86: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  options.update(**yaml.load(ymlfile))
INFO:cui:Использование ключа [email protected]
WARNING:debian.changelog:Found eof where expected first heading
INFO:cui.package:Обновление репозитория prod2 (/home/frado/work/co/cui/cache/prod2)
INFO:cui.package:Копирование debian/21.12.0.19 в /home/frado/work/co/cui/build/prod2/
INFO:cui.source:Модификация debian/changelog (bullseye) / Frado Bhalla <[email protected]>
ERROR: no results
INFO:cui.source:Создание архива ../prod2-csp_21.12.0.19+deb11.tar.xz
INFO:cui.deb.aptly:Экспорт репозитория product-bullseye
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
ERROR:cui:Ошибка публикации репозитория aptly product-bullseye
[email protected]:/home/frado/work/co/product_g$ export DEBFULLNAME='Bhalla Frado'
[email protected]:/home/frado/work/co/product_g$ /home/frado/work/co/cui/cui/lbp-auto -b bundle.yml world bullseye
/home/frado/work/co/cui/cui/cui/program.py:86: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  options.update(**yaml.load(ymlfile))
INFO:cui:Использование ключа [email protected]
WARNING:debian.changelog:Found eof where expected first heading
INFO:cui.package:Обновление репозитория prod2 (/home/frado/work/co/cui/cache/prod2)
INFO:cui.package:Копирование debian/21.12.0.19 в /home/frado/work/co/cui/build/prod2/
INFO:cui.source:Модификация debian/changelog (bullseye) / Bhalla Frado <[email protected]>
ERROR: no results
INFO:cui.source:Создание архива ../prod2-csp_21.12.0.19+deb11.tar.xz
INFO:cui.deb.aptly:Экспорт репозитория product-bullseye
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
ERROR:cui:Ошибка публикации репозитория aptly product-bullseye
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Latest posts

Top