Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#28027 - How to generate entropy for 'pacman-key --init'.

Attached to Project: Pacman
Opened by Karol Błażewicz (karol) - Saturday, 21 January 2012, 13:15 GMT
Last edited by Dan McGee (toofishes) - Monday, 23 January 2012, 21:11 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


[root@greeen ~]# 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 300 more bytes)

An example of what could "other work" be would be welcome. As one forum member remarked, going off to do some house-cleaning doesn't help ;P
This task depends upon

Closed by  Dan McGee (toofishes)
Monday, 23 January 2012, 21:11 GMT
Reason for closing:  Upstream
Additional comments about closing:  Upstream, adding comments to wiki.
Comment by Ionut Biru (wonder) - Saturday, 21 January 2012, 14:21 GMT
that's a gpg message not a pacman-init one
Comment by Karol Błażewicz (karol) - Saturday, 21 January 2012, 14:31 GMT
Should I report it to or do you know a better place?
Comment by Dan McGee (toofishes) - Saturday, 21 January 2012, 19:59 GMT
Some of the suggestions in the wiki are pretty poor...installing the rngtools stuff simply creates fake entropy, not real entropy. The best thing you can do is something that creates disk activity; e.g. a `pacman-optimize` or `updatedb` operation are good choices.
Comment by Karol Błażewicz (karol) - Saturday, 21 January 2012, 20:04 GMT
Disk activity-based entropy generation has been suggested on the forum too [1], but I don't think it found its way to the wiki.

Comment by Allan McRae (Allan) - Saturday, 21 January 2012, 21:35 GMT
cat /dev/sda1
Comment by Jason William Walton (jasonww) - Sunday, 22 January 2012, 15:16 GMT
find /home -type f -exec /usr/bin/file -bi {} +
Comment by Karol Błażewicz (karol) - Monday, 23 January 2012, 21:09 GMT
I'll add your suggestions to the wiki, but can anyone point me to the upstream bugtracker? Is the right place? I'd prefer to get a proper hint in the terminal rather than search for the solution in the wiki / forums / ML etc.

Otherwise, feel free to close it.
Comment by Dan McGee (toofishes) - Monday, 23 January 2012, 21:11 GMT
Yes, that is upstream.