Pacman

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.
Tasklist

FS#30286 - pacman-key --init hangs at "gpg: Generating pacman keychain master key...." until mouse input

Attached to Project: Pacman
Opened by Sam Pearson (spearson) - Thursday, 14 June 2012, 03:32 GMT
Last edited by Allan McRae (Allan) - Friday, 12 February 2016, 13:50 GMT
Task Type Bug Report
Category General
Status Unconfirmed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.3
Due in Version 5.1.0
Due Date Undecided
Percent Complete 0%
Votes 5
Private No

Details

Description:
After running pacman-key --init, the terminal will hang at
gpg: Generating pacman keychain master key
indefinitely with no output to the user.

In this forum post
https://bbs.archlinux.org/viewtopic.php?id=138684
many users confirm this happening, and a fix being "generating entropy" via running ls -R / in another terminal or by connecting and moving around a mouse while pacman-key --init is hanging. This input should be automated or it should be surfaced to the user that it is required.


Additional info:
* core/pacman 4.0.3-2 (base)


Steps to reproduce:
* with a fresh install of arch, run pacman-key --init
* notice that it hangs after the following output:

[root@(none) ~]# pacman-key --init
gpg:generating pacman keychain master key...

This task depends upon

Comment by Daniel Wallace (gtmanfred) - Thursday, 14 June 2012, 04:25 GMT
I agree with adding in the note that was in there before (not sure if it was gnupg that removed it or use, as pacman-key is just a gnupg wrapper)

but automating the generation of "random entropy" is silly
Comment by Tobias Powalowski (tpowa) - Thursday, 14 June 2012, 07:39 GMT
haveged can be used for entropy. Else hack on the keyboard start X and use the mouse etc.
Comment by Larry Johnson (keepitsimpleengineer) - Tuesday, 26 June 2012, 17:31 GMT
new first archlinux install by archlinux noob at console no gui, hangs as reported, workarounds don't work
Comment by Daniel Wallace (gtmanfred) - Tuesday, 26 June 2012, 17:42 GMT
they aren't work arounds...
run find /
cat files
curl websites
run telnet miku.acm.uiuc.edu
basically do stuff until entropy is generated
that wiki page on pacman-key mentions haveged if you must
Comment by Larry Johnson (keepitsimpleengineer) - Tuesday, 26 June 2012, 20:15 GMT
5 consoles running multiple "ls -R /" should produce enough entropy, right?
Comment by Daniel Wallace (gtmanfred) - Tuesday, 26 June 2012, 20:19 GMT
if you are on a VirtualMachine, just use havged... eitherway just use haveged
Comment by Larry Johnson (keepitsimpleengineer) - Tuesday, 26 June 2012, 20:51 GMT
5 consoles running multiple "ls -R /" should produce enough entropy, right?

Loading...