You are not logged in.
Following an upgrade to my system (pacman -Syu), I am no longer able to decrypt a symmetrically-encrypted file via gpg -d $filename. After a dialog box pops up, I type in the correct password, and the following text appears on stderr:
Error while decrypting with "/usr/bin/gpg2":
gpg: AES.CFB encrypted data
gpg: encrypted with 1 passphrase
gpg: decryption failed: Bad session keyVersion information:
$ gpg --version
gpg (GnuPG) 2.2.29
libgcrypt 1.9.3-unknown
...The first thing I tried was to upgrade the system again (-Syu), but this didn't resolve the issue.
Then I tried downgrading the package with downgrader -a gnupg, but this didn't seem to locate the previous version (it re-installed the current one). Still, I restarted gpg-agent and reloaded with gpgconf --reload, however this did not solve the issue; the error message remained. I repeated this same procedure, but instead of using downgrader, I explicitly downgraded the package to (what I believed to be) its previous version via pacman -U /var/cache/pacman/pkg/gnupg-2.2.28-2-x86_64.pkg.tar.zst, with no change in result. There are no other gnupg package versions available in my cache directory to downgrade to.
Looking on the ArchLinux wiki, nothing in the Troubleshooting section seems to apply. I tried the "'Lost' keys, upgrading to gnupg version 2.1" section just for good measure - though my keys don't appear to be lost, and the import step for .gnupg/pubring.gpg failed, due to this gpg file not existing.
The most relevant thread I could find on this forum was this one, however the OP's issue resolved itself after another pacman -Syu, which did not work for me.
It's been about two months since the issue first appeared, so I am now posting here hoping someone might be able to help.
Offline