From 78d1d415ec8e5396834dfce0f5a123be6bea7d59 Mon Sep 17 00:00:00 2001 From: marten <43725244+tiyn@users.noreply.github.com> Date: Thu, 4 Aug 2022 20:03:22 +0200 Subject: [PATCH] package-manager: new error added is marginal trust --- wiki/linux/arch-linux/package-manager.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wiki/linux/arch-linux/package-manager.md b/wiki/linux/arch-linux/package-manager.md index ddfbab1..031a9ad 100644 --- a/wiki/linux/arch-linux/package-manager.md +++ b/wiki/linux/arch-linux/package-manager.md @@ -33,3 +33,18 @@ gpg --lsign Where is the placeholder of the identification string of the key. It usually gets gets printed in the line above the error looking like `FAILED (unknown public key )`. + +### Error while updating `is marginal trust` + +Both `yay` and `pacman` use gpg keys to confirm the package manager gets the +right package. +It is possible that it runs into errors when importing new keys. +If the error `[...] Key [...] is marginal trust` occurs while updating the +system, it can be fixed by running the following commands and then restarting +the update process of the package manager. + +```sh +pacman -Sy archlinux-keyring +pacman-key --populate archlinux +pacman-key --refresh-keys +```