Posts /

Archlinux AUR makepkg unknown PGP public key

Twitter Facebook Google+
15 Mar 2017

Sometimes when you build a package from the AUR, some public GPG keys are not trusted and makepkg refuse to build package from this source.

==> Verifying source file signatures with gpg...
    llvm-4.0.0.src.tar.xz ... FAILED (unknown public key 0FC3042E345AD05D)
    libcxx-4.0.0.src.tar.xz ... FAILED (unknown public key 0FC3042E345AD05D)
    libcxxabi-4.0.0.src.tar.xz ... FAILED (unknown public key 0FC3042E345AD05D)
==> ERROR: One or more PGP signatures could not be verified!
==> ERROR: Makepkg was unable to build libc++.

To avoid this kind of error, you have to trusts thoses keys.

As your current user (the one who gonna build the package)

# Download the key.
gpg --recv-keys 0FC3042E345AD05D
# Now we edit the key and trust it.
gpg --edit-key 0FC3042E345AD05D

gpg> trust
# select "full" or "ultimate"

Re-run the build procedure and we’re done.


Twitter Facebook Google+