msys2.github.io icon indicating copy to clipboard operation
msys2.github.io copied to clipboard

Pacman -Syu fails to update, key is unknown

Open mbehm opened this issue 3 years ago • 4 comments

Yes this is the same issue as #67 because just up and reinstalling everything from the scratch isn't a proper solution and since that one is closed nobody seems to care. Please provide a working solution to update past the key change without having to reinstall everything. Solution in https://www.msys2.org/news/#2020-06-29-new-packagers doesn't work.

mbehm avatar Jun 09 '21 17:06 mbehm

touch empty
curl -LO https://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
pacman --config empty -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
pacman -Syyu

??

jeremyd2019 avatar Jun 09 '21 17:06 jeremyd2019

Apparently you'll need to use the pacman -U --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz even if adding the key doesn't fail, might want to update the documentation to say that.

mbehm avatar Jun 09 '21 17:06 mbehm

Some people also reported the bash trick of <(echo) caused an error that /dev/fd/<number> was not found, perhaps because their install was so old that that directory wasn't created at install. Whatever the cause, an actual empty file might help in that case.

jeremyd2019 avatar Jun 09 '21 17:06 jeremyd2019

Could be caused by these changes in dirmngr https://dev.gnupg.org/rG47c4e3e00a7ef55f954c14b3c237496e54a853c1 https://github.com/msys2/msys2.github.io/issues/76

Updating the gnupg to the latest version should fix the issue.

humbleoh avatar Oct 18 '21 12:10 humbleoh