How do I go about giving you debug information?
I am not operating in batch or unattended mode now. All lines in my user gpg.conf are commented out.
Before knowing the proper procedure for managing IDs graciously explained to me on this list, I deliberately created a temporary ID with a short time of validity so as to discard it when it expired (after about three days. Not intending to share the keys with anybody.) I deleted the ID after expiration and re-created a new ID with the same name. When it expired again I deleted it and created a new ID with the same name again; and that is when my problems started.
ayoub@vboxpwfl:~/testdir$ ls textfile
ayoub@vboxpwfl:~/testdir$ gpg -r develop1 -e textfile
ayoub@vboxpwfl:~/testdir$ ls textfile textfile.gpg
ayoub@vboxpwfl:~/testdir$ gpg -u develop1 -o textfile.dcr -d textfile gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: Unknown system error
ayoub@vboxpwfl:~/testdir$
ayoub@vboxpwfl:~/testdir$ gpg --list-keys
/home/ayoub/.gnupg/pubring.kbx
------------------------------
pub ed25519 2020-07-09 [SC] [expires: 2020-07-19]
3C5B212A55B966881E2D2718A45398B520BEE91E
uid [ultimate] sentry
sub cv25519 2020-07-09 [E] [expires: 2020-07-19]
pub ed25519 2020-07-09 [SC] [expires: 2021-07-09]
7A675D7F52BC905C22F8249091556BC29D4C595E
uid [ultimate] develop1
sub cv25519 2020-07-09 [E] [expires: 2021-07-09]
ayoub@vboxpwfl:~/testdir$ gpg --list-secret-keys
/home/ayoub/.gnupg/pubring.kbx
------------------------------
sec ed25519 2020-07-09 [SC] [expires: 2020-07-19]
3C5B212A55B966881E2D2718A45398B520BEE91E
uid [ultimate] sentry
ssb cv25519 2020-07-09 [E] [expires: 2020-07-19]
sec ed25519 2020-07-09 [SC] [expires: 2021-07-09]
7A675D7F52BC905C22F8249091556BC29D4C595E
uid [ultimate] develop1
ssb cv25519 2020-07-09 [E] [expires: 2021-07-09]
ayoub@vboxpwfl:~/testdir$
I am not operating in batch or unattended mode now. All lines in my user gpg.conf are commented out.
Before knowing the proper procedure for managing IDs graciously explained to me on this list, I deliberately created a temporary ID with a short time of validity so as to discard it when it expired (after about three days. Not intending to share the keys with anybody.) I deleted the ID after expiration and re-created a new ID with the same name. When it expired again I deleted it and created a new ID with the same name again; and that is when my problems started.
ayoub@vboxpwfl:~/testdir$ ls textfile
ayoub@vboxpwfl:~/testdir$ gpg -r develop1 -e textfile
ayoub@vboxpwfl:~/testdir$ ls textfile textfile.gpg
ayoub@vboxpwfl:~/testdir$ gpg -u develop1 -o textfile.dcr -d textfile gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: Unknown system error
ayoub@vboxpwfl:~/testdir$
ayoub@vboxpwfl:~/testdir$ gpg --list-keys
/home/ayoub/.gnupg/pubring.kbx
------------------------------
pub ed25519 2020-07-09 [SC] [expires: 2020-07-19]
3C5B212A55B966881E2D2718A45398B520BEE91E
uid [ultimate] sentry
sub cv25519 2020-07-09 [E] [expires: 2020-07-19]
pub ed25519 2020-07-09 [SC] [expires: 2021-07-09]
7A675D7F52BC905C22F8249091556BC29D4C595E
uid [ultimate] develop1
sub cv25519 2020-07-09 [E] [expires: 2021-07-09]
ayoub@vboxpwfl:~/testdir$ gpg --list-secret-keys
/home/ayoub/.gnupg/pubring.kbx
------------------------------
sec ed25519 2020-07-09 [SC] [expires: 2020-07-19]
3C5B212A55B966881E2D2718A45398B520BEE91E
uid [ultimate] sentry
ssb cv25519 2020-07-09 [E] [expires: 2020-07-19]
sec ed25519 2020-07-09 [SC] [expires: 2021-07-09]
7A675D7F52BC905C22F8249091556BC29D4C595E
uid [ultimate] develop1
ssb cv25519 2020-07-09 [E] [expires: 2021-07-09]
ayoub@vboxpwfl:~/testdir$