The steps of this article were done on ubuntu 20.04 with gpg 2.2.19.
To check your ubuntu version, follow this How-To.
Start the command for a full key-pair generation
gpg --full-gen-key
gpg (GnuPG) 2.2.19; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3)…