Can't update my system

I tried these commands:

sudo pacman -Scc
sudo rm -R /etc/pacman.d/gnupg/
sudo gpg --refresh-keys
sudo pacman-key --init
sudo pacman-key --populate archlinux endeavouros
sudo pacman-key --refresh-keys
sudo pacman -S archlinux-keyring

edited pacman.conf SigLevel = Optional TrustAll

but still having pgp errors.

(translated to english),

:: Do you approve the installation? [Y / h] E
(127/127) checking keys in key fob (---------------------------------------- ] one hundred%
(127/127) checking package integrity (---------------------------------------- ] one hundred%
error: mesa: Signature from "Laurent Carlier <lordheavym@gmail.com>" is incorrect
The file :: /var/cache/pacman/pkg/mesa-20.3.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: chromium: Signature from "Evangelos Foutras <evangelos@f outrelis.com>" is incorrect
The file :: /var/cache/pacman/pkg/chromium-88.0.4324.96-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: electron: Incorrect signature from "Nicola Squartini <tensor5@ gmail.com>"
The file :: /var/cache/pacman/pkg/electron-11.2.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: go: Signature from "Morten Linderud <morten@linderud. pw>" is incorrect
File :: /var/cache/pacman/pkg/go-2:1.15.7-1-x86_64.pkg.tar.zst is corrupt (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: lib32-mesa: Signature from "Laurent Carlier <lordheavym@gmail. com>" is incorrect
The file :: /var/cache/pacman/pkg/lib32-mesa-20.3.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: linux-headers: Signature from "Jan Alexander Steffens (heftig) <jan.steffens@gmail. com>" is incorrect
The file :: /var/cache/pacman/pkg/linux-headers-5.10.9.arch1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: lsp-plugins: Signature from "David Runge <dvzrv@archlinux. org>" is incorrect
The file :: /var/cache/pacman/pkg/lsp-plugins-1.1.29-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: vulkan-radeon: signature from "Laurent Carlier <lordheavym@gmail. com>" is incorrect
The file :: /var/cache/pacman/pkg/vulkan-radeon-20.3.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: wxgtk3: Signature from "Antonio Rojas <arojas@archlinux. org>" is incorrect
The file :: /var/cache/pacman/pkg/wxgtk3-3.0.5.1-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: operation could not be performed (invalid or corrupted package)
An error has occurred, no packages have been updated.

Moderation Note: Added formatting

I think the packages were corrupted during download.

Manually delete the corrupted packages from your pacman cache directory and try again.

Maybe try a different mirror also, they may be corrupt there.

[lilcsz @ lilcsz ~] $ sudo pacman -Sc
[sudo] password for lilcsz:
Packages to keep:
  All locally installed packages

Cache directory: / var / cache / pacman / pkg /
:: Do you want all package files in the cache to be deleted? [Y / h] E
removing old packages in cache ...

Database directory: / var / lib / pacman /
:: Do you want to remove unused repositories? [Y / h] e
unused match stores are being removed ...
[lilcsz @ lilcsz ~] $ sudo pacman -Su
:: System update is starting ...
Resolving package dependencies ...
Checking for conflicts between packages, if any ...

Packages (127) adobe-source-code-pro-fonts-2.038ro + 1.058it + 1.018var-1 akm-2.7.6-2 alsa-card-profiles-1: 0.3.20-1
               audit-3.0-1 bind-9.16.11-1 btrfs-progs-5.10-1 ceph-libs-15.2.8-2 chromium-88.0.4324.96-1
               cmake-3.19.3-1 dav1d-0.8.1-1 dnsmasq-2.83-1 electron-11.2.1-1 endeavouros-mirrorlist-3.3-1
               eos-bash-shared-1.5.16-2 eos-log-tool-1.4.2-4 eos-translations-1.1.8-1 eos-update-notifier-1.13-3
               ffmpeg-2: 4.3.1-4 filesystem-2021.01.19-1 flatpak-1.10.0-1 fmt-7.1.3-1 fwupd-1.5.5-1 gcr-3.38.1-1
               glib2-2.66.4-2 gnupg-2.2.27-1 go-2: 1.15.7-1 gptfdisk-1.0.6-1 gst-libav-1.18.3-1
               gst-plugin-gtk-1.18.3-1 gst-plugin-pipewire-1: 0.3.20-1 gst-plugins-bad-1.18.3-1
               gst-plugins-bad-libs-1.18.3-1 gst-plugins-base-1.18.3-1 gst-plugins-base-libs-1.18.3-1
               gst-plugins-good-1.18.3-1 gst-plugins-ugly-1.18.3-1 gstreamer-1.18.3-1
               gtk-update-icon-cache-1: 4.0.2-1 gufw-21.04.0-1 htop-3.0.5-1 hwloc-2.4.0-1 imagemagick-7.0.10.58-1
               iptables-1: 1.8.7-1 jasper-2.0.24-1 kdiagram-2.8.0-1 krb5-1.18.3-1 kvantum-qt5-0.18.0-1
               lib32-glib2-2.66.4-2 lib32-krb5-1.18.3-1 lib32-libcap-2.46-1 lib32-libdrm-2.4.104-1
               lib32-libelf-0.182-1 lib32-libpcap-1.10.0-1 lib32-libproxy-0.4.17-1 lib32-libpulse-14.2-2
               lib32-libtiff-4.2.0-1 lib32-libusb-1.0.24-1 lib32-lz4-1.9.3-1 lib32-mesa-20.3.3-1
               lib32-pango-1: 1.48.1-1 lib32-sdl2-2.0.14-1 lib32-sqlite-3.34.0-1 lib32-vulkan-icd-loader-1.2.166-1
               lib32-vulcan-radeon-20.3.3-1 lib32-zstd-1.4.8-1 libblockdev-2.25-1 libbytesize-2.4-4 libcap-2.46-1
               libdrm-2.4.104-1 libedit-20191231_3.1-3 libevdev-1.10.1-1 libibus-1.5.23 + 3 + gaa558de8-3
               libinih-52-1 libjcat-0.1.5-1 libmbim-1.24.6-1 libmm-glib-1.14.10-1 libnftnl-1.1.9-1
               libodfgen-0.1.8-1 libpcap-1.10.0-1 libplacebo-3.104.0-1 libpulse-14.2-2 libtiff-4.2.0-1
               libusb-1.0.24-2 libva-mesa-driver-20.3.3-1 linux-5.10.9.arch1-1 linux-headers-5.10.9.arch1-1
               logrotate-3.18.0-1 lsp-plugins-1.1.29-1 mesa-20.3.3-1 mesa-vdpau-20.3.3-1
               mkinitcpio-busybox-1.32.1-2 modemmanager-1.14.10-1 nano-5.5-1 net-tools-2.10-1 node-gyp-7.1.2-1
               p7zip-17.03-2 pam-1.5.1-1 pango-1: 1.48.1-1 pipewire-1: 0.3.20-1 pulseaudio-14.2-2
               pulseaudio-bluetooth-14.2-2 pulseaudio-equalizer-14.2-2 python-homev-1.4.0-1 python-pip-20.3-1
               python-setuptools-1: 51.3.3-1 python-urllib3-1.26.2-1 qt5-base-5.15.2-3 r8168-8.048.03-59
               rav1e-0.4.0-1 reflector-simple-1.13-2 serd-0.30.10-1 sqlite-3.34.1-1 sudo-1.9.5.p1-1 tar-1.33-1
               tk-8.6.11.1-1 vlc-3.0.12-1 vulcan-headers-1: 1.2.166-1 vulcan-icd-loader-1.2.166-1
               vulcan-radeon-20.3.3-1 wavpack-5.3.0-2 welcome-3.8.24-1 wxgtk-common-3.0.5.1-2 wxgtk3-3.0.5.1-2
               xapian-core-1: 1.4.18-1 xf86-video-intel-1: 2.99.917 + 916 + g31486f40-1 xfsprogs-5.10.0-1 zstd-1.4.8-1

Total Download Size: 535.41 MiB
Total Setup Size: 2046.35 MiB
Update Size: 2.28 MiB

:: Do you approve the installation? [Y / h] E
:: Receiving packages ...
(i removed this part)
error: chromium: Signature from "Evangelos Foutras <evangelos@foutrelis.com>" is incorrect
The file :: /var/cache/pacman/pkg/chromium-88.0.4324.96-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: electron: Signature from "Nicola Squartini <tensor5@gmail.com>" is incorrect
The file :: /var/cache/pacman/pkg/electron-11.2.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: lib32-mesa: Signature from "Laurent Carlier <lordheavym@gmail.com>" is incorrect
The file :: /var/cache/pacman/pkg/lib32-mesa-20.3.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: operation could not be performed (invalid or broken package
)
An error has occurred, no packages have been updated.
[lilcsz @ lilcsz ~] $

Manually delete the broken package files.

Change your mirror. Resync your mirror with yy.

If it keeps happening delete all the package files in your pacman cache.

is keyserver-rank installed ? try that in your terminal.

then sudo pacman -Syy
and try update again?

Yes, It’s installed.

Deleted them and changed my mirrorlist.

[lilcsz@lilcsz ~]$ sudo pacman -Syu
error: eos-translations: The authenticity of the signature from "EndeavorOS <info@endeavouros.com>" is unknown
The file :: /var/cache/pacman/pkg/eos-translations-1.1.8-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: eos-bash-shared: The authenticity of signature from "EndeavorOS <info@endeavouros.com>" is unknown
The file :: /var/cache/pacman/pkg/eos-bash-shared-1.5.16-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: akm: Trustworthiness of signature from "EndeavorOS <info@endeavouros.com>" is unknown
The file :: /var/cache/pacman/pkg/akm-2.7.6-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: chromium: Signature from "Evangelos Foutras <evangelos@foutrelis.com>" is incorrect
The file :: /var/cache/pacman/pkg/chromium-88.0.4324.96-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: electron: Signature from "Nicola Squartini <tensor5@gmail.com>" is incorrect
The file :: /var/cache/pacman/pkg/electron-11.2.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: endeavouros-mirrorlist: The authenticity of signature from "EndeavorOS <info@endeavouros.com>" is unknown
The file :: /var/cache/pacman/pkg/endeavouros-mirrorlist-3.3-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: eos-log-tool: The authenticity of signature from "EndeavorOS <info@endeavouros.com>" is unknown
The file :: /var/cache/pacman/pkg/eos-log-tool-1.4.2-4-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: eos-update-notifier: The authenticity of signature from "EndeavorOS <info@endeavouros.com>" is unknown
The file :: /var/cache/pacman/pkg/eos-update-notifier-1.13-3-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: lib32-mesa: Signature from "Laurent Carlier <lordheavym@gmail.com>" is incorrect
The file :: /var/cache/pacman/pkg/lib32-mesa-20.3.3-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: reflector-simple: Authenticity of signature from "EndeavorOS <info@endeavouros.com>" is unknown
The file :: /var/cache/pacman/pkg/reflector-simple-1.13-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: welcome: The signature from "EndeavorOS <info@endeavouros.com>" cannot be trusted
The file :: /var/cache/pacman/pkg/welcome-3.8.24-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want it deleted? [Y / h] h
error: operation could not be performed (invalid or corrupted package)
An error has occurred, no packages have been updated.

depend on region mayby you have isues to reach a keyserver, maby you can rank the best keyserver. keyserver is to check the signatures.

Should use yy after changing mirrors, but a as @ringo said a gpg keyserver issue is more likely.

For a package that fails check the dev key is present, for example.

pacman-key --list-sigs evangelos@foutrelis.com

pacman-key --list-sigs info@endeavouros.com

I tried this but still having same error.

@lilcsz

Think what you try to do is ? That fix my before ( use at own risk )

" sudo rm -r /etc/pacman.d/gnupg/ "

"sudo pacman-key --init "

" sudo pacman-key --populate archlinux "

" sudo pacman -Sc "

" sudo pacman -Syuu "

" sudo pacman-key --refresh-keys "

"sudo pacman -Syyu "

Didn’t work

what output of

 pacman-key --list-sigs Master
[lilcsz@lilcsz ~]$ pacman-key --list-sigs Master
gpg: Note: trustdb not writable
pub   rsa4096 2021-01-23 [SC]
      DAFDD1C9BD058638D3235A195D09A9D99343765D
uid           [   son  derece   ] Pacman Keyring Master Key <pacman@localhost>
sig 3        5D09A9D99343765D 2021-01-23  Pacman Keyring Master Key <pacman@localhost>

pub   rsa4096 2011-11-29 [SC]
      AB19265E5D7D20687D303246BA1DFB64FFF979E7
uid           [     tamamen     ] Allan McRae (Arch Linux Master Key) <allan@master-key.archlinux.org>
sig 3        BA1DFB64FFF979E7 2011-11-29  Allan McRae (Arch Linux Master Key) <allan@master-key.archlinux.org>
sig          F99FFE0FEAE999BD 2011-11-30  Allan McRae <me@allanmcrae.com>
sig          06096A6AD1CEDDAC 2011-11-30  Laurent Carlier <lordheavym@gmail.com>
sig   L      5D09A9D99343765D 2021-01-23  Pacman Keyring Master Key <pacman@localhost>

pub   rsa4096 2018-11-08 [SC]
      D8AFDDA07A5B6EDFA7D8CCDAD6D055F927843F1C
uid           [     tamamen     ] Levente Polyak (Arch Linux Master Key) <anthraxx@master-key.archlinux.org>
sig 3        D6D055F927843F1C 2018-11-08  Levente Polyak (Arch Linux Master Key) <anthraxx@master-key.archlinux.org>
sig          39E4B877E62EB915 2018-12-28  Sven-Hendrik Haase <svenstaro@gmail.com>
sig          FC1B547C8D8172C8 2018-11-12  Levente Polyak (anthraxx) <levente@leventepolyak.net>
sig   L      5D09A9D99343765D 2021-01-23  Pacman Keyring Master Key <pacman@localhost>
sub   rsa4096 2018-11-08 [E]
sig          D6D055F927843F1C 2018-11-08  Levente Polyak (Arch Linux Master Key) <anthraxx@master-key.archlinux.org>
sub   rsa4096 2018-11-08 [A]
sig          D6D055F927843F1C 2018-11-08  Levente Polyak (Arch Linux Master Key) <anthraxx@master-key.archlinux.org>

pub   rsa4096 2017-05-15 [SC]
      DDB867B92AA789C165EEFA799B729B06A680C281
uid           [     tamamen     ] Bartłomiej Piotrowski (Arch Linux Master Key) <bpiotrowski@master-key.archlinux.org>
sig 3        9B729B06A680C281 2017-05-15  Bartłomiej Piotrowski (Arch Linux Master Key) <bpiotrowski@master-key.archlinux.org>
sig          BBE43771487328A9 2017-05-15  Bartlomiej Piotrowski <b@bpiotrowski.pl>
sig   L      5D09A9D99343765D 2021-01-23  Pacman Keyring Master Key <pacman@localhost>
sub   rsa4096 2017-05-15 [E]
sig          9B729B06A680C281 2017-05-15  Bartłomiej Piotrowski (Arch Linux Master Key) <bpiotrowski@master-key.archlinux.org>

pub   rsa4096 2015-12-17 [SC]
      91FFE0700E80619CEB73235CA88E23E377514E00
uid           [     tamamen     ] Florian Pritz (Arch Linux Master Key) <florian@master-key.archlinux.org>
sig 3        A88E23E377514E00 2015-12-17  Florian Pritz (Arch Linux Master Key) <florian@master-key.archlinux.org>
sig          6D1655C14CE1C13E 2015-12-17  Florian Pritz <bluewind@xinu.at>
sig   L      5D09A9D99343765D 2021-01-23  Pacman Keyring Master Key <pacman@localhost>
sub   rsa4096 2015-12-17 [E]
sig          A88E23E377514E00 2015-12-17  Florian Pritz (Arch Linux Master Key) <florian@master-key.archlinux.org>

pub   rsa3072 2011-11-18 [SC]
      0E8B644079F599DFC1DDC3973348882F6AC6A4C2
uid           [     tamamen     ] Pierre Schmitz (Arch Linux Master Key) <pierre@master-key.archlinux.org>
sig 3        3348882F6AC6A4C2 2011-11-18  Pierre Schmitz (Arch Linux Master Key) <pierre@master-key.archlinux.org>
sig          7F2D434B9741E8AC 2011-11-18  Pierre Schmitz <pierre@archlinux.de>
sig   L      5D09A9D99343765D 2021-01-23  Pacman Keyring Master Key <pacman@localhost>
sub   rsa1024 2011-11-18 [E]
sig          3348882F6AC6A4C2 2011-11-18  Pierre Schmitz (Arch Linux Master Key) <pierre@master-key.archlinux.org>
sub   rsa3072 2011-11-18 [A]
sig          3348882F6AC6A4C2 2011-11-18  Pierre Schmitz (Arch Linux Master Key) <pierre@master-key.archlinux.org>

pub   rsa3072 2011-11-29 [SC] [yürürlükten kaldırıldı: 2011-11-29]
      27FFC4769E19F096D41D9265A04F9397CDFD6BB0
rev          A04F9397CDFD6BB0 2011-11-29  Dan McGee (Arch Linux Master Key) <dan@master-key.archlinux.org>
      yürürlükten kaldırma sebebi: Belirtilmiş bir neden yok
         yürürlükten kaldırma açıklaması: Revocation certificate held by another developer
uid           [yürürlükten kalktı] Dan McGee (Arch Linux Master Key) <dan@master-key.archlinux.org>
sig 3        A04F9397CDFD6BB0 2011-11-29  Dan McGee (Arch Linux Master Key) <dan@master-key.archlinux.org>
sig          5C2E46A0F53A76ED 2011-11-29  Dan McGee <dpmcgee@gmail.com>
sig          06096A6AD1CEDDAC 2011-11-30  Laurent Carlier <lordheavym@gmail.com>

pub   rsa3072 2011-11-25 [SC] [yürürlükten kaldırıldı: 2011-11-25]
      44D4A033AC140143927397D47EFD567D4C7EA887
rev          7EFD567D4C7EA887 2011-11-25  Ionut Biru (Arch Linux Master Key) <ionut@master-key.archlinux.org>
      yürürlükten kaldırma sebebi: Belirtilmiş bir neden yok
         yürürlükten kaldırma açıklaması: Something bad happened
uid           [yürürlükten kalktı] Ionut Biru (Arch Linux Master Key) <ionut@master-key.archlinux.org>
sig 3        7EFD567D4C7EA887 2011-11-25  Ionut Biru (Arch Linux Master Key) <ionut@master-key.archlinux.org>
sig          E8F18BA1615137BC 2011-11-25  Ionut Biru <ibiru@archlinux.org>

pub   rsa3072 2011-11-19 [SC] [yürürlükten kaldırıldı: 2011-11-20]
      684148BB25B49E986A4944C55184252D824B18E8
rev          5184252D824B18E8 2011-11-20  Thomas Bächler (Arch Linux Master Key) <thomas@master-key.archlinux.org>
      yürürlükten kaldırma sebebi: Belirtilmiş bir neden yok
         yürürlükten kaldırma açıklaması: Master Key revoked by Revocation Certificate holder Tobias Powalowski.
uid           [yürürlükten kalktı] Thomas Bächler (Arch Linux Master Key) <thomas@master-key.archlinux.org>
sig 3        5184252D824B18E8 2011-11-19  Thomas Bächler (Arch Linux Master Key) <thomas@master-key.archlinux.org>
sig          284FC34C8E4B1A25 2011-11-19  Thomas Bächler <thomas@bchlr.de>


@lilcsz

Sorry out with family + on mobile This should help

forgoth endeavouros after " sudo pacman-key --populate archlinux "

like " sudo pacman-key --populate archlinux endeavouros"

@lilcsz
, already trieda new keyserver ?

in terminal : keyserver-rank ?

didn’t work :frowning:

are you behind a vpn?

edit : pastebin : cat /etc/pacman.d/gnupg/gpg.conf

no

no-greeting
no-permission-warning
lock-never
keyserver-options timeout=10
keyserver-options import-clean
keyserver-options no-self-sigs-only