Can't update packages

Hi, when trying to update the system, pacman complains about invalid signatures from “CachyOS admin@cachyos.org”. I’ve run pacman with --debug

debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: Architecture: auto
debug: config: arch: x86_64
debug: config: arch: x86_64_v2
debug: config: arch: x86_64_v3
debug: config: chomp
debug: config: verbosepkglists
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'cachyos-v3'
debug: config file /etc/pacman.conf, line 80: including /etc/pacman.d/cachyos-v3-mirrorlist
debug: config: new section 'cachyos-core-v3'
debug: config file /etc/pacman.conf, line 83: including /etc/pacman.d/cachyos-v3-mirrorlist
debug: config: new section 'cachyos-extra-v3'
debug: config file /etc/pacman.conf, line 86: including /etc/pacman.d/cachyos-v3-mirrorlist
debug: config: new section 'cachyos'
debug: config file /etc/pacman.conf, line 89: including /etc/pacman.d/cachyos-mirrorlist
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 99: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 105: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 114: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'cachyos-v3'
debug: database path for tree cachyos-v3 set to /var/lib/pacman/sync/cachyos-v3.db
debug: GPGME version: 1.24.0
debug: GPGME engine info: file=/usr/bin/gpg, home=/etc/pacman.d/gnupg/
debug: checking signature for /var/lib/pacman/sync/cachyos-v3.db
debug: 1 signatures returned
debug: fingerprint: F3B607488DB35A47
debug: summary: red
debug: status: Bad signature
debug: timestamp: 0
debug: exp_timestamp: 0
debug: validity: unknown; reason: Success
debug: key: 882DCFE48E2051D48E2562ABF3B607488DB35A47, CachyOS <admin@cachyos.org>, owner_trust marginal, disabled 0
debug: signature is not valid
error: cachyos-v3: signature from "CachyOS <admin@cachyos.org>" is invalid
debug: setting usage of 15 for cachyos-v3 repository
debug: adding new server URL to database 'cachyos-v3': https://aur.cachyos.org/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://mirror.cachyos.org/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://cdn-1.cachyos.org/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://cdn.cachyos.org/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://us.cachyos.org/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://no.mirror.cx/cachyos/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://at.cachyos.org/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://mirror.fast0ne.com/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://cdn77.cachyos.org/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://mirror.lesviallon.fr/cachy/repo/x86_64_v3/cachyos-v3
debug: adding new server URL to database 'cachyos-v3': https://mir.cachyos.fr/repo/x86_64_v3/cachyos-v3

and then same repeats for cachyos-core-v3. I tried to reset keys with --init and --populate but no luck.

On another try to update it complained again but decided to update anyway. And then problem was no more. Weird, but all’s well that ends well i guess?

It might be because the repo wasn t updated !

We never know sometimes @yt04ka

Did you do an upgrade of the keys beforehand?

sudo pacman -S --needed \
  archlinux-keyring \
  cachyos-keyring

They sometimes get behind the times on old installations having had no upgrades for a longer time. At least that happened to me on an old VM installation.

1 Like

Love that command @deex , mind if I can try/use it !

Go ahead, why would I mind? :rocket:

Thx, appreciated @deex

I guess i did it as a part of init&populate, but last update before this was just yesterday. They couldn’t get behind so fast, right?

Well, no, they don’t expire that fast