You are not logged in.

#1 2021-07-05 05:09:43

posop
Member
Registered: 2019-05-14
Posts: 12

trouble with AUR and installing zfs-utils

I am admittedly new to working with building packages in the AUR.

I have read https://wiki.archlinux.org/title/Makepkg but definitely still have some confusion.

Here's what I've done so far:

$ sudo pacman -S git base-devel
$ gpg --list-keys
$ git clone https://aur.archlinux.org/zfs-utils.git
$ cd zfs-utils/
$ makepkg

zfs-2.1.0.tar.gz ... FAILED (unknown public key 0AB9E991C6AF658B)
==> ERROR: One or more PGP signatures could not be verified!

So I tried to add the key:

$ gpg --recv-key 0AB9E991C6AF658B

gpg: keyserver receive failed: Server indicated a failure

So I am not sure what to do at this point...

Note:  someone else ran into the same problem on the package's site: https://aur.archlinux.org/packages/zfs-utils/?PP=250 , but the response was:

eschwartz wrote:

This package doesn't support people who have failed to read the wiki page https://wiki.archlinux.org/index.php/Makepkg, or cannot interpret error messages.

So can anyone have mercy on me and teach me to fish?

Offline

#2 2021-07-05 05:49:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,480
Website

Re: trouble with AUR and installing zfs-utils


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-07-05 06:24:41

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 4,097

Re: trouble with AUR and installing zfs-utils

posop wrote:

Note:  someone else ran into the same problem on the package's site: https://aur.archlinux.org/packages/zfs-utils/?PP=250 , but the response was:

eschwartz wrote:

This package doesn't support people who have failed to read the wiki page https://wiki.archlinux.org/index.php/Makepkg, or cannot interpret error messages.

It wasn't really the same error big_smile https://aur.archlinux.org/packages/zfs- … ent-783074

Well, to be fair you did get the same error, but upon getting the error you did something the other person did not: "So I tried to add the key:"

As it happens, you did something that should have worked, but as per the red info box on https://sks-keyservers.net/ the default keyserver no longer works.

GnuPG 2.2.29 was released today and switches to the Ubuntu keyserver, so as soon as that is packaged, your attempt to add the key would work by default. But until then you'll need to manually specify the Ubuntu keyserver.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2021-07-05 07:53:20

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,386
Website

Re: trouble with AUR and installing zfs-utils

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2021-07-05 15:59:26

posop
Member
Registered: 2019-05-14
Posts: 12

Re: trouble with AUR and installing zfs-utils

jasonwryan wrote:

Thank you, my attempt to implement the above link is as follows:

$ echo "keyserver keyserver.ubuntu.com" > ~/.gnupg/gpg.conf
$ gpg --verbose --keyserver https://keyserver.ubuntu.com/ --recv 0AB9E991C6AF658B

gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

$ gpg --keyserver https://keyserver.ubuntu.com/ --search-keys 0AB9E991C6AF658B

gpg: error searching keyserver: Server indicated a failure
gpg: keyserver search failed: Server indicated a failure

$ makepkg

zfs-2.1.0.tar.gz ... FAILED (unknown public key 0AB9E991C6AF658B)
==> ERROR: One or more PGP signatures could not be verified!

eschwartz wrote:

GnuPG 2.2.29 was released today and switches to the Ubuntu keyserver, so as soon as that is packaged, your attempt to add the key would work by default. But until then you'll need to manually specify the Ubuntu keyserver.

Are the above steps the proper way to manually specify the Ubuntu keyserver?

Thank you very much for your support in this matter!

Last edited by posop (2021-07-05 17:05:35)

Offline

#6 2021-07-05 16:31:27

seth
Member
Registered: 2012-09-03
Posts: 22,111

Re: trouble with AUR and installing zfs-utils

host keyserver.ubuntu.com

The syntax is eg.

keyserver keyserver.ubuntu.com

and  ~/.gnupg/gpg.conf trumps  ~/.gnupg/dirmngr.con

Offline

#7 2021-07-05 17:08:11

jonathon
Member
Registered: 2016-09-19
Posts: 98

Re: trouble with AUR and installing zfs-utils

posop wrote:
$ gpg --keyserver https://keyserver.ubuntu.com/ --search-keys 0AB9E991C6AF658B

gpg: error searching keyserver: Server indicated a failure
gpg: keyserver search failed: Server indicated a failure

This is a temporary failure. Make sure you can resolve the keyserver, that you can access it in a browser, and that you also try with the hkps rather than https protocol, e.g.

gpg --keyserver hkps://keyserver.ubuntu.com --search-keys 0AB9E991C6AF658B

Until you can obtain and import the key it is pointless trying any further steps.

Offline

#8 2021-07-05 17:22:31

posop
Member
Registered: 2019-05-14
Posts: 12

Re: trouble with AUR and installing zfs-utils

seth wrote:
host keyserver.ubuntu.com

Not sure what to do with this line of code, searched gpg man pages and no mention of "host"

I did updated my 2nd post to correct syntax based your response:

$ echo "keyserver keyserver.ubuntu.com" > ~/.gnupg/gpg.conf
$ gpg --verbose --keyserver keyserver.ubuntu.com --recv 0AB9E991C6AF658B

gpg: keyserver receive failed: Server indicated a failure

Still getting a failure from the server, is there an error, or an update command I am missing?

Offline

#9 2021-07-05 17:58:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,480
Website

Re: trouble with AUR and installing zfs-utils

┌─[Centurion ~]
└─╼ gpg --keyserver https://keyserver.ubuntu.com/ --search-keys 0AB9E991C6AF658B
gpg: data source: https://162.213.33.8:443
(1)     Brian Behlendorf <behlendorf1@llnl.gov>
        Brian Behlendorf (LLNL) <behlendorf1@llnl.gov>
          1024 bit DSA key 0AB9E991C6AF658B, created: 2007-09-20
Keys 1-1 of 1 for "0AB9E991C6AF658B".  Enter number(s), N)ext, or Q)uit >

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2021-07-05 20:13:04

seth
Member
Registered: 2012-09-03
Posts: 22,111

Re: trouble with AUR and installing zfs-utils

host keyserver.ubuntu.com

is a way to resolve the domain to an IP and will tell us whether you can resolve keyserver.ubuntu.com - it's not related to gpg at all.

Offline

#11 2021-07-05 23:50:26

posop
Member
Registered: 2019-05-14
Posts: 12

Re: trouble with AUR and installing zfs-utils

jasonwryan wrote:
┌─[Centurion ~]
└─╼ gpg --keyserver https://keyserver.ubuntu.com/ --search-keys 0AB9E991C6AF658B
gpg: data source: https://162.213.33.8:443
(1)     Brian Behlendorf <behlendorf1@llnl.gov>
        Brian Behlendorf (LLNL) <behlendorf1@llnl.gov>
          1024 bit DSA key 0AB9E991C6AF658B, created: 2007-09-20
Keys 1-1 of 1 for "0AB9E991C6AF658B".  Enter number(s), N)ext, or Q)uit >

Hm, I am getting different results:

[posop@arch zfs-utils]$ gpg --keyserver https://keyserver.ubuntu.com/ --search-keys 0AB9E991C6AF658B
gpg: error searching keyserver: Server indicated a failure
gpg: keyserver search failed: Server indicated a failure

Any idea why that could be?

I installed bind and ran:

[posop@arch zfs-utils]$ host keyserver.ubuntu.com
keyserver.ubuntu.com has address 162.213.33.8
keyserver.ubuntu.com has address 162.213.33.9

So it seems that keyserver.ubuntu.com is resolving for me.

Again thanks so much for your help!

Last edited by posop (2021-07-05 23:53:34)

Offline

#12 2021-07-06 01:32:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,480
Website

Re: trouble with AUR and installing zfs-utils

Do any gpg operations work for you? Or is it just the network stuff that is borked?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2021-07-06 04:01:47

posop
Member
Registered: 2019-05-14
Posts: 12

Re: trouble with AUR and installing zfs-utils

I am not too familiar with using gpg but here are a few commands I see on the man page:

[posop@arch zfs-utils]$ gpg --version
gpg (GnuPG) 2.2.28
libgcrypt 1.9.3-unknown
...
[posop@arch zfs-utils]$ gpg --list-keys
/etc/pacman.d/gnupg/pubring.gpg
-------------------------------
pub   rsa4096 2021-07-04 [SC]
      92291B373B4B7F53F847D32E8B2F79B6FCD27FDC
uid           [ unknown] Pacman Keyring Master Key <pacman@localhost>

pub   rsa4096 2011-11-29 [SC]
      AB19265E5D7D20687D303246BA1DFB64FFF979E7
uid           [ unknown] Allan McRae (Arch Linux Master Key) <allan@master-key.archlinux.org>
...

So it seems to be working?  This is a fresh Arch install as of 7/4/2021

Offline

#14 2021-07-06 05:20:40

seth
Member
Registered: 2012-09-03
Posts: 22,111

Re: trouble with AUR and installing zfs-utils

pkill dirmngr
gpg --keyserver https://keyserver.ubuntu.com/ --search-keys 0AB9E991C6AF658B

Offline

#15 2021-07-10 20:23:50

posop
Member
Registered: 2019-05-14
Posts: 12

Re: trouble with AUR and installing zfs-utils

seth wrote:
pkill dirmngr
gpg --keyserver https://keyserver.ubuntu.com/ --search-keys 0AB9E991C6AF658B

So that didn't solve the issue either. 

I did a complete reinstall of my arch system, and tried again.  I am getting all of the same errors.

What I tried next was to do

$ makepkg --skipinteg

This avoided the PGP check and allowed the package to build.  What are the consequences of this?

And then when I try to actually install the package

[posop@arch zfs-utils]$ sudo pacman -U zfs-2.1.0.tar.gz
loading packages...
error: missing package metadata in zfs-2.1.0.tar.gz
error: 'zfs-2.1.0.tar.gz': invalid or corrupted package

Last edited by posop (2021-07-10 20:29:26)

Offline

#16 2021-07-10 20:36:13

seth
Member
Registered: 2012-09-03
Posts: 22,111

Re: trouble with AUR and installing zfs-utils

That's not the package but the zfs tarball.

Skipping the signature check means that the signature check was skipped - so there's no guarantee around the sources.
Can you find Allans key?

gpg --keyserver https://keyserver.ubuntu.com/ --search-keys AB19265E5D7D20687D303246BA1DFB64FFF979E7

Offline

#17 2021-07-10 23:53:20

posop
Member
Registered: 2019-05-14
Posts: 12

Re: trouble with AUR and installing zfs-utils

That failed too.  so it seems I am unable to manually add or find keys.

Offline

#18 2021-07-11 01:12:43

loqs
Member
Registered: 2014-03-06
Posts: 13,636

Re: trouble with AUR and installing zfs-utils

If you add a line with the value standard-resolver to .gnupg/dirmngr.conf then pkill dirmngr;  gpg --keyserver https://keyserver.ubuntu.com/ --search-keys AB19265E5D7D20687D303246BA1DFB64FFF979E7
Is the result the same?

Offline

Board footer

Powered by FluxBB