When trying to use the bash+curl verifying method on a server, this cryptic error message might happen:
gpg: signing failed: Inappropriate ioctl for device
Since this is a fatal error and also quite difficult to debug, maybe the fix could be put somewhere (in the provided command line?):
source