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:

  1. Log in to the server in another console and leave the message on your screen.
  2. If you have the mlocate package installed, run the updatedb command…other wise go to step 3 (or install using ‘pacman -S mlocate’
  3. ls -R /
  4. find / -type f -exec ls -lta “{}” \;

Usually one of those three commands will get it done.

This site uses Akismet to reduce spam. Learn how your comment data is processed.