Entropy for pacman-key --init


5 posts
by johnlane » Thu Aug 02, 2012 7:51 pm
Anyone having problems getting pacman-key --init to work? When I do it it just sits at Generating pacman keychain master key, I believe waiting for entropy.

I've tried hitting keys until I was very bored. I've done an ls of the entire root tree, all those things suggested in the ArchLinux wiki. Still nothing...

Anyone else had this problem? How'd you get around it?
Raspberry Pi Utilities: https://github.com/johnlane/rpi-utils
For Raspberry Pi and Arch Linux
Posts: 44
Joined: Fri Jul 20, 2012 8:26 pm
by pepedog » Thu Aug 02, 2012 8:28 pm
I got this even on my i7
You don't have to do the keys
What you can do in the other terminal is install mlocate and run updatedb
Posts: 940
Joined: Fri Oct 07, 2011 9:55 am
by ph0ng » Fri Aug 03, 2012 9:12 am
Either you continue to hit the keys for hours, or you follow the advice here: https://wiki.archlinux.org/index.php/Pa ... he_keyring

I ran multiple iterations of ls -R /, like this
ls -R / && ls -R / && ls -R / && ls -R / && ls -R / (I don't remember the required number of times)
User avatar
Posts: 38
Joined: Tue Jul 17, 2012 9:37 am
Location: Sweden
by johnlane » Fri Aug 03, 2012 10:02 am
Hi, thanks for the comments. I tried mlocate but that didn't appear to help. What did help was this:

Code: Select all
pacman -S haveged
haveged -w 1024
pacman-key --init
pkill haveged
pacman -Rs haveged
Raspberry Pi Utilities: https://github.com/johnlane/rpi-utils
For Raspberry Pi and Arch Linux
Posts: 44
Joined: Fri Jul 20, 2012 8:26 pm
by ph0ng » Fri Aug 03, 2012 10:09 am
It would be nice of pacman to give some hint on why it (appears to) freeze on --init. That would spare a lot of support questions.
User avatar
Posts: 38
Joined: Tue Jul 17, 2012 9:37 am
Location: Sweden