Skip to main content
Topic: Pacman fails to update (Read 2351 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Pacman fails to update

Code: [Select]
downloading required keys...
:: Import PGP key C32217F6F13FF192, "Alexander Rødseth <[email protected]>"? [Y/n] Y
error: key "C32217F6F13FF192" could not be looked up remotely
:: Import PGP key 139B09DA5BF0D338, "David Runge <[email protected]>"? [Y/n] Y
error: key "139B09DA5BF0D338" 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.
I have tried pacman -S artix-keyring and it didnt help

Re: Pacman fails to update

Reply #1
Did you enable the universe repos?

Re: Pacman fails to update

Reply #2
as Lancia said about the universe, take it you added artix-archlinux-support, then arch repo's to pacman.conf?
https://wiki.artixlinux.org/Main/Repositories#Arch_repositories
 then ran:
sudo pacman-key --populate archlinux

I'm assuming this as the e-mail address is @archlinux.org so guessing its from arch repo and not artix's.

Re: Pacman fails to update

Reply #3
i added the universe repo and updated and i still get the same error

Re: Pacman fails to update

Reply #4
and the rest? Any other repo's added to pacman.conf?  list what you did afterwards (it updated after the initial install, so what was done between then and now?) would be a start (ref. the command i previously stated etc).  And if you hash out those repo's, still get an error?

Re: Pacman fails to update

Reply #5
i have multilib and have ran sudo pacman-key --populate archlinux

Re: Pacman fails to update

Reply #6
and whats been added since the last successful update and how long ago was that?

Re: Pacman fails to update

Reply #7
joe, hopefully someone else will pick this up 'cause it feels like playing "20 questions" at the moment! 

Re: Pacman fails to update

Reply #8
Another approach would be to figure out what packages are giving you those key errors. Then update everything else and finally update those or even uninstall and reinstall them. You can stop packages being updated using IgnorePkg in /etc/pacman.conf and / or selectively install things using pacman -S but be careful of the partial upgrade pitfalls when dealing with related items. It's most likely some packages from the Arch repos that are giving you those errors which narrows it down, also they are unlikely to be system critical items so you can (probably!) safely update everything else first.
How to find all packages you have installed from Arch repos:
Code: [Select]
pacman -Qq | grep -Fxf <(pacman -Slq extra community multilib) | grep -Fxvf <(pacman -Slq system world galaxy universe omniverse lib32)
https://forum.artixlinux.org/index.php/topic,2702.15.html
(Edit - updating just now I see there is a new version being installed, archlinux-keyring-20220727-1 which might help perhaps.)

Re: Pacman fails to update

Reply #9
Since I annoyingly didn't actually see a good answer here, this will fix the issue.  Problem is with the default server that is entered in /etc/pacman.d/gnupg/gpg.conf

keyserver hkp://pool.sks-keyservers.net

Replace the keyserver with a known working server and you should be able to get past the issue.  I'm personally using:

keyserver hkp://pgp.mit.edu:11371

for my keyserver and lets me finish my updates cleanly.
OS: Artix x86_64
Host: Predator PH517-61 V1.07
CPU: AMD Ryzen 7 2700 (16) @ 3.2GHz [112.4°F]
GPU: AMD ATI Radeon RX Vega 56/64
Memory: 1129MiB / 64390MiB


Re: Pacman fails to update

Reply #11
Whatever this problem is, it continues and changed the key server did not fix it

alsa-tools: signature from "David Runge <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/alsa-tools-1.2.5-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).



Re: Pacman fails to update

Reply #12
I would suggest this:
Code: [Select]
# pacman -Rs alsa-tools
$ ls /var/cache/pacman/pkg/alsa-tools-*
(check you will rm only what you intend!)
# rm /var/cache/pacman/pkg/alsa-tools-*
# pacman -Syu
# pacman -S alsa-tools

There is an alsa-tools in both Artix omniverse and Arch community, perhaps you have the wrong version in your cache somehow? Also updating just now (although on Gremlins) brought in a new archlinux-keyring-20230504-1 package. I notice you have output mentioning David Runge Arch linux, he is the packager for the Arch community package, Carlo Den Otter is the packager for the Artix omniverse package as shown by pacman -Si alsa-tools.

Re: Pacman fails to update

Reply #13
I finally got a realistic solution from friends on IRC and it is worth documenting and sharing

<xarthna> mkbrkyn: pacman-key --refresh-keys [email protected]

I don't know why this works.  This inside functionality of pacman is a mystery to me.

I uninstalled ALSA-TOOLS and did this

and then the reinstall went smooth as glass.