Artix Linux Forum

Artix Linux => Package management => Topic started by: raziel_432 on 16 June 2021, 12:43:00

Title: [SOLVED] package pgp signature problem
Post by: raziel_432 on 16 June 2021, 12:43:00
I had a problem and reinstalled my system, but after the reinstall I can't update or install any package.
Here's my output:
Code: [Select]
sudo pacman -S gnupg
warning: gnupg-2.2.27-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) gnupg-2.2.27-1

Total Download Size:   2,41 MiB
Total Installed Size:  9,87 MiB
Net Upgrade Size:      0,00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 gnupg-2.2.27-1-x...     2,4 MiB  3,21 MiB/s 00:01 [##################] 100%
(1/1) checking keys in keyring                     [##################] 100%
(1/1) checking package integrity                   [##################] 100%
error: gnupg: signature from "Artix Buildbot <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/gnupg-2.2.27-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Before the reinstall my gnupg was a newer version, so maybe Artix Buildbot's signature was made with a newer gnupg?
Title: Re: package pgp signature problem
Post by: raziel_432 on 16 June 2021, 13:12:18
I also got a "Installation Failed" python error at the end of the install, but it booted up fine.
So I was wondering if I got the error because the installer got this pgp signature problem.
Title: Re: package pgp signature problem
Post by: strajder on 16 June 2021, 14:47:01
You should install packages from Artix's repositories: https://wiki.artixlinux.org/Main/Repositories

If there is no package you want in Artix's repository, you can try to install the one from Arch's repository, however there is no guarantee it will work:

https://artixlinux.org/news.php#Arch_repositories_made_optional

After installing artix-archlinux-support, do the steps indicated by the install script.
Title: Re: package pgp signature problem
Post by: alium on 16 June 2021, 16:38:22
Code: [Select]
pacman -S artix-keyring
pacman-key --populate artix
does not help you?
Title: Re: package pgp signature problem
Post by: raziel_432 on 16 June 2021, 16:56:26
Code: [Select]
pacman -S artix-keyring
pacman-key --populate artix
does not help you?
Thank you mate, after 'sudo pacman-key --populate artix' and 'sudo pacman -S artix-keyring' everything works now.

You should install packages from Artix's repositories: https://wiki.artixlinux.org/Main/Repositories

If there is no package you want in Artix's repository, you can try to install the one from Arch's repository, however there is no guarantee it will work:

https://artixlinux.org/news.php#Arch_repositories_made_optional

After installing artix-archlinux-support, do the steps indicated by the install script.
It was a new install from a weekly iso. I was just trying to update the system, there were no arch repos.
Title: Re: [SOLVED] package pgp signature problem
Post by: strajder on 16 June 2021, 18:16:49
Glad you solved the problem.
Title: Re: [SOLVED] package pgp signature problem
Post by: raziel_432 on 16 June 2021, 20:04:19
Thanks, I also didn't realize Artix removed the arch repos from pacman.conf. Thanks for the link!