How did I fix «gnupg, gnupg2 and gnupg1 do not seem to be installed» on Debian 10?

01

apt-get install gnupg

stackoverflow.com/a/50870265

How solve this ?

#0 0.257 E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
------

I recieve it even after installing it : apt-get update && apt-get install -y gnupg2 ?

Run the command from my solution (gnupg instead of gnupg2 and without -y) and carefully check the ouput.