When I invoke
crux-sudo-edit, Emacs hangs forever with the following message:
until I press C-g, then it asks:
Passphrase for symmetric encryption for /home/$USER/.authinfo.gpg:
(When finding a file with "/sudo::/path/to/file/", Emacs doesn't hang but still want to decrypt my ~/.authinfo.gpg)
Because I don't save my root password there, I press another "C-g", but annoyingly another window shows up:
Error while decrypting with "/usr/bin/gpg2": gpg: error creating keybox '/home/$USER/.gnupg/pubring.kbx': No such file or directory gpg: keyblock resource '/home/$USER/.gnupg/pubring.kbx': No such file or directory gpg: AES.CFB encrypted data
And it doesn't disappear even after supplying my root password.
nil doesn't solve this.
This problem only appears after creating "~/.authinfo.gpg".