You are not logged in.

#1 2024-10-30 16:37:52

genji
Member
Registered: 2023-08-13
Posts: 47

[SOLVED] Cannot update, invalid or corrupted package (PGP signature)

# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: systemd-libs will be installed before its libcap dependency

Packages (195) archlinux-keyring-20241015-1  argon2-20190702-6  audit-4.0.2-2  automake-1.17-1  avahi-1:0.8+r194+g3f79789-2  base-devel-1-2  bash-5.2.037-1  bind-9.20.3-1  binutils-2.43+r4+g7999dae6961-1  bison-3.8.2-8
               bluez-libs-5.78-1  brotli-1.1.0-2  ca-certificates-20240618-1  ca-certificates-mozilla-3.106-1  ca-certificates-utils-20240618-1  cifs-utils-7.1-1  coreutils-9.5-2  cryptsetup-2.7.5-1  curl-8.10.1-2  db5.3-5.3.28-5
               dbus-broker-36-4  dbus-broker-units-36-4  debugedit-5.0-6  device-mapper-2.03.27-1  dnssec-anchors-20190629-4  duktape-2.7.0-7  e2fsprogs-1.47.1-4  elinks-0.17.1.1-1  expat-2.6.3-2  fakeroot-1.36-1
               filesystem-2024.04.07-1  findutils-4.10.0-2  gawk-5.3.1-1  gc-8.2.8-2  gcc-14.2.1+r134+gab884fffe3fc-1  gcc-libs-14.2.1+r134+gab884fffe3fc-1  gdbm-1.24-1  gettext-0.22.5-2  git-2.47.0-1  glib2-2.82.2-1
               glibc-2.40+r16+gaa533d58ff-2  gmp-6.3.0-2  gnupg-2.4.5-7  gnutls-3.8.7-1  go-2:1.23.2-1  gpgme-1.23.2-6  gpm-1.20.7.r38.ge82d1a6-6  groff-1.23.0-7  guile-3.0.10-1  gzip-1.13-4  hwdata-0.388-1  iana-etc-20241016-1
               icu-75.1-1  iproute2-6.11.0-1  iptables-1:1.8.10-2  iputils-20240905-1  jansson-2.14-4  jemalloc-1:5.3.0-4  json-c-0.18-1  kbd-2.6.4-3  keyutils-1.6.3-3  kmod-33-3  krb5-1.21.3-1  ldb-2:4.21.1-1  ldns-1.8.4-1
               less-1:661-1  libarchive-3.7.7-1  libassuan-3.0.0-1  libbpf-1.4.3-1  libbsd-0.12.2-2  libcap-2.71-1  libcap-ng-0.8.5-2  libcups-2:2.4.11-1  libdaemon-0.14-6  libedit-20240517_3.1-1  libelf-0.192-1
               libgcrypt-1.11.0-2  libgpg-error-1.50-1  libisl-0.27-1  libksba-1.6.7-1  libldap-2.6.8-2  libmaxminddb-1.11.0-1  libmd-1.1.0-2  libmpc-1.3.1-2  libndp-1.9-1  libnewt-0.52.24-2  libnftnl-1.2.8-1  libnghttp2-1.64.0-1
               libnghttp3-1.6.0-1  libnl-3.10.0-1  libnm-1.50.0-1  libp11-kit-0.25.5-1  libpcap-1.10.5-2  libpsl-0.21.5-2  libsasl-2.1.28-5  libseccomp-2.5.5-3  libsodium-1.0.20-1  libsysprof-capture-47.0-1  libtasn1-4.19.0-2
               libteam-1.32-2  libtirpc-1.3.6-1  libtool-2.5.3-1  liburcu-0.14.1-1  liburing-2.8-1  libuv-1.49.2-1  libwbclient-2:4.21.1-1  libxcrypt-4.4.36-2  libxml2-2.13.4-1  licenses-20240728-1  linux-api-headers-6.10-1
               lmdb-0.9.33-1  lua-5.4.7-1  lz4-1:1.10.0-2  mobile-broadband-provider-info-20240407-1  mpdecimal-4.0.0-2  mpfr-4.2.1-4  nano-8.2-1  ncurses-6.5-3  nettle-3.10-1  networkmanager-1.50.0-1  nspr-4.36-1  nss-3.106-1
               openssh-9.9p1-2  openssl-3.4.0-1  p11-kit-0.25.5-1  pacman-7.0.0.r3.g7736133-1  pacman-mirrorlist-20240717-1  pam-1.6.1-3  pambase-20230918-2  pciutils-3.13.0-2  pcre2-10.44-1  pcsclite-2.3.0-1  perl-5.40.0-1
               perl-error-0.17029-7  perl-mailtools-2.21-9  perl-timedate-2.33-7  pinentry-1.3.1-5  polkit-125-1  popt-1.19-2  python-3.12.7-1  python-argcomplete-3.4.0-1  python-attrs-23.2.0-3  python-cffi-1.17.1-1
               python-charset-normalizer-3.4.0-1  python-click-8.1.7-3  python-colorama-0.4.6-3  python-cryptography-42.0.8-1  python-dateutil-2.9.0-5  python-distlib-0.3.8-2  python-distro-1.9.0-2  python-filelock-3.13.3-2
               python-idna-3.8-1  python-packaging-24.1-1  python-pip-24.2-1  python-pipx-1.6.0-1  python-platformdirs-4.3.6-1  python-ply-3.11-13  python-pycparser-2.22-2  python-requests-2.32.3-1
               python-requests-toolbelt-1.0.0-2  python-six-1.16.0-9  python-typing_extensions-4.12.2-1  python-urllib3-1.26.20-1  python-userpath-1.9.2-2  python-virtualenv-20.26.2-1  python-wheel-0.44.0-2  readline-8.2.013-1
               samba-2:4.21.1-1  screen-5.0.0-1  shadow-4.16.0-1  slang-2.3.3-3  smbclient-2:4.21.1-1  sqlite-3.46.1-1  sudo-1.9.16-1  systemd-256.7-1  systemd-libs-256.7-1  systemd-resolvconf-256.7-1  systemd-sysvcompat-256.7-1
               talloc-2.4.2-3  tdb-1.4.12-1  tevent-1:0.16.1-3  texinfo-7.1.1-1  tmux-3.5_a-1  tpm2-tss-4.1.3-1  tre-0.9.0-1  tzdata-2024b-2  util-linux-2.40.2-1  util-linux-libs-2.40.2-1  vim-9.1.0785-1  vim-runtime-9.1.0785-1
               wget-1.24.5-3  wpa_supplicant-2:2.11-2  xz-5.6.3-1  zlib-1:1.3.1-2  zstd-1.5.6-1

Total Download Size:      0.56 MiB
Total Installed Size:  1496.71 MiB
Net Upgrade Size:        33.76 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 screen-5.0.0-1-x86_64                                                                                         575.4 KiB  1868 KiB/s 00:00 [####################################################################################] 100%
(195/195) checking keys in keyring                                                                                                         [####################################################################################] 100%
(195/195) checking package integrity                                                                                                       [####################################################################################] 100%
error: screen: signature from "Brett Cornwall <brett@i--b.com>" is unknown trust
:: File /var/cache/pacman/pkg/screen-5.0.0-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)
Errors occurred, no packages were upgraded.

I am unable to update my system, not sure how to proceed!

I have tried choosing both Y or N at the prompt to delete but still cannot proceed

Thank you!

Last edited by genji (2024-10-30 16:49:59)

Offline

#2 2024-10-30 16:41:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [SOLVED] Cannot update, invalid or corrupted package (PGP signature)

Update the keyring package first

Offline

#3 2024-10-30 16:50:39

genji
Member
Registered: 2023-08-13
Posts: 47

Re: [SOLVED] Cannot update, invalid or corrupted package (PGP signature)

Scimmia wrote:

Update the keyring package first

thanks!

i wasn't sure how to even do that, so I googled "updating arch keyring" and found a reddit post with this solution, in case anyone else has same problem:

# pacman -Sy && pacman -S archlinux-keyring && pacman -Syyu

Have a great day!

Offline

#4 2024-10-30 17:02:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: [SOLVED] Cannot update, invalid or corrupted package (PGP signature)

Well no. You had already done the first command there by not finishing the update. The second command is good, but the third should not have two 'y's in it.

Offline

Board footer

Powered by FluxBB