Hello everyone.

I am trying to install proton via pacopts using the command:

pacopts aur -I proton

but I am having problems related to public keys, when pacopts is building some dependencies it throws this error:

==> Validating source files with sha256sums...
mingw-w64-v9.0.0.tar.bz2 ... Passed
mingw-w64-v9.0.0.tar.bz2.sig ... Skipped
==> Verifying source file signatures with gpg...
mingw-w64-v9.0.0.tar.bz2 ... FAILED (unknown public key 93BDB53CD4EBC740)
==> ERROR: One or more PGP signatures could not be verified!

Normally I'd just simply get the keys from a server via:

gpg --recv-keys CAF5641F74F7DFBA88AE205693BDB53CD4EBC740

or downloading the file containing the key and using:

gpg --import CAF5641F74F7DFBA88AE205693BDB53CD4EBC740.asc

However none of these approaches seem to work, if I use the debug flag with gpg (also tried with pacman-key) it shows me a 219 error:

gpg --debug 1024 --recv CAF5641F74F7DFBA88AE205693BDB53CD4EBC740

gpg: reading options from '[cmdline]'
gpg: enabled debug flags: ipc
gpg: DBG: chan_3 <- # Home: /home/frank/.gnupg
gpg: DBG: chan_3 <- # Config: /home/frank/.gnupg/dirmngr.conf
gpg: DBG: chan_3 <- OK Dirmngr 2.2.32 at your service
gpg: DBG: connection to the dirmngr established
gpg: DBG: chan_3 -> GETINFO version
gpg: DBG: chan_3 <- D 2.2.32
gpg: DBG: chan_3 <- OK
gpg: DBG: chan_3 -> KS_GET -- 0xCAF5641F74F7DFBA88AE205693BDB53CD4EBC740
gpg: DBG: chan_3 <- ERR 219 Server indicated a failure <Unspecified source>
gpg: keyserver receive failed: Server indicated a failure
gpg: DBG: chan_3 -> BYE
gpg: secmem usage: 0/32768 bytes in 0 blocks

Note: the file /home/frank/.gnupg/dirmngr.conf does not exist. I did not create it, I suppose I should be created manually or that dirmngr is using other directory as home, see (https://www.gnupg.org/documentation/manuals/gnupg/Dirmngr-Options.html), but I don't know.

I also updated the obarun-keyring, and repopulate using:

sudo pacman-key --init && sudo pacman-key --populate obarun

==> Appending keys from obarun.gpg...
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
==> Disabling revoked keys in keyring...
-> Disabled 3 keys.
==> Updating trust database...
gpg: next trustdb check due at 2022-05-06

But it did not help, I even looked for some 219 error solution in arch forums, but some are systemd solutions and the answers were not friendly, to say the least. What can I do to solve this 219 error problem?

I am using Obarun since december 2021 because of being systemd free, and I love Obarun and its community. I hope to learn a lot and help when possible. Thanks you!
eric wroteit's not related to pacopts but a problem of gpg importation.
You are right, is a gpg error but I still can't import any new public key. To be fair, this is more important to me than the installation itself. Is there a troubleshoot guide here in the forum? I never had this problem in an Arch based system.
eric wroteAre you sure to be up to date with your proton PKGBUILD, because i don't see ming-w64 package declaration here https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=proton
I found the mingw related packages as makedepends:

makedepends=(autoconf bison perl fontforge flex mingw-w64-gcc
git wget rsync mingw-w64-tools lld nasm meson cmake python-virtualenv python-pip

This is the last step when the building fails:

pacopts: info: check dependencies for mingw-w64-tools
pacopts: info: get mingw-w64-tools PKGBUILD
-> mingw-w64-tools exist, overwrite it? [y|n]

I will read about PKGBUILD and how to use it. I thought the last version of the file was downloaded automatically by cower or pacopts. I need to get it from the aur git itself?

Thank you very much Eric, I really wanted to say that, your work is an inspiration to me.
The gpg error was solved (I can import and refresh keys). Reference (https://blog.stigok.com/2017/03/07/gpg-refresh-keys-failed.html)

1. I created a dirmngr.conf file in ~/.gnupg
2. I added a:
keyserver hkps://pgp.mit.edu
standard-resolver
3. Kill dirmngr: pkill dirmngr

The problem happened after a system upgrade, but I do not know exactly what caused it.

About the installation process with pacopts, it was unsuccessful by other reasons beyond the scope of this post. I started reading this wiki entries in from archlinux:

https://wiki.archlinux.org/title/Arch_User_Repository# Installing_and_upgrading_packages
https://wiki.archlinux.org/title/PKGBUILD
https://wiki.archlinux.org/title/Creating_packages

I recommend these readings, and consider this topic as closed.

Also, I want to thank you for your time.

Powered by Obarun