Makes sense, just update the keyrings here & there @RayJW , it should take care of that part.
The problem just occurred again
no new news
:: Synchronising package databases...
cachyos-v3 is up to date
cachyos-core-v3 is up to date
cachyos-extra-v3 is up to date
cachyos 488.5 KiB 3.16 MiB/s 00:00 [----------------------------------------------------------------------------------------------------------] 100%
core is up to date
extra is up to date
multilib is up to date
error: cachyos: signature from "CachyOS <admin@cachyos.org>" is invalid
error: failed to synchronize all databases (unexpected error)
I tried your fix, sadly to no avail. After refreshing the keys this is the output for sudo pacman -Sy
:
error: cachyos: signature from "CachyOS <admin@cachyos.org>" is invalid
:: Synchronising package databases...
cachyos-v3 is up to date
cachyos-core-v3 is up to date
cachyos-extra-v3 is up to date
cachyos 488.5 KiB 1551 KiB/s 00:00 [----------------------------------------------------------------------------------------------------------] 100%
core is up to date
extra 7.5 MiB 15.7 MiB/s 00:00 [----------------------------------------------------------------------------------------------------------] 100%
multilib is up to date
error: cachyos: signature from "CachyOS <admin@cachyos.org>" is invalid
error: failed to synchronize all databases (unexpected error)
This time I was quick enough to run sudo pacman --debug -Syu
and some of the interesting output looks like this:
debug: registering sync database 'cachyos'
debug: database path for tree cachyos set to /var/lib/pacman/sync/cachyos.db
debug: checking signature for /var/lib/pacman/sync/cachyos.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: signature from "CachyOS <admin@cachyos.org>" is invalid
debug: setting usage of 15 for cachyos repository
...
debug: cachyos-v3.db: url is https://cdn77.cachyos.org/repo/x86_64_v3/cachyos-v3/cachyos-v3.db
debug: cachyos-v3.db: maxsize 134217728
debug: cachyos-v3.db: using time condition 1727474251
debug: cachyos-v3.db: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/cachyos-v3.db.part (wb)
debug: cachyos-core-v3.db: url is https://cdn77.cachyos.org/repo/x86_64_v3/cachyos-core-v3/cachyos-core-v3.db
debug: cachyos-core-v3.db: maxsize 134217728
debug: cachyos-core-v3.db: using time condition 1726873629
debug: cachyos-core-v3.db: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/cachyos-core-v3.db.part (wb)
debug: cachyos-extra-v3.db: url is https://cdn77.cachyos.org/repo/x86_64_v3/cachyos-extra-v3/cachyos-extra-v3.db
debug: cachyos-extra-v3.db: maxsize 134217728
debug: cachyos-extra-v3.db: using time condition 1727517127
debug: cachyos-extra-v3.db: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/cachyos-extra-v3.db.part (wb)
debug: cachyos.db: url is https://cdn77.cachyos.org/repo/x86_64/cachyos/cachyos.db
debug: cachyos.db: maxsize 134217728
debug: cachyos.db: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/cachyos.db.part (wb)
debug: core.db: url is https://archlinux.cachyos.org/repo/core/os/x86_64/core.db
debug: core.db: maxsize 134217728
debug: core.db: using time condition 1727475756
debug: core.db: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/core.db.part (wb)
debug: extra.db: url is https://archlinux.cachyos.org/repo/extra/os/x86_64/extra.db
debug: extra.db: maxsize 134217728
debug: extra.db: using time condition 1727519013
debug: extra.db: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/extra.db.part (wb)
debug: multilib.db: url is https://archlinux.cachyos.org/repo/multilib/os/x86_64/multilib.db
debug: multilib.db: maxsize 134217728
debug: multilib.db: using time condition 1727515358
debug: multilib.db: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/multilib.db.part (wb)
debug: multilib.db: curl returned result 0 from transfer
debug: multilib.db: response code 304
debug: multilib.db.sig: url is https://archlinux.cachyos.org/repo/multilib/os/x86_64/multilib.db.sig
debug: multilib.db.sig: maxsize 16384
debug: multilib.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/multilib.db.sig.part (wb)
debug: multilib.db: file met time condition
debug: extra.db: curl returned result 0 from transfer
debug: extra.db: response code 304
debug: extra.db.sig: url is https://archlinux.cachyos.org/repo/extra/os/x86_64/extra.db.sig
debug: extra.db.sig: maxsize 16384
debug: extra.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/extra.db.sig.part (wb)
debug: extra.db: file met time condition
debug: core.db: curl returned result 0 from transfer
debug: core.db: response code 304
debug: core.db.sig: url is https://archlinux.cachyos.org/repo/core/os/x86_64/core.db.sig
debug: core.db.sig: maxsize 16384
debug: core.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/core.db.sig.part (wb)
debug: core.db: file met time condition
debug: cachyos-v3.db: curl returned result 0 from transfer
debug: cachyos-v3.db: response code 304
debug: cachyos-v3.db.sig: url is https://cdn77.cachyos.org/repo/x86_64_v3/cachyos-v3/cachyos-v3.db.sig
debug: cachyos-v3.db.sig: maxsize 16384
debug: cachyos-v3.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/cachyos-v3.db.sig.part (wb)
debug: cachyos-v3.db: file met time condition
debug: cachyos-extra-v3.db: curl returned result 0 from transfer
debug: cachyos-extra-v3.db: response code 304
debug: cachyos-extra-v3.db.sig: url is https://cdn77.cachyos.org/repo/x86_64_v3/cachyos-extra-v3/cachyos-extra-v3.db.sig
debug: cachyos-extra-v3.db.sig: maxsize 16384
debug: cachyos-extra-v3.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/cachyos-extra-v3.db.sig.part (wb)
debug: cachyos-extra-v3.db: file met time condition
debug: cachyos-core-v3.db: curl returned result 0 from transfer
debug: cachyos-core-v3.db: response code 304
debug: cachyos-core-v3.db.sig: url is https://cdn77.cachyos.org/repo/x86_64_v3/cachyos-core-v3/cachyos-core-v3.db.sig
debug: cachyos-core-v3.db.sig: maxsize 16384
debug: cachyos-core-v3.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/cachyos-core-v3.db.sig.part (wb)
debug: cachyos-core-v3.db: file met time condition
debug: multilib.db.sig: curl returned result 0 from transfer
debug: multilib.db.sig: response code 404
debug: multilib.db.sig: no more servers to retry
debug: cachyos-core-v3.db.sig: curl returned result 0 from transfer
debug: cachyos-core-v3.db.sig: response code 200
debug: extra.db.sig: curl returned result 0 from transfer
debug: extra.db.sig: response code 404
debug: extra.db.sig: no more servers to retry
debug: core.db.sig: curl returned result 0 from transfer
debug: core.db.sig: response code 404
debug: core.db.sig: no more servers to retry
debug: cachyos-v3.db.sig: curl returned result 0 from transfer
debug: cachyos-v3.db.sig: response code 200
debug: cachyos.db: curl returned result 0 from transfer
debug: cachyos.db: response code 200
debug: cachyos.db.sig: url is https://cdn77.cachyos.org/repo/x86_64/cachyos/cachyos.db.sig
debug: cachyos.db.sig: maxsize 16384
debug: cachyos.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-Q2x5NZ/cachyos.db.sig.part (wb)
debug: cachyos-extra-v3.db.sig: curl returned result 0 from transfer
debug: cachyos-extra-v3.db.sig: response code 200
debug: cachyos.db.sig: curl returned result 0 from transfer
debug: cachyos.db.sig: response code 200
debug: curl_download_internal return code is 0
debug: checking signature for /var/lib/pacman/sync/cachyos-v3.db
debug: 1 signatures returned
debug: fingerprint: 882DCFE48E2051D48E2562ABF3B607488DB35A47
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1727474220
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: 882DCFE48E2051D48E2562ABF3B607488DB35A47, CachyOS <admin@cachyos.org>, owner_trust marginal, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: checking signature for /var/lib/pacman/sync/cachyos-core-v3.db
debug: 1 signatures returned
debug: fingerprint: 882DCFE48E2051D48E2562ABF3B607488DB35A47
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1726873485
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: 882DCFE48E2051D48E2562ABF3B607488DB35A47, CachyOS <admin@cachyos.org>, owner_trust marginal, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: checking signature for /var/lib/pacman/sync/cachyos-extra-v3.db
debug: 1 signatures returned
debug: fingerprint: 882DCFE48E2051D48E2562ABF3B607488DB35A47
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1727516992
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: 882DCFE48E2051D48E2562ABF3B607488DB35A47, CachyOS <admin@cachyos.org>, owner_trust marginal, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: checking signature for /var/lib/pacman/sync/cachyos.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: signature from "CachyOS <admin@cachyos.org>" is invalid
debug: failed to validate db: cachyos
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: failed to sync dbs: unexpected error
error: failed to synchronize all databases (unexpected error)
I’m not sure what to make of this. Is it possible that this is a server side issue which I just regularly encounter due to usually updating multiple times a day before installing things?
Edit: removing /var/lib/pacman/sync/cachyos.db
and then refreshing fixed the issue. That might be the reason why enough time usually fixed the error. Maybe the fix was the db being outdated enough for it to be synced and thus the corruption getting fixed. In that case sudo pacman -Syyu
should also be enough tho, but that’s not the case as far as I remember.
Yeah, its due to the top mirror being used at your side (cdn77). You can try rating mirrors sudo cachyos-rate-mirrors
and if cdn77 still is the top mirror, you can remove it manually in /etc/pacman.d/cachyos{,-v3,-v4,-znver4}-mirrorlist
Yep did that back some time ago, I had problems with that very one.
# FINISHED AT: 2024-05-28 12:48:34.941366863 -06:00
Server = https://cdn-1.cachyos.org/$arch/$repo
Server = https://us.cachyos.org/repo/$arch/$repo
Server = https://mirror.fast0ne.com/repo/$arch/$repo
# Server = https://cdn.cachyos.org/repo/$arch/$repo
Server = https://aur.cachyos.org/repo/$arch/$repo
Server = https://mirror.cachyos.org/repo/$arch/$repo
Server = https://mirror.albony.xyz/cachylinux/repo/$arch/$repo
Server = https://kr.cachyos.org/repo/$arch/$repo
Server = https://mirror.lesviallon.fr/cachy/repo/$arch/$repo
@naim thanks for the look and suggestion.
That makes sense, and it also explains why I only see the error on one device. Mirrors must’ve been ranked differently. Thanks for the help!