You are not logged in.

#1 2022-07-18 12:24:13

mane.andrea
Member
Registered: 2021-04-29
Posts: 8

[SOLVED] Problem with gpg when building in a chroot

Here is how to reproduce the problem:

  1. Create a chroot

    $ export CHROOT=/home/me/arch_builds
    $ mkarchroot $CHROOT/root base-devel
  2. Download a package

    $ asp checkout zsh
    $ cd zsh/repos/extra-x86_64
  3. Make the package

    $ makechrootpkg -cr $CHROOT
    # (usual output...)
    ==> Verifying source file signatures with gpg...
        zsh-5.9.tar.xz ... FAILED (unknown public key ACF8146CAE8CBBC4)
        zsh-5.9-doc.tar.xz ... FAILED (unknown public key ACF8146CAE8CBBC4)
    ==> ERROR: One or more PGP signatures could not be verified!
    ==> ERROR: Could not download sources.

How strange, let me update archlinux-keyring

$ arch-nspawn $CHROOT/root pacman -Syu archlinux-keyring
# (say Yes)
# (usual output... until...)
gpg: Warning: using insecure memory!
==> Appending keys from archlinux.gpg...
gpg: Warning: using insecure memory!
gpg: Warning: using insecure memory!
# (same warning many many times)
gpg: Warning: using insecure memory!
==> Updating trust database...
gpg: Warning: using insecure memory!
gpg: next trustdb check due at 2022-08-09
==> Updating trust database...
gpg: Warning: using insecure memory!
gpg: next trustdb check due at 2022-08-09

I also tried resetting with pacman-key --init etc... But I always get the same warning. It doesn't say that it fails, but given the above problem it looks suspicious. If I run

$ arch-nspawn $CHROOT/root pacman-key --refresh-keys

I get the same warning many times and also

==> ERROR: Could not update key: 6BC26A17B9B7018A

The warnings and the problem might however be unrelated. Indeed I get the same error if I run makepkg plain and simple even though pacman on my main system doesn't give those warning.

Last edited by mane.andrea (2022-07-19 07:44:01)

Offline

#2 2022-07-18 14:58:08

loqs
Member
Registered: 2014-03-06
Posts: 17,324

Re: [SOLVED] Problem with gpg when building in a chroot

Offline

#3 2022-07-18 21:20:56

mane.andrea
Member
Registered: 2021-04-29
Posts: 8

Re: [SOLVED] Problem with gpg when building in a chroot

Thanks, I learned something.

But what about the warnings? Is it ok to ignore them?

Offline

#4 2022-07-18 21:40:36

loqs
Member
Registered: 2014-03-06
Posts: 17,324

Re: [SOLVED] Problem with gpg when building in a chroot

The warnings are from gpg when pacman's keyring is updated.  Pacman's keyring only contains public keys.

Offline

#5 2022-07-19 07:43:31

mane.andrea
Member
Registered: 2021-04-29
Posts: 8

Re: [SOLVED] Problem with gpg when building in a chroot

I understand

Offline

Board footer

Powered by FluxBB