Re-bonjour J’ai trouvé la solution ici
man gpg-agentPlease make sure that a proper pinentry program has been installed un‐ der the default filename (which is system dependent) or use the option pinentry-program to specify the full name of that program. It is often useful to install a symbolic link from the actual used pinentry (e.g. ‘/usr/bin/pinentry-gtk’) to the expected one (e.g. ‘/usr/bin/pinen‐
try’). et https://debian-administration.org/article/378/Gnu_Privacy_Guard_Agent_GPG -- Benoit