Updating system issue - corrupted package
This commit is contained in:
parent
ec001febfb
commit
1924df7da3
|
@ -0,0 +1,64 @@
|
|||
#+date: 2023-03-08
|
||||
#+options: toc:nil num:nil
|
||||
#+bibliography: ../bib/biblio.bib
|
||||
|
||||
* Invalid or corrupted package - PGP signature
|
||||
|
||||
|
||||
Sometimes when updating the system (Parabola-GNU linux) the system can't be updated:
|
||||
|
||||
#+begin_quote
|
||||
error: iceweasel: signature from "bill-auger <bill-auger@peers.community>" is unknown trust
|
||||
:: File /var/cache/pacman/pkg/iceweasel-1:110.0.1-1.parabola1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
|
||||
#+end_quote
|
||||
|
||||
The Arch linux wiki offers the following options:
|
||||
|
||||
#+begin_quote
|
||||
pacman-key depends on system time. If your system clock is not synchronized, system installation/upgrade may fail with:
|
||||
#+end_quote
|
||||
|
||||
** Options to solve: use ntpd
|
||||
|
||||
Correct the system time using the following (as sudo):
|
||||
|
||||
First synchronize the local clock with the network clock using ~ntpd~ (NTP daemon program)[fn:1]:
|
||||
|
||||
#+begin_example sh
|
||||
ntpd -qg
|
||||
#+end_example
|
||||
|
||||
Here the command uses the arguments "q" (force-step-once) "g" (panicgate). Check the manual (~$ man ntpd~) to know the details.
|
||||
|
||||
Then, use the following to set the hardware clock from the system clock:
|
||||
|
||||
#+begin_example sh
|
||||
hwclock -w
|
||||
#+end_example
|
||||
|
||||
** Remove package from cache
|
||||
|
||||
Some packages could be corrupted or may be unsigned, causing failure. Remove each offending package from the system cache rm /var/cache/pacman/pkg/pkgname so it gets freshly downloaded, or clear the entire cache.
|
||||
|
||||
** Upgrade pacman-key and refresh keys
|
||||
|
||||
Upgrade keyring (should use ~sudo~)
|
||||
|
||||
#+begin_example sh
|
||||
pacman -S archlinux-keyring
|
||||
pacman -S parabola-keyring
|
||||
#+end_example
|
||||
|
||||
Refresh keys (should use ~sudo~)
|
||||
|
||||
#+begin_example sh
|
||||
pacman-key --refresh-keys
|
||||
#+end_example
|
||||
|
||||
** References
|
||||
|
||||
-[[https://wiki.archlinux.org/title/Pacman/Package_signing#Upgrade_system_regularly][Arch linux Wiki]]
|
||||
|
||||
* Footnotes
|
||||
|
||||
[fn:1]NTP stands for Network Time Protocol
|
Loading…
Reference in New Issue