You are not logged in.

#1 2023-01-09 14:37:26

macecm
Member
Registered: 2023-01-09
Posts: 2

[SOLVED]archlinux-keyring is not update

Since running "sudo pacman -S archlinux-keyring" from the beginning of this year, I got a version of 20220831-1 instead of current version of 20221220-1, so I can't to upgrade system due to "invalid or corrupted package (PGP signature)" while sudo pacman -Su. How to solve it?
Looking forward to hearing from you soon.

Last edited by macecm (2023-01-10 03:53:04)

Offline

#2 2023-01-09 14:40:47

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: [SOLVED]archlinux-keyring is not update

Try:

# pacman -Sy archlinux-keyring

(-Sy archlinux-keyring for only! Partial Upgrades are NOT supported!)


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2023-01-09 15:01:25

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED]archlinux-keyring is not update

If an update has already failed, then the -y flag shouldn't be relevant as the databases would have been updated.  More likely you'll need to check your mirrors and update your mirrorlist (then use the command above).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2023-01-10 04:03:53

macecm
Member
Registered: 2023-01-09
Posts: 2

Re: [SOLVED]archlinux-keyring is not update

"If an update has already failed, then the -y flag shouldn't be relevant as the databases would have been updated.  More likely you'll need to check your mirrors and update your mirrorlist (then use the command above)."

Thanks for Trilby's suggestion, I had been checked Mirros WiKi, according to 2.1 Force pacman to refresh the package lists, issued "pacman -Syyu", I success to upgrade system.
Thanks again!

Last edited by macecm (2023-01-10 04:04:51)

Offline

#5 2023-01-10 05:37:25

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [SOLVED]archlinux-keyring is not update

You almost certainly needed only pacman -Syu. Do not use the second y unless your local database is corrupted.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2023-01-10 13:45:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED]archlinux-keyring is not update

The second 'y' may or may not be needed, but is certainly appropriate (and typically recommended) upon updating the mirrorlist.  This is particularly relevant if the previously active mirror was bad as there's really only one way for them to be good, and countless ways to be bad (it's possible it had updated timestamps on dbs with outdated package data).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2023-01-11 02:50:41

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,130

Re: [SOLVED]archlinux-keyring is not update

Trilby wrote:

(it's possible it had updated timestamps on dbs with outdated package data).

I didn't realise that was possible (without a mirror being malicious).


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB