In Ubuntu this produces a "filename.txt.gpg" file and works:
$ gpg --symmetric --passphrase-file keyfile.key filename.txt
In debian, I get a popup requesting I enter a password...
How do I encrypt a file with a keyfile in debian?
gpg version in debian:
$ gpg --version
gpg (GnuPG) 2.2.10
libgcrypt 1.8.3