Skip to main content
Topic: invalid or corrupted package (PGP signature) (Read 738 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

invalid or corrupted package (PGP signature)

Hello, I installed Artix yesterday and have been having problems installing anything at all using Pacman. I've been able to get some packages working, but sometimes pacman just breaks and nothing installs. Yes, I do understand that there are tons of other forum topics and questions about this issue, but after trying these solutions for hours nothing has worked.

So, here's my output (trying to install Lutris as an example):
Code: [Select]
native:[kai]:~$ sudo pacman -S lutris
resolving dependencies...
:: There are 2 providers available for python-dbus:
:: Repository world
   1) dbus-python
:: Repository extra
   2) dbus-python

Enter a number (default=1):
looking for conflicting packages...

Packages (17) cabextract-1.11-1  dbus-python-1.2.18-3  gnome-desktop-1:43.2-1
              gnome-desktop-common-1:43.2-1  libimagequant-4.1.1-1
              p7zip-1:17.05-1  python-certifi-2022.12.07-1
              python-chardet-5.1.0-1  python-distro-1.8.0-2
              python-evdev-1.6.1-1  python-idna-3.4-1  python-lxml-4.9.2-1
              python-pillow-9.4.0-2.1  python-requests-2.28.2-1
              python-urllib3-1.26.13-1  python-yaml-6.0-1  lutris-0.5.12-2

Total Download Size:    0.73 MiB
Total Installed Size:  36.12 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 lutris-0.5.12-2-any   745.3 KiB  2.30 MiB/s 00:00 [######################] 100%
(17/17) checking keys in keyring                   [######################] 100%
(17/17) checking package integrity                 [######################] 100%
error: lutris: signature from "Maxime Gauduin <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/lutris-0.5.12-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
native:[kai]:~$

Any help would be greatly appreciated and I hope to be able to continue using Artix as my daily driver.
- Kaimakan71


Re: invalid or corrupted package (PGP signature)

Reply #2
I've tried to perform the steps on this page, but now when updating with "sudo pacman -Syy", it gives me this error:
Code: [Select]
error: failed to synchronize all databases (no servers configured for repository)

EDIT: The error goes away if I comment out all of the Arch repos, so it has something to do with those

If it helps at all, here is my pacman.conf file:
Code: [Select]
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
Architecture = auto

[universe]
Server = https://universe.artixlinux.org/$arch
Server = https://mirror1.artixlinux.org/universe/$arch
Server = https://mirror.pascalpuffke.de/artix-universe/$arch
Server = https://artixlinux.qontinuum.space/artixlinux/universe/os/$arch
Server = https://mirror1.cl.netactuate.com/artix/universe/$arch
Server = https://ftp.crifo.org/artix-universe/$arch
Server = https://artix.sakamoto.pl/universe/$arch

# Artix
[system]
Include = /etc/pacman.d/mirrorlist

[world]
Include = /etc/pacman.d/mirrorlist

[galaxy]
Include = /etc/pacman.d/mirrorlist

[lib32]
Include = /etc/pacman.d/mirrorlist

# Arch
[extra]
Include = /etc/pacman.d/mirrorlist-arch

[community]
Include = /etc/pacman.d/mirrorlist-arch

[multilib]
Include = /etc/pacman.d/mirrorlist-arch

Re: invalid or corrupted package (PGP signature)

Reply #3
After enabling the Universe repo did you install artix-archlinux-support and follow the instructions in the pacman output following that command?


 

Re: invalid or corrupted package (PGP signature)

Reply #5
You must uncomment some servers in /etc/pacman.d/mirrorlist-arch, ones preferably near you.
This is exactly the problem I encountered once !

Someone very competent proposed on this forum to create a bash executable file (adapted for XFCE) that I use from time to time:
Code: [Select]
#!/bin/bash
exec xfce4-terminal --maximize -H -x sh -c 'curl -s "https://archlinux.org/mirrorlist/?country=FR&country=DE&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 - > ~/mirrorlist-arch; sudo cp ~/mirrorlist-arch /etc/pacman.d/mirrorlist-arch; cat /etc/pacman.d/mirrorlist-arch; exec bash;'
 
## If needed, run first : sudo pacman -Sy pacman-contrib && sudo touch /etc/pacman.d/mirrorlist-arch