From 6de1d91615c01799145a76c5394b0508d6067659 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 16 Feb 2023 18:10:18 +0100 Subject: Add troubleshooting advice to pacman-essentials.md The two mentioned errors are quite common when working with Arch Linux. --- content/articles/pacman-essentials.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/articles/pacman-essentials.md b/content/articles/pacman-essentials.md index 42c84dc..885cb1c 100644 --- a/content/articles/pacman-essentials.md +++ b/content/articles/pacman-essentials.md @@ -25,6 +25,15 @@ It runs interactively which means that questions should be answered by the user with pressing `y` or `n` followed by the `Enter` key. The default option (the bigger letter in `[Y/n]` or `[y/N]`) is a good option in most cases. +If this fails because of errors related to signing keys and GPG it can be fixed +by running this command: + +``` +sudo pacman -Sy archlinux-keyring && sudo pacman -Su +``` + +This error can be avoided by updating the system regularly. + #### Package search One can search for existing packages with this command: @@ -51,6 +60,9 @@ sudo pacman -S `` should be replaced by the lower case package name found with the package search (see above) like `firefox` or `gimp`. +If this fails because the packages cannot be retrieved via the HTTP protocol +the error can be fixed by updating the whole system first as described above. + #### Package removal The recommended command to remove one or multiple packages is: -- cgit v1.2.3-70-g09d2