Hi,
I’m wondering if anyone could help.
When running sudo pacman -Syu I get a bunch of these errors:
:: Import PGP key 9D4C5AA15426DA0A, “Frederik Schwan freswa@archlinux.org”? [Y/n] y
error: key “9D4C5AA15426DA0A” could not be looked up remotely
and then the update fails.
I have tried running the following commands to solve the problem:
sudo pacman -Sy archlinux-keyring && pacman -Su
Returns error:
error: archlinux-keyring: signature from “Christian Hesse eworm@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20230130-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
Also tried with:
sudo pacman-key --refresh-keys
Which generates to many errors to paste all here but here is a sample:
You need to try to get the pkg out of cache. Try deleting it when it fails the update. Then update the mirrors again and try. If you update the mirrors maybe you need to change your mirrors. Not sure what you are using? What country you are in?
Okay… but then you need to download the package. If the mirrors aren’t fetching the right packager or is fetching the same package is because the mirror isn’t synced and or it can’t download it. Hence why i say change your mirror locations and update them. Pick mirrors such as US or Germany etc. that are different from what you have and update them.
Thank you for your help, I apologize if I’m missing something. Is there a command I should run? I have uncommented every German and US server in /etc/pacman.d/mirrorlist file.
After that I try to update (sudo pacman -Syu) and get the following errors:
:: Proceed with installation? [Y/n] y
(184/184) checking keys in keyring [##########################################################################################################] 100%
downloading required keys…
:: Import PGP key 9D4C5AA15426DA0A, “Frederik Schwan freswa@archlinux.org”? [Y/n] y
error: key “9D4C5AA15426DA0A” could not be looked up remotely
:: Import PGP key C06086337C50773E, “Jelle van der Waa jelle@archlinux.org”? [Y/n] y
error: key “C06086337C50773E” could not be looked up remotely
:: Import PGP key 771DF6627EDF681F, “Tobias Powalowski tpowa@archlinux.org”? [Y/n] y
error: key “771DF6627EDF681F” could not be looked up remotely
:: Import PGP key 3B94A80E50A477C7, “Jan Alexander Steffens (heftig) heftig@archlinux.org”? [Y/n] y
error: key “3B94A80E50A477C7” could not be looked up remotely
:: Import PGP key 76A5EF9054449A5C, “Pierre Schmitz pierre@archlinux.org”? [Y/n] y
error: key “76A5EF9054449A5C” could not be looked up remotely
:: Import PGP key 139B09DA5BF0D338, “David Runge dvzrv@archlinux.org”? [Y/n] y
error: key “139B09DA5BF0D338” could not be looked up remotely
:: Import PGP key 51E8B148A9999C34, “Evangelos Foutras foutrelis@archlinux.org”? [Y/n] y
error: key “51E8B148A9999C34” could not be looked up remotely
:: Import PGP key E5BB298470AD4E41, “Sébastien Luttringer seblu@seblu.net”? [Y/n] y
error: key “E5BB298470AD4E41” could not be looked up remotely
:: Import PGP key 39E4B877E62EB915, “Sven-Hendrik Haase svenstaro@gmail.com”? [Y/n] y
error: key “39E4B877E62EB915” could not be looked up remotely
:: Import PGP key 786C63F330D7CB92, “Felix Yan felixonmars@archlinux.org”? [Y/n] y
error: key “786C63F330D7CB92” could not be looked up remotely
:: Import PGP key 9C02FF419FECBE16, “Morten Linderud foxboron@archlinux.org”? [Y/n] y
error: key “9C02FF419FECBE16” could not be looked up remotely
:: Import PGP key 0F65C7D881506130, “Maxime Gauduin alucryd@archlinux.org”? [Y/n] y
error: key “0F65C7D881506130” could not be looked up remotely
:: Import PGP key 66E60E5F785A6824, “Campbell Jones serebit@archlinux.org”? [Y/n] y
error: key “66E60E5F785A6824” could not be looked up remotely
:: Import PGP key 11675C743429DDEF, “Massimiliano Torromeo mtorromeo@archlinux.org”? [Y/n] y
error: key “11675C743429DDEF” 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.
Yes, because as you posted earlier, you already deleted it.
Well, I assume you just copied the exact command from the other thread, but you need to replace the key from the thread with the one you have problems with.