Feb 052012
When you upgrade pacman, you will get a message that says “run pacman –init” and when you do from a console (like on a remote server), you will then be presented with the following message:
# pacman-key --init
gpg: Generating pacman keychain master key...
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 282 more bytes)
There are numerous ways to generate entropy in Linux. Here are the ways I usually try in order because sometimes one will work right away and other times it won’t:
- Log in to the server in another console and leave the message on your screen.
- If you have the mlocate package installed, run the updatedb command…other wise go to step 3 (or install using ‘pacman -S mlocate’
- ls -R /
- find / -type f -exec ls -lta “{}” \;
Usually one of those three commands will get it done.