johnlane
Posts: 55
Joined: Fri Jul 20, 2012 8:26 pm

Entropy for pacman-key --init

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

pepedog
Posts: 1044
Joined: Fri Oct 07, 2011 9:55 am

Re: Entropy for pacman-key --init

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

User avatar
ph0ng
Posts: 38
Joined: Tue Jul 17, 2012 9:37 am
Location: Sweden

Re: Entropy for pacman-key --init

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)

johnlane
Posts: 55
Joined: Fri Jul 20, 2012 8:26 pm

Re: Entropy for pacman-key --init

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

User avatar
ph0ng
Posts: 38
Joined: Tue Jul 17, 2012 9:37 am
Location: Sweden

Re: Entropy for pacman-key --init

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.

Return to “Arch”

Who is online

Users browsing this forum: No registered users and 4 guests