summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-02-16 18:10:18 +0100
committerxengineering <me@xengineering.eu>2023-02-16 18:10:18 +0100
commit6de1d91615c01799145a76c5394b0508d6067659 (patch)
tree9523edf09cb1b5e131532000c7dff5326ce2d20b
parenta98e05ddcdb0a913a2f490ffd5961e128ef80761 (diff)
downloadwebsite-6de1d91615c01799145a76c5394b0508d6067659.tar
website-6de1d91615c01799145a76c5394b0508d6067659.tar.zst
website-6de1d91615c01799145a76c5394b0508d6067659.zip
Add troubleshooting advice to pacman-essentials.md
The two mentioned errors are quite common when working with Arch Linux.
-rw-r--r--content/articles/pacman-essentials.md12
1 files changed, 12 insertions, 0 deletions
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 <package>
`<package>` 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: