Keyring corruption when not used for months

Any ideas on what steps to take? I have encountered this problem seemingly caused by wxwidgets on two different laptops that have not been used for about two months.

modern-arch: ~ $ yes | yay 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 endeavouros is up to date
:: Starting full system upgrade...
:: Replace wxgtk-common with extra/wxwidgets-common? [Y/n] y
:: Replace wxgtk3 with extra/wxwidgets-gtk3? [Y/n] y
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: mesa will be installed before its libglvnd dependency

warning: insufficient columns available for table display
Packages (221) abseil-cpp-20220623.0-1  alsa-card-profiles-1:0.3.56-1
               alsa-lib-1.2.7.2-1  alsa-ucm-conf-1.2.7.2-1
               amd-ucode-20220708.be7798e-1  arch-install-scripts-26-1
               archlinux-keyring-20220727-1  atkmm-2.28.3-1  base-3-1
               bind-9.18.5-1  binutils-2.39-2  bitwarden-2022.8.1-1
               bluez-5.65-2  bluez-libs-5.65-2  brltty-6.5-2
               ca-certificates-mozilla-3.81-1  cmake-3.23.3-1  code-1.70.1-1
               cryptsetup-2.5.0-1  cups-filters-1.28.15-2
               dconf-editor-3.38.3-2  dialog-1:1.3_20220728-1
               double-conversion-3.2.1-1  duktape-2.7.0-4  efibootmgr-18-1
               electron-20.0.0-1  electron16-16.2.8-1  electron17-17.4.10-1
               electron18-18.3.6-1  electron19-19.0.10-1  ell-0.52-1
               endeavouros-mirrorlist-4.7-2  endeavouros-theming-10.0-1
               eog-42.3-1  eos-apps-info-1.3-1  eos-bash-shared-1.25-1
               eos-hooks-1.7-1  eos-rankmirrors-2.3-1  eos-translations-1.10-1
               evolution-3.44.4-1  evolution-data-server-3.44.4-1  fio-3.31-1
               firefox-103.0.2-1  fluidsynth-2.2.8-1  freerdp-2:2.8.0-1
               fzf-0.32.1-1  gcc-12.1.1-4  gcc-libs-12.1.1-4  gcr-3.41.1-2
               gdk-pixbuf2-2.42.9-1  gedit-42.2-1  geocode-glib-3.26.4-1
               geogebra-6.0.723.0-1  geoip-database-20220802-1  git-2.37.1-1
               gjs-2:1.72.2-1  glib-networking-1:2.72.2-1  glibc-2.36-1
               gnome-desktop-1:42.4-1  gnome-desktop-4-1:42.4-1
               gnome-desktop-common-1:42.4-1  gnome-shell-1:42.4-1
               gnome-tweaks-42beta+r14+g2d9d76c-2  gnuplot-5.4.4-1
               gnutls-3.7.7-1  go-2:1.19-1  gsm-1.0.22-1
               gst-plugin-pipewire-1:0.3.56-1  gtest-1.12.1-1
               gtksourceview3-1:3.24.11+r28+g73e57b57-1  harfbuzz-5.1.0-1
               harfbuzz-icu-5.1.0-1  hdparm-9.64-1  hwloc-2.8.0-1
               imagemagick-7.1.0.45-1  imlib2-1.9.1-1  inkscape-1.2.1-1
               inxi-3.3.20.1-1  iproute2-5.19.0-1  iptables-1:1.8.8-2
               iso-codes-4.11.0-1  iwd-1.29-1  jasper-3.0.6-1  js91-91.12.0-1
               kauth-5.96.0-1  kcoreaddons-5.96.0-1  lame-3.100-4
               ldb-2:2.5.2-2  lib2geom-1.2-2  libadwaita-1:1.1.4-1
               libarchive-3.6.1-2  libbluray-1.3.2-1  libbpf-0.8.1-1
               libbs2b-3.1.0-8  libcap-2.65-1
               libcryptui-1:3.12.2+r69+g9c70a43b-1  libelf-0.187-2
               libevdev-1.13.0-1  libevent-2.1.12-2  libglvnd-1.4.0-3
               libgsf-1.14.50-1  libgssglue-0.5-1  libidn2-2.3.3-1
               libimagequant-4.0.1-1  libldap-2.6.3-1  libmm-glib-1.18.10-2
               libmspack-1:0.10.1alpha-3  libnfs-5.0.2-1  libnm-1.38.4-1
               libnotify-0.8.1-1  libphonenumber-1:8.12.52-3
               libsysprof-capture-3.44.0-2  libtiff-4.4.0-3  libtool-2.4.7-3
               libuv-1.44.2-1  libwacom-2.4.0-1  libwebp-1.2.4-1
               libwpe-1.12.2-1  libxcvt-0.1.2-1  linux-5.18.16.arch1-1
               linux-api-headers-5.18.15-1  linux-firmware-20220708.be7798e-1
               linux-firmware-whence-20220708.be7798e-1
               linux-headers-5.18.16.arch1-1  llvm-libs-14.0.6-3
               logrotate-3.20.1-1  lua-5.4.4-2  lv2-1.18.6-1  meld-3.21.2-1
               mesa-22.1.6-1  mobile-broadband-provider-info-20220725-1
               modemmanager-1.18.10-2  mpfr-4.1.0.p13-3  mpg123-1.30.2-1
               mutter-42.4-1  nano-6.4-1  nettle-3.8.1-1
               networkmanager-1.38.4-1  nilfs-utils-2.2.9-1  node-gyp-9.1.0-1
               npm-8.17.0-1  nspr-4.34.1-1  nss-3.81-1  opencore-amr-0.1.6-1
               osinfo-db-20220727-1  pacman-6.0.1-7
               pacman-mirrorlist-20220724-1  pango-1:1.50.9-1
               parallel-20220722-1  perl-alien-build-2.51-1  perl-libwww-6.67-1
               perl-uri-5.12-1  pipewire-1:0.3.56-1  pipewire-alsa-1:0.3.56-1
               pipewire-jack-1:0.3.56-1  pipewire-pulse-1:0.3.56-1
               polkit-121-1  protobuf-21.4-1  python-3.10.5-2
               python-chardet-5.0.0-1  python-cryptography-37.0.4-1
               python-gobject-3.42.2-1  python-jaraco.functools-3.5.1-1
               python-jaraco.text-3.8.1-1  python-lxml-4.9.1-1
               python-markdown-3.4.1-1  python-more-itertools-8.13.0-2
               python-numpy-1.23.1-1  python-reportlab-3.6.11-1
               python-requests-2.28.1-1  python-sphinx-5.1.1-1
               python-trove-classifiers-2022.8.7-1  python-urllib3-1.26.11-1
               python-zipp-3.8.1-1  qt5-base-5.15.5+kde+r174-1
               qt5-svg-5.15.5+kde+r11-1  reflector-2021.11-5  rsync-3.2.5pre2-1
               rust-1:1.63.0-1  sbc-2.0-1  serd-0.30.14-1  smbclient-4.16.4-3
               sord-0.16.12-3  sqlite-3.39.2-1  sratom-0.6.12-1
               systemd-251.4-1  systemd-libs-251.4-1
               systemd-sysvcompat-251.4-1  tevent-1:0.13.0-1  texstudio-4.3.0-1
               tldr-3.1.0-2  tor-0.4.7.9-1  tracker3-3.3.3-1
               tracker3-miners-3.3.1-2  unzip-6.0-19  upower-0.99.20-1
               util-linux-2.38.1-1  util-linux-libs-2.38.1-1
               vulkan-headers-1:1.3.221-1  vulkan-icd-loader-1.3.221-1
               wavpack-5.5.0-1  webkit2gtk-2.36.6-1  webkit2gtk-4.1-2.36.6-1
               welcome-3.33-1  wireplumber-0.4.11-3  woff2-1.0.2-4
               wpa_supplicant-2:2.10-5  wpebackend-fdo-1.12.1-1
               wxgtk-common-3.0.5.1-3 [removal]  wxgtk3-3.0.5.1-3 [removal]
               wxwidgets-common-3.2.0-4  wxwidgets-gtk3-3.2.0-4
               xdg-user-dirs-0.18-1  xkeyboard-config-2.36-3
               xorg-fonts-encodings-1.0.6-1  xorg-server-21.1.4-1
               xorg-server-common-21.1.4-1  xorg-server-xvfb-21.1.4-1
               xorg-xmodmap-1.0.11-1  xorg-xwayland-22.1.3-1  zxing-cpp-1.4.0-1

Total Download Size:    167,93 MiB
Total Installed Size:  4818,53 MiB
Net Upgrade Size:       429,98 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 lv2-1.18.6-1-x86_64   384,3 KiB  1649 KiB/s 00:00 [----------------------] 100%
 libtiff-4.4.0-3-...   879,0 KiB  2,01 MiB/s 00:00 [----------------------] 100%
 lame-3.100-4-x86_64   329,6 KiB  1600 KiB/s 00:00 [----------------------] 100%
 opencore-amr-0.1...   142,1 KiB  1155 KiB/s 00:00 [----------------------] 100%
 libcap-2.65-1-x86_64   83,6 KiB  1393 KiB/s 00:00 [----------------------] 100%
 serd-0.30.14-1-x...    59,1 KiB  1790 KiB/s 00:00 [----------------------] 100%
 sord-0.16.12-3-x...    38,8 KiB  1294 KiB/s 00:00 [----------------------] 100%
 libgssglue-0.5-1...    26,6 KiB   886 KiB/s 00:00 [----------------------] 100%
 sratom-0.6.12-1-...    19,4 KiB   645 KiB/s 00:00 [----------------------] 100%
 electron-20.0.0-...    57,8 MiB  53,9 MiB/s 00:01 [----------------------] 100%
 electron18-18.3....    54,2 MiB  34,9 MiB/s 00:02 [----------------------] 100%
 electron19-19.0....    54,1 MiB  27,1 MiB/s 00:02 [----------------------] 100%
 Total (12/12)         167,9 MiB  83,5 MiB/s 00:02 [----------------------] 100%
(219/219) checking keys in keyring                 [----------------------] 100%
(219/219) checking package integrity               [----------------------] 100%
error: libcap: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/libcap-2.65-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: lv2: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/lv2-1.18.6-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: serd: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/serd-0.30.14-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: sord: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/sord-0.16.12-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: sratom: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/sratom-0.6.12-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: lame: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/lame-3.100-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libtiff: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/libtiff-4.4.0-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: opencore-amr: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/opencore-amr-0.1.6-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: electron19: signature from "Bruno Pagani <bruno.pagani@astrophysics.eu>" is marginal trust
:: File /var/cache/pacman/pkg/electron19-19.0.10-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: electron18: signature from "Bruno Pagani <bruno.pagani@astrophysics.eu>" is marginal trust
:: File /var/cache/pacman/pkg/electron18-18.3.6-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: electron: signature from "Bruno Pagani <bruno.pagani@astrophysics.eu>" is marginal trust
:: File /var/cache/pacman/pkg/electron-20.0.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libgssglue: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/libgssglue-0.5-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
 -> error installing repo packages

Update archlinux-keyring first, then perform the upgrade.

yay -Sy archlinux-keyring
yay -Su

never fixed a problem faster than that :slightly_smiling_face:

Just to remind that the keyrings should be handled automatically by the UpdateInTerminal command.

There will be a systems timer from pacman in the future … they will add this in one of the next updates…

I left a computer purposely 6 months without an update just to see what would happen, and basically updating the key ring abs a couple of pacnew files to tend to, that was basically it.

This post should be pinned or something. We get this question everyday.

Pinned Jonathon’s post to the Newbie area for a couple of weeks.
Waiting for the Arch devs to create the related systemd timer, may need to pin this longer while waiting…