Artix Linux Forum

Artix Linux => Package management => Topic started by: Joe80129 on 01 August 2022, 10:38:52

Title: Pacman fails to update
Post by: Joe80129 on 01 August 2022, 10:38:52
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
Title: Re: Pacman fails to update
Post by: Lancia on 01 August 2022, 12:39:19
Did you enable the universe repos?
Title: Re: Pacman fails to update
Post by: gavincc on 01 August 2022, 13:47:17
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.
Title: Re: Pacman fails to update
Post by: Joe80129 on 01 August 2022, 13:51:47
i added the universe repo and updated and i still get the same error
Title: Re: Pacman fails to update
Post by: gavincc on 01 August 2022, 14:39:26
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?
Title: Re: Pacman fails to update
Post by: Joe80129 on 01 August 2022, 16:07:00
i have multilib and have ran sudo pacman-key --populate archlinux
Title: Re: Pacman fails to update
Post by: gavincc on 01 August 2022, 16:30:58
and whats been added since the last successful update and how long ago was that?
Title: Re: Pacman fails to update
Post by: gavincc on 01 August 2022, 16:40:19
joe, hopefully someone else will pick this up 'cause it feels like playing "20 questions" at the moment! 
Title: Re: Pacman fails to update
Post by: ####### on 01 August 2022, 17:32:50
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 (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.)
Title: Re: Pacman fails to update
Post by: psy0nic on 04 September 2022, 00:37:24
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.
Title: Re: Pacman fails to update
Post by: tintin on 04 September 2022, 06:07:49
I have possibly three links that have helped me out recently :
https://wiki.artixlinux.org/Main/Troubleshooting#Invalid_or_corrupted_packages_.28PGP_signature.29
https://forum.artixlinux.org/index.php/topic,2750.0.html
https://forum.artixlinux.org/index.php/topic,4495.0.html
Title: Re: Pacman fails to update
Post by: mrbrklyn on 07 May 2023, 04:59:24
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)).


Title: Re: Pacman fails to update
Post by: ####### on 07 May 2023, 16:51:06
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.
Title: Re: Pacman fails to update
Post by: mrbrklyn on 13 May 2023, 14:32:05
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.