问题描述
设置:具有6核和3GB RAM的虚拟机上的Ubuntu服务器.
Setup : Ubuntu Server on Virtual Machine with 6 cores and 3GB of RAM.
当我试图通过GPG
像这样gpg --gen-key
生成asymmetric key pair
时.我收到以下错误:
when I am trying to generate a asymmetric key pair
via GPG
like this gpg --gen-key
. I get the following error :
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy!
我尝试了一下Google.这就是我所意识到的,我需要启动另一个终端并输入cat /udev/random
->它会随机生成一系列随机生成的值以增加熵.
I tried to google a little bit. This is what I realise ,I need to fire up another terminal and type in cat /udev/random
--> It randomly generates a series of randomly generated values to increase the entropy.
我在这里没有看到任何变化watch cat /proc/sys/kernel/random/entropy_avail
I dont see any change in here watch cat /proc/sys/kernel/random/entropy_avail
它仍然持续给我同样的错误
and it still persists to give me the same error
推荐答案
运行以下命令:
find / > /dev/null
这帮助我快速完成了密钥生成.
That helped me quickly to complete my key generation.
这篇关于PGP:没有足够的随机字节.请做一些其他工作,使操作系统有机会收集更多的熵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!