Here is a demonstration of the problem, starting with an otherwise empty GNUPGHOME:
0 dkg@alice:/tmp/cdtemp.pipIPp$ gpg -e -r 'daniel <dkg@fifthhorseman.net>' foo.txt gpg: daniel <dkg@fifthhorseman.net>: skipped: No public key gpg: foo.txt: encryption failed: No public key 2 dkg@alice:/tmp/cdtemp.pipIPp$ gpg -e -r '<dkg@fifthhorseman.net>' foo.txt gpg: <dkg@fifthhorseman.net>: skipped: No public key gpg: foo.txt: encryption failed: No public key 2 dkg@alice:/tmp/cdtemp.pipIPp$ gpg -e -r 'dkg@fifthhorseman.net' foo.txt gpg: key F20691179038E5C6: public key "Daniel Kahn Gillmor <dkg@fifthhorseman.net>" imported gpg: Total number processed: 1 gpg: imported: 1 gpg: no ultimately trusted keys found gpg: B0A9B7B2D8D2CE47: There is no assurance this key belongs to the named user sub cv25519/B0A9B7B2D8D2CE47 2019-01-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net> Primary key fingerprint: C4BC 2DDB 38CC E964 85EB E9C2 F206 9117 9038 E5C6 Subkey fingerprint: 88DE 0083 5288 C784 E73A C940 B0A9 B7B2 D8D2 CE47 It is NOT certain that the key belongs to the person named in the user ID. If you *really* know what you are doing, you may answer the next question with yes. Use this key anyway? (y/N) y 0 dkg@alice:/tmp/cdtemp.pipIPp$
I'm seeing this with 2.2.17 in debian unstable, but discussion on gnupg-users indicates it has been a problem for many older versions as well.