You are not logged in.
I just wanted to upgrade one of our digital signage systems:
$ LANG=C sudo pacman -Syu
error: homeinfo: key "ACE6BF50642535BDD9C2C7C96104DEF8A5913D83" is unknown
pacman did not terminate and hang there for several minutes, so I [Ctrl]-[C]ed it.
Then I ran
$ LANG=C sudo pacman-key --init
gpg: Generating pacman keyring master key...
And it hang there for ~5 minutes.
So I also canceled it.
I then ran
$ sudo rm -rf /etc/pacman.d/gnupg/
$ LANG=C sudo pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
And it hang again for several minutes.
Any thoughts on how I can fix the obiviously broken PGP stuff?
Last edited by schard (2018-08-28 12:20:44)
Online
Are you sure pacman-key is actually hanging and not just waiting for entropy?
Offline
How can I determine which is the case?
Okay, seems to be the case:
$ cat /dev/random
<nothing happens...>
What can I do?
Solution: haveged
$ sudo pacman -Sw haveged
# After checking SHA-256 sum of package file against reference package on local machine.
$ sudo pacman -U /var/cache/pacman/pkg/haveged-1.9.4-3-x86_64.pkg.tar.xz
$ sudo systemctl enable --now haveged.service
And there we go...
Last edited by schard (2018-08-28 12:16:56)
Online