Check for presence of gpg2 as well as gpg.
Apparently some servers may have the former instead of the latter.