msys2 out of whack

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

msys2 out of whack

Post by Dann Corbit »

Since yesterday, I have not been able to synchronize my msys2 installation. I get errors like this:

Code: Select all

$ pacman -Syu
error: mingw32: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
error: mingw64: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
error: msys: signature from "Alexey Pavlov (Alexpux) <alexpux@gmail.com>" is unknown trust
:: Synchronizing package databases...
 mingw32                                                                                                    7.6 KiB  7.41M/s 00:00 [##############################################################################] 100%
 mingw32.sig                                                                                                7.6 KiB  7.42M/s 00:00 [##############################################################################] 100%
error: GPGME error: No data
error: failed to update mingw32 (invalid or corrupted database (PGP signature))
 mingw64                                                                                                    7.6 KiB  0.00B/s 00:00 [##############################################################################] 100%
 mingw64.sig                                                                                                7.6 KiB  0.00B/s 00:00 [##############################################################################] 100%
error: GPGME error: No data
error: failed to update mingw64 (invalid or corrupted database (PGP signature))
 msys                                                                                                       7.6 KiB  7.41M/s 00:00 [##############################################################################] 100%
 msys.sig                                                                                                   7.6 KiB  7.41M/s 00:00 [##############################################################################] 100%
error: GPGME error: No data
error: failed to update msys (invalid or corrupted database (PGP signature))
error: failed to synchronize all databases
I did some searches but none of the example ways to fix it have done anything useful.

I don't suppose someone knows a simple fix for this mess?
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: msys2 out of whack

Post by Dann Corbit »

If someone else runs into this problem, here is how to fix it:
pacman-key --init
pacman-key --populate

And a couple cycles of:
pacman -Syu
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.