(SOLVED) ==> ERROR: One or more PGP signatures could not be verified!


#1

Hello! I am new to Manjaro Linux, and Linux in general. I am trying to install libc++.

[admin@admin-pc libc++]$ makepkg -sic
==> Making package: libc++ 6.0.0-1 (Mon Jun 18 04:00:00 EDT 2018)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
-> Found llvm-6.0.0.src.tar.xz
-> Found llvm-6.0.0.src.tar.xz.sig
-> Found libcxx-6.0.0.src.tar.xz
-> Found libcxx-6.0.0.src.tar.xz.sig
-> Found libcxxabi-6.0.0.src.tar.xz
-> Found libcxxabi-6.0.0.src.tar.xz.sig
==> Validating source files with sha512sums…
llvm-6.0.0.src.tar.xz … Passed
llvm-6.0.0.src.tar.xz.sig … Skipped
libcxx-6.0.0.src.tar.xz … Passed
libcxx-6.0.0.src.tar.xz.sig … Skipped
libcxxabi-6.0.0.src.tar.xz … Passed
libcxxabi-6.0.0.src.tar.xz.sig … Skipped
==> Verifying source file signatures with gpg…
llvm-6.0.0.src.tar.xz … FAILED (unknown public key 0FC3042E345AD05D)
libcxx-6.0.0.src.tar.xz … FAILED (unknown public key 0FC3042E345AD05D)
libcxxabi-6.0.0.src.tar.xz … FAILED (unknown public key 0FC3042E345AD05D)
==> ERROR: One or more PGP signatures could not be verified!
[admin@admin-pc libc++]$


#2

fix with sudo pacman -Sy archlinux-keyring manjaro-keyring and then update your system with sudo pacman -Syyu.

if that doesn’t work carry on doing the following sequentially, check if the update command sudo pacman -Syyu will proceed after each to save entering the lot.

sudo pacman-key --populate archlinux manjaro
sudo pacman-key --refresh-keys

#3

The first 3 commands worked properly, but when I enter the last one, this is the result.

[admin@admin-pc libc++]$ sudo pacman-key --refresh-keys
gpg: refreshing 121 keys from hkp://pool.sks-keyservers.net
gpg: keyserver refresh failed: Server indicated a failure
==> ERROR: A specified local key could not be updated from a keyserver.
[admin@admin-pc libc++]$


#4

#5

When I enter the command

cd HOME/.gnupg/dirmngr.conf
It says

bash: cd: HOME/.gnupg/dirmngr.conf: No such file or directory

#6

They are listed FILES for creating with code.
$HOME = environment variable for home dir :wink:

You need create FILES listed in tuto.

sample

nano $HOME/.gnupg/dirmngr.conf
nano $HOME/.gnupg/gpg-agent.conf

#7

I don’t know how. This is my first day using Manjaro Linux, I apologize.

Edit: I think I got it.


#8

Relax, don’t apologize. Just be patient and learn a lot of new weird things :wink: Good luck.


#9
[ Error writing /.gnupg/dirmngr.conf: No such file or directory ]

How would I create the directory?


#10
mkdir -p $HOME/.gnupg

#11

Thank you. I followed all the steps, but when I try to install libc++ I still have the same results.

llvm-6.0.0.src.tar.xz … FAILED (unknown public key 0FC3042E345AD05D)
libcxx-6.0.0.src.tar.xz … FAILED (unknown public key 0FC3042E345AD05D)
libcxxabi-6.0.0.src.tar.xz … FAILED (unknown public key 0FC3042E345AD05D)
==> ERROR: One or more PGP signatures could not be verified!

#12

#13
[admin@admin-pc ~]$ gpg --recv-key 0FC3042E345AD05D
gpg: keyserver receive failed: Server indicated a failure


#14

This is what happens when I try to do it as a super user.

[admin-pc admin]# gpg --recv-keys 0FC3042E345AD05D
gpg: WARNING: server 'dirmngr' is older than us (2.2.6 < 2.2.7)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
gpg: keyserver receive failed: Server indicated a failure

#15

You probably want to update your system before doing anything else. The quickest way to make sure everything is updated would be:

sudo pacman-mirrors -f3
sudo pacman -Syyu

#16

Thanks for all your help! I was not expecting this. I have solved it by adding --skippgpcheck to makepkg -sic. Thanks!!


#17

That is a workaround, not a solution.

The solution would probably have been to try another keyserver, like http://pgp.key-server.io/. I’ve also been having issues with the default one for a while.


closed #18

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.