You are not logged in.

#1 2021-04-19 07:51:07

adrianmay
Member
Registered: 2017-12-19
Posts: 64

Pacman keyring chicken and egg problem

Lots of pages recommend the following action for solving "error: key X could not be looked up remotely". Unfortunately:

[ad@piracy ~]$ sudo pacman -S archlinux-keyring 
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20210110-1

Total Installed Size:  1.31 MiB
Net Upgrade Size:      0.38 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                              [##########################################] 100%
downloading required keys...
error: key "6D42BDD116E0068F" could not be looked up remotely
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Admittedly the system has been neglected for a while.

Is there some way of telling pacman to just skip the key verification?

So far I've tried these:

sudo pacman -Syu
sudo pacman -S archlinux-keyring
sudo pacman -Sy
sudo pacman -S archlinux-keyring
sudo pacman-key --refresh-keys
sudo pacman-key --recv-keys 6D42BDD116E0068F
mkdir ~/Backups
sudo mv /etc/pacman.d/gnupg Backups/
sudo pacman-key --init
sudo pacman-key --populate
sudo pacman-key --refresh-keys
sudo pacman -S archlinux-keyring

but it always comes back to this problem.

Last edited by adrianmay (2021-04-19 07:56:12)

Offline

#2 2021-04-19 08:00:38

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Pacman keyring chicken and egg problem

Offline

#3 2021-04-19 09:03:44

adrianmay
Member
Registered: 2017-12-19
Posts: 64

Re: Pacman keyring chicken and egg problem

I read that page and it doesn't help. I don't suspect the key server is misbehaving so I didn't try the ubuntu one. I tried everything else there.

Offline

#4 2021-04-19 09:06:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,337

Re: Pacman keyring chicken and egg problem

The keyserver currently configured as default is often misbehaving since a few months, you should definitely try this.

Offline

#5 2021-04-19 10:08:32

adrianmay
Member
Registered: 2017-12-19
Posts: 64

Re: Pacman keyring chicken and egg problem

Thanks! That did indeed fix it.

Should all systems use the ubuntu server at the moment then?

Offline

Board footer

Powered by FluxBB