I have the same problem running as root. I discovered that blacklisting the mwifiex_usb (responsible for wifi and bluetooth if I'm not mistaken) module "fixed" this problem: gpg doesn't hang anymore and the computer can now be shut down. Of course you lose wifi...
I added a comment to Bug #1165938 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1285390 Title: gpg hangs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnupg/+bug/1285390/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs