[HowTo] Solve Keyring Related Issues in Manjaro

Wiki Page:

Manjaro and Arch users have a security keyring on their machine that allows them to safely download packages from the Manjaro and Arch repositories without those packages getting tampered with by a man-in-the-middle-attack.

Sometimes if a user doesn’t update their system for a long time, this keyring might expire. The keyring can also get corrupted for some reason.

To solve basic keyring issues do the following:

Resynchronise with the Manjaro repository servers to ensure that everything is up to date - by entering the command:

sudo pacman -Syy

Refresh and update the signature keys by entering the command:

sudo pacman-key --refresh-keys

Reload the signature keys by entering the command:

sudo pacman-key --populate archlinux manjaro

The three commands above should solve most (basic) keyring issues.

If they don’t, then you can also try more drastic measures.
Warning: The following commands only work if your system time is set correctly!

Remove all keys

sudo rm -rf /etc/pacman.d/gnupg

Reinitialize files & folders for keys

sudo pacman-key --init

Repopulate keys

sudo pacman-key --populate archlinux manjaro

Reinstall latest keyrings

sudo pacman -Sy gnupg archlinux-keyring manjaro-keyring

Refresh the signature keys

sudo pacman-key --refresh-keys

Clear out the software packages downloaded during aborted installations (optional):

sudo pacman -Sc

Warning: The above command clears the pacman cache completely, and you will not be able to downgrade to a previous version of a package until you’ve updated the packages at least two times.

Finally, try updating your system to see if the errors were resolved.

sudo pacman -Syu

Imported & adapted from @Heart-Of-A-Lion’s and @arvind’s Posts on the archived forum.


Creating this as a wiki post so that experts can make the necessary changes :wink:

15 Likes
Invalid or corrupted database (PGP signature)
Update not possible, keyring errors
Can't download keyrings. key cannot be looked up remotely
Can’t import keys (Stable Update 2023-07-10)
Tried to do a system update, manjaro started using all resources and the computer is freezing
Pamac is behaving strangely
[HowTo] Work around gpg verification issue on left behind systems
Unable to update qpdfview
Unable to perform updates keyring issues
Can’t import keys (Stable Update 2023-07-10)
"Failed to commit transaction" error during routine update
[Stable Update] 2023-12-01 - Kernels, NVIDIA, Thunderbird, Deepin, PipeWire 1.0, QEMU
Update fails with "keyring is not writable"
Signature problems after 2024-02-10 unstable update
[Stable Update] 2024-10-10 - Kernels, Pacman 7.0, KDE Frameworks 6.6, Virtualbox 7.1.2, Mesa
System update failed of invalid signatures
Upgrading Manjaro ARM 21.03 seems impossible on Pinephone
Upgrading Manjaro ARM 21.03 seems impossible on Pinephone
[Stable Update] 2022-12-20 - Kernels, XFCE 4.18, KDE Frameworks, Kde Gear, Mesa, Plasma-Mobile, Thunderbird, Firefox
Manjaro keyrings
No trusted keys
Corrupted package(s) - but pacman cache is empty
[Stable Update] 2026-02-01 - Kernels, COSMIC, Plasma, GNOME, Mesa
[Stable Update] 2022-12-20 - Kernels, XFCE 4.18, KDE Frameworks, Kde Gear, Mesa, Plasma-Mobile, Thunderbird, Firefox
Archlinux keyring fails to update
[Stable Update] 2022-12-20 - Kernels, XFCE 4.18, KDE Frameworks, Kde Gear, Mesa, Plasma-Mobile, Thunderbird, Firefox
[Stable Update] 2022-12-20 - Kernels, XFCE 4.18, KDE Frameworks, Kde Gear, Mesa, Plasma-Mobile, Thunderbird, Firefox
I can't update anything, i dont know what to do
Python application doesn't find tkinter but it's installed
Problem with endless refreshing/skipping of pacman keys

A wiki page exists…

https://wiki.manjaro.org/index.php/Pacman_troubleshooting#Errors_about_Keys

3 Likes

Okay then, feel free to delete the entire post if necessary. :slightly_smiling_face:
[I just saw the post at archived forum a few days ago, wasn’t ware of the wiki page, very sorry for that]

Don’t be sorry.

I think the more places something, especially something as common as this, can be found, thee better.

3 Likes

Thank you so much, this solved my problem. appreciate it. :heart: :100: