I'm trying to generate a GPG key on Ubuntu 16.10 and GPG is taking forever.
I googled a bit and found some websites, including some questions on StackExchange, suggesting to run an entropy generator like
rngd to help the system generate random numbers faster.
Some of these websites also encouraged to check
/proc/sys/kernel/random/entropy_avail, stating that, on their systems, it reported four-digit numbers before running GPG, and two to one-digit numbers while it was running.
I'm currently running GPG on my computer; it's been running for at least half an hour, and I'm getting this
$ cat /proc/sys/kernel/random/entropy_avail 3644
The number increases over time, and decreases very seldom by small amounts (after writing this sentence it's at 3801). I'm not running any random number generator. Actually, if I try to run one (e.g.
sudo rngd -fr /dev/random, it drops to around 50; if I use
/dev/urandom it stays around 3000).
Can anybody help me figure out what the hell is wrong with my system?
I'm on Linux 4.8.0-37-generic, gpg (GnuPG) 2.1.15, libgcrypt 1.7.2-beta.