You are not logged in.

#1 2015-02-12 12:53:01

Floris
Member
Registered: 2008-11-11
Posts: 10

[Solved] Pacman -Su stuck at downloading required keys

With updating my system (with pacman -Syu), pacman seems stuck with the last operation "Checking keys in the keyring". What I see is:

(167/167) checking keys in keyring                                 [####################################] 100%
downloading required keys...

After 20 minutes or so I killed the process and initialized the keyring from scratch, following the instructions on the wiki, hoping this would give some clues. Unfortunately, this problem still persists.

Any suggestions on what may be the problem, or how to fix it?

Last edited by Floris (2015-02-12 14:04:31)

Offline

#2 2015-02-12 12:58:43

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [Solved] Pacman -Su stuck at downloading required keys

Take a look at this wiki page: https://wiki.archlinux.org/index.php/Pa … mport_keys

I'm not sure this is the problem you're having (I'd expect an error/timeout rather than an indefinite stall), but the tips there may help resolve the problem.

EDIT:

It's probably a good idea to run pacman with --debug and paste the output here (in code tags) or on a pastebin service, it will (hopefully) let us know where the hangup is occurring.

Last edited by WorMzy (2015-02-12 13:01:18)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-02-12 13:13:41

Floris
Member
Registered: 2008-11-11
Posts: 10

Re: [Solved] Pacman -Su stuck at downloading required keys

Hmmm... no luck. The population of the keyring seems to work as expected. As suggested on the wiki, I now also tried cleaning the cache and have pacman download the packages again. Still stalls at downloading required keys.

Offline

#4 2015-02-12 13:25:53

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [Solved] Pacman -Su stuck at downloading required keys

Please see my edit regarding --debug output.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-02-12 14:03:52

Floris
Member
Registered: 2008-11-11
Posts: 10

Re: [Solved] Pacman -Su stuck at downloading required keys

Thanks for that hint. The debug showed that it was fetching a key remotely, and then nothing. With that, I was able to find this similar thread on this forum. I followed the suggested procedure:

mauritiusdadd wrote:

# rm -R /etc/pacman.d/gnupg/
# rm -R /root/.gnupg/  # only if the directory exists
# gpg --refresh-keys
# pacman-key --init && pacman-key --populate
# pacman-key --refresh-keys

and it solved the stall. I think that the second instruction really helped, because I did rebuild the keychain multiple times today. Apparently something was cached in the .gnupg folder that might have interfered.

Thanks!

Last edited by Floris (2015-02-12 16:54:23)

Offline

#6 2017-09-01 03:18:30

paulie4
Member
Registered: 2014-03-17
Posts: 2

Re: [Solved] Pacman -Su stuck at downloading required keys

After reloading the GnuPG keys, I got a bunch of errors saying the package keys were wrong, so I had to clear my package cache using "pacman -Sc" to be able to install any packages.

Offline

#7 2017-09-01 03:20:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Pacman -Su stuck at downloading required keys


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB