Can't install Xanmod kernel

I tried installing the “linux-manjaro-xanmod” package, but when building, I always run into this issue:
Verifying source file signatures with gpg…
linux-5.13.tar … FAILED
==> ERROR: One or more PGP signatures could not be verified!

Here’s the full terminal output

Warning: linux-manjaro-xanmod is only available from AUR
Preparing...
Cloning linux-manjaro-xanmod build files...
Running as unit: run-u131.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 1.747s
CPU time consumed: 36ms
Running as unit: run-u132.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 11ms
CPU time consumed: 11ms
Checking linux-manjaro-xanmod dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  linux-manjaro-xanmod  5.13.4-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building linux-manjaro-xanmod...
Running as unit: run-u940.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: linux-manjaro-xanmod 5.13.4-1 (So 24. července 2021, 14:14:05)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found linux-5.13.tar.xz
  -> Found linux-5.13.tar.sign
  -> Found patch-5.13.4-xanmod1.xz
  -> Found choose-gcc-optimization.sh
  -> Found linux513-f1bd9b6ad461634994d89bc8cdcb742f11ac1789.tar.gz
==> Validating source files with sha256sums...
    linux-5.13.tar.xz ... Passed
    linux-5.13.tar.sign ... Skipped
    patch-5.13.4-xanmod1.xz ... Passed
    choose-gcc-optimization.sh ... Passed
    linux513-f1bd9b6ad461634994d89bc8cdcb742f11ac1789.tar.gz ... Passed
==> Verifying source file signatures with gpg...
    linux-5.13.tar ... FAILED
==> ERROR: One or more PGP signatures could not be verified!
Finished with result: exit-code
Main processes terminated with: code=exited/status=1
Service runtime: 2.074s
CPU time consumed: 2.300s
Error: Failed to build linux-manjaro-xanmod

Does anyone know how to solve this issue? Thanks

System info

[System]
OS: Manjaro Linux 21.1.0 Pahvo
Arch: x86_64
Kernel: 5.13.4-1-MANJARO
Desktop: KDE
Display Server: x11

[CPU]
Vendor: AuthenticAMD
Model: AMD Ryzen 9 3900X 12-Core Processor
Physical cores: 12
Logical cores: 24

[Memory]
RAM: 31.3 GB
Swap: 0.0 GB

[Graphics]
Vendor: NVIDIA Corporation
OpenGL Renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
OpenGL Version: 4.6.0 NVIDIA 470.57.02
OpenGL Core: 4.6.0 NVIDIA 470.57.02
OpenGL ES: OpenGL ES 3.2 NVIDIA 470.57.02
Vulkan: Supported

Looks like you have to import a gpg key.

pamac GUI does that automatically (at least for me). Try to first-build it that way.

Or just import the key manually:

  • Add Linus Torvalds and Greg KH keys to list of trusted keys in pacman “database” of trusted keys:

$ sudo pacman-key -r 00411886 $ sudo pacman-key -r 6092693E

  • Import Linus Torvalds and Greg KH public key to your machine if you haven’t done that already.

$ gpg --recv-keys 79BE3E4300411886 $ gpg --recv-keys 38DBBDC86092693E

More info about fixing missing gpg keys at the pinned thread in AUR section…

“aur-package-fails-to-verify-pgp-gpg-key-unknown-public-key-one-or-more-pgp-signatures-could-not-be-verified”

I cannot post the link here.

By the way… This was your error message.

… or install the package via AUR helper like yay which is able to fetch PGP keys.

https://wiki.archlinux.org/title/AUR_helpers