Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30149 - pacman-key --init hangs after pacman 4.0.3-2 install

Attached to Project: Arch Linux
Opened by David Raymond (djraymondnm) - Wednesday, 06 June 2012, 02:50 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 06 June 2012, 03:12 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
After installing the version of pacman noted below, pacman-key --init
hangs if the file /etc/pacman.d/gnupg/secring.gpg has zero length. This happened
to me on one machine (for reasons unknown) while upgrading to pacman 4.0.3-2.
The solution on this machine was to copy a correct secring.gpg file from another
(healthy) machine. Pacman-key --init could then do its job and the following
pacman-key --populate archlinux worked fine.

I traced the hang to the %commit command in the routine "generate_master_key()"
in the pacman-key script. Beyond that I could not go, since I don't know
what %commit does.

Since I have no idea what caused the secring.gpg file to be of zero length, I
won't be able to reproduce this sequence, since it happened randomly on one
(64 bit) machine out of three.

Some more sanity checking on input files while running pacman-key --init
might save a lot of trouble if/when this happens to somebody in the future.
Since this problem brings upgrading the system to a halt, I consider it to
be quite serious.


Additional info:
* package version(s)
pacman 4.0.3-2
* config and/or log files etc.
Nothing useful available.

Steps to reproduce:
Make the secring.gpg file of zero length after upgrading
to pacman 4.0.3-2 and run pacman-key --init. (Once pacman-key --init has
been run successfully, it doesn't seem to care anymore.)
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 06 June 2012, 03:12 GMT
Reason for closing:  Not a bug
Comment by Daniel Wallace (gtmanfred) - Wednesday, 06 June 2012, 03:05 GMT
Did you create entropy while it was "hanging"? you have to do things so that it can generate the key

Loading...