root@len-003:~# apt list aptly
Listing... Done
aptly/stable,stable,now 1.3.0+ds1-2.2~deb10u1 amd64 [installed]
aptly/stable,stable 1.3.0+ds1-2.2~deb10u1 i386
root@len-003:~#
root@len-003:~# aptly snapshot create eid-buster-amd64-snap from mirror eid-buster-amd64
Snapshot eid-buster-amd64-snap successfully created.
You can run 'aptly publish snapshot eid-buster-amd64-snap' to publish snapshot as Debian repository.
root@len-003:~# aptly publish snapshot eid-buster-amd64-snap
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
root@len-003:~# gpg --list-keys
gpg: checking the trustdb
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
/root/.gnupg/pubring.kbx
------------------------
pub rsa3072 2020-02-07 [SC]
62034D0EC6B823A3630662CA72360C179712C1A1
sub rsa3072 2020-02-07 [E]
root@len-003:~#
.