You are not logged in.

#1 2018-08-28 10:19:50

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 427
Website

[SOLVED] Pacman keyring broken - hangs on generating pacman keyring…

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)

Offline

#2 2018-08-28 11:33:57

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,353

Re: [SOLVED] Pacman keyring broken - hangs on generating pacman keyring…

Are you sure pacman-key is actually hanging and not just waiting for entropy?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-08-28 11:57:03

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 427
Website

Re: [SOLVED] Pacman keyring broken - hangs on generating pacman keyring…

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)

Offline

Board footer

Powered by FluxBB