Can't install manjaro-keyring, arch-keyring : package missing required signature

Hi all,

Lately I have been unable to update any AUR packages and am receiving the package missing required signature error. I have been making do by temporarily changing the siglevel in pacman.conf in order to install/update things, but I really would like to fix the underlying issue.

I have tried fixing it by following the official instructions here: Pacman troubleshooting - Manjaro. However, at the step to install the .zst files I receive receive the same ```package missing required signatureā€™ error for each. Actual output pasted below:

sudo pacman -U manjaro-keyring*.pkg.tar.zst archlinux-keyring*.pkg.tar.zst
loading packages...
error: 'manjaro-keyring-20230719-3-any.pkg.tar.zst': package missing required signature
error: 'archlinux-keyring-20240709-1-any.pkg.tar.zst': package missing required signature

Iā€™m not entirely sure why Iā€™m only now receiving these errors. A month or two ago I did lose my aur-build directory and so had to create a new one. I removed/uninstalled the existing AUR packages from my machine and tried to rebuild them in the new directory, but every package fails and throws the ā€˜package missing required signatureā€™ error.

Does anyone know whatā€™s happening here? I donā€™t have a great deal of knowledge on pacman internals but it seems like pacman or pamac might still be pointing to a non-existent db or a file containing the old path? Or somethingā€¦ :person_shrugging:

Any guidance would be most appreciated!

-w

Edit:
I have also tried this solution to no avail.

What is the output from

grep LocalFileSigLevel /etc/pacman.conf

Run the solve-everyrhing script:

1 Like
grep LocalFileSigLevel /etc/pacman.conf
#LocalFileSigLevel = Optional

I have never touched the LocalFileSigLevel line (to my knowledge anyway). I tried to avoid fiddling with things I donā€™t fully understand.

To update I have just been commenting/uncommenting these two lines as per a workaround I found on the forum:

SigLevel = Required DatabaseOptional
SigLevel = Optional DatabaseNever

Yowzers, looks quite thorough! Iā€™ll give it a shot later today and report back. That is if I havenā€™t managed to brick my computer somehowā€¦ Eep. Thanks @Arrababiski

From what I have seen, the default is for that line to not be commented. That is what is keeping you from installing the downloaded keyrings. It may also be keeping you from installing any AUR package that you build, since those locally built packages will also be unsigned.

1 Like

Bingo! You are correct! In the interim I managed to find the default pacman.conf on github and it does indeed have LocalFileSigLevel = Optional uncommented. Link below for anyone ever wanting to check their own config. Thank you to all!

Perhaps easier than searching for it on the internet:
ā€œNormallyā€, you also have one or a few versions of the installed packages in cache:
/var/cache/pacman/pkg/
in this case:
ls -al /var/cache/pacman/pkg/pacman*
pacman-6.1.0-7-x86_64.pkg.tar.zst

If you donā€™t have it in cache, you can fetch it:
sudo pacman -Sw pacman
and then find it in the cache

unpack the archive and find the original config file

Works for any package you might need the original of again, to have a look at the contents of the original files.

1 Like

Thanks @Nachlese, handy to learn!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.