It appears to be a duplicate of 78673, although for me it was failing with no /root/.gnupg directory rather than ~/.gnupg
It appears to be a duplicate of 78673, although for me it was failing with no /root/.gnupg directory rather than ~/.gnupg