diff options
author | GNUxeava <bluenerd@protonmail.com> | 2022-04-06 08:10:26 +0530 |
---|---|---|
committer | GNUxeava <bluenerd@protonmail.com> | 2022-04-06 08:10:26 +0530 |
commit | 44ce3b465ba1a7cfd8171a9e45fcb88d3c46522e (patch) | |
tree | c84721f6d4d4ace77603b0e538828436bb537030 | |
parent | cd9aca6a19a1b66f3226a55c160300e7fec49bcf (diff) |
finish pacman keyring post
-rw-r--r-- | content/post/when-pacman-says-error-required-key-missing-from-keyring.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/content/post/when-pacman-says-error-required-key-missing-from-keyring.md b/content/post/when-pacman-says-error-required-key-missing-from-keyring.md index bee57ff..cd9f93e 100644 --- a/content/post/when-pacman-says-error-required-key-missing-from-keyring.md +++ b/content/post/when-pacman-says-error-required-key-missing-from-keyring.md @@ -1,5 +1,5 @@ --- -title: "When Pacman Says Error Required Key Missing From Keyring" +title: "When pacman says \"error: required key missing from keyring\"" date: 2020-10-20T08:02:14+05:30 lastmod: 2022-04-06T08:02:14+05:30 draft: false @@ -41,3 +41,25 @@ sequenceDiagrams: --- <!--more--> + +``` +warning: Public keyring not found; have you run 'pacman-key --init'? +downloading required keys... +error: keyring is not writable +error: required key missing from keyring +error: failed to commit transaction (could not find or read file) +Errors occurred, no packages were upgraded. +``` + +This is what happened when I ran `pacman -S zsh` on my new WSL2 install. + +I wasted a lot of time trying to fix this thing. I'll jump to the conclusion so you don't have to waste your time too. Entering these (as root) worked for me. +``` +rm -r /etc/pacman.d/gnupg/ +pacman-key --init +pacman-key --populate archlinux +pacman -Sc +pacman -Syyu +``` + +Read the thread here: https://bbs.archlinux32.org/viewtopic.php?id=522&p=2 |