LukeShortCloud/winesapOS

[install] gpg: error reading key: No public key

Closed this issue · 9 comments

The GPG key for the winesap user has some issues on recent builds. I forgot the exact solution but I first noticed it a month ago and recently noticed it is still an issue. There were certain files in the ~/.gnupg/ directory that had to be deleted.

This error is seen when using yay to install a package from the AUR.

can you try with these commands at startup

sudo rm -R /var/lib/pacman/sync

sudo pacman-mirrors -f5 && pacman -Syyu

That's unrelated. This issue is specific to the GPG keys used by the winesap user (not a global issue with Pacman).

ok i will try to see if i can fix it

This is the exact error from one of our pipelines. It can also be seen when using yay on a fresh build of winesapOS.

+ chroot /winesapos sudo -u winesap yay --noconfirm -S --removemake pacman-static
AUR Explicit (1): pacman-static-6.1.0-9
Sync Make Dependency (3): meson-1.5.0-1, musl-1.2.5-2, kernel-headers-musl-4.19.88-2
:: (1/1) Downloaded PKGBUILD: pacman-static
  1 pacman-static                            (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 pacman-static                            (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: pacman-static 6.1.0-9 (Sat Jul 20 18:32:43 2024)
==> Retrieving sources...
  -> Downloading pacman-6.1.0.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   169    0   169    0     0    528      0 --:--:-- --:--:-- --:--:--   529

  2  874k    2 23708    0     0  45237      0  0:00:19 --:--:--  0:00:19 45237
100  874k  100  874k    0     0   901k      0 --:--:-- --:--:-- --:--:-- 1909k
  -> Downloading pacman-6.1.0.tar.xz.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   173    0   173    0     0    438      0 --:--:-- --:--:-- --:--:--   439

100   310  100   310    0     0    607      0 --:--:-- --:--:-- --:--:--   607
100   310  100   310    0     0    607      0 --:--:-- --:--:-- --:--:--     0
  -> Downloading revertme-makepkg-remove-libdepends-and-libprovides.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  5738    0  5738    0     0  15010      0 --:--:-- --:--:-- --:--:-- 15020
  -> Downloading pacman-static-fix-msg-unknown-key.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1550    0  1550    0     0   3023      0 --:--:-- --:--:-- --:--:--  3027
  -> Downloading pacman-static-man-gitlab.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2001    0  2001    0     0   6010      0 --:--:-- --:--:-- --:--:--  6009
  -> Downloading pacman-static-make-aligned-titles.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1160    0  1160    0     0   3383      0 --:--:-- --:--:-- --:--:--  3391
  -> Downloading pacman-static-repo-add-parseopts.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1381    0  1381    0     0   3775      0 --:--:-- --:--:-- --:--:--  3773
100  1381    0  1381    0     0   3775      0 --:--:-- --:--:-- --:--:--  3773
  -> Downloading pacman-static-drop-result-warn.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1100    0  1100    0     0   3377      0 --:--:-- --:--:-- --:--:--  3384
  -> Downloading pacman-static-fix-debugedit.patch...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1575    0  1575    0     0   4882      0 --:--:-- --:--:-- --:--:--  4891
  -> Downloading nghttp2-1.62.1.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 1568k  100 1568k    0     0  15.8M      0 --:--:-- --:--:-- --:--:-- 15.8M
  -> Downloading c-ares-1.29.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 1298k  100 1298k    0     0  11.9M      0 --:--:-- --:--:-- --:--:-- 11.9M
  -> Downloading c-ares-1.29.0.tar.gz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100   488  100   488    0     0   4208      0 --:--:-- --:--:-- --:--:--  4208
  -> Downloading curl-8.8.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   312  100   312    0     0   [2879](https://github.com/LukeShortCloud/winesapOS/actions/runs/10022278061/job/27701873073#step:9:2880)      0 --:--:-- --:--:-- --:--:--  2888

100 4055k  100 4055k    0     0  30.1M      0 --:--:-- --:--:-- --:--:-- 30.1M
  -> Downloading curl-8.8.0.tar.gz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   316  100   316    0     0   2925      0 --:--:-- --:--:-- --:--:--  2953

100   488  100   488    0     0   2303      0 --:--:-- --:--:-- --:--:--  2303
  -> Downloading openssl-3.3.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 17.2M  100 17.2M    0     0  70.8M      0 --:--:-- --:--:-- --:--:-- 70.8M
  -> Downloading openssl-3.3.1.tar.gz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100   833  100   833    0     0   5844      0 --:--:-- --:--:-- --:--:--  5844
  -> Found ca-dir.patch
  -> Found openssl-3.0.7-no-atomic.patch
  -> Downloading zlib-1.3.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1477k  100 1477k    0     0  2208k      0 --:--:-- --:--:-- --:--:-- 2208k
  -> Downloading zlib-1.3.1.tar.gz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   235  100   235    0     0   1164      0 --:--:-- --:--:-- --:--:--  1169
  -> Cloning xz git repo...
Cloning into bare repository '/home/winesap/.cache/yay/pacman-static/xz'...
  -> Downloading bzip2-1.0.8.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  791k  100  791k    0     0  8638k      0 --:--:-- --:--:-- --:--:-- 8692k
  -> Downloading bzip2-1.0.8.tar.gz.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   310  100   310    0     0   4156      0 --:--:-- --:--:-- --:--:--  4189
  -> Downloading zstd-1.5.6.tar.zst...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 1802k  100 1802k    0     0  18.1M      0 --:--:-- --:--:-- --:--:-- 18.1M
  -> Downloading zstd-1.5.6.tar.zst.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100   858  100   858    0     0   9247      0 --:--:-- --:--:-- --:--:--  9247
  -> Downloading libgpg-error-1.49.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  3 1055k    3 36864    0     0  80289      0  0:00:13 --:--:--  0:00:13 80139
100 1055k  100 1055k    0     0  1158k      0 --:--:-- --:--:-- --:--:-- 1157k
  -> Downloading libgpg-error-1.49.tar.bz2.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   238  100   238    0     0    345      0 --:--:-- --:--:-- --:--:--   345
  -> Downloading libassuan-2.5.7.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 78  590k   78  464k    0     0   567k      0  0:00:01 --:--:--  0:00:01  567k
100  590k  100  590k    0     0   722k      0 --:--:-- --:--:-- --:--:--  721k
  -> Downloading libassuan-2.5.7.tar.bz2.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   238  100   238    0     0    510      0 --:--:-- --:--:-- --:--:--   510
  -> Downloading gpgme-1.23.2.tar.bz2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  1 1793k    1 24576    0     0  53551      0  0:00:34 --:--:--  0:00:34 53542
100 1793k  100 1793k    0     0  1789k      0  0:00:01  0:00:01 --:--:-- 1790k
  -> Downloading gpgme-1.23.2.tar.bz2.sig...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   238  100   238    0     0    415      0 --:--:-- --:--:-- --:--:--   415
  -> Downloading libarchive-3.7.4.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 5290k  100 5290k    0     0  43.1M      0 --:--:-- --:--:-- --:--:-- 43.1M
  -> Downloading libarchive-3.7.4.tar.xz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100   659  100   659    0     0   6470      0 --:--:-- --:--:-- --:--:--  6470
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha512sums...
    pacman-6.1.0.tar.xz ... Passed
    pacman-6.1.0.tar.xz.sig ... Skipped
    revertme-makepkg-remove-libdepends-and-libprovides.patch ... Passed
    pacman-static-fix-msg-unknown-key.patch ... Passed
    pacman-static-man-gitlab.patch ... Passed
    pacman-static-make-aligned-titles.patch ... Passed
    pacman-static-repo-add-parseopts.patch ... Passed
    pacman-static-drop-result-warn.patch ... Passed
    pacman-static-fix-debugedit.patch ... Passed
    nghttp2-1.62.1.tar.xz ... Passed
    c-ares-1.29.0.tar.gz ... Passed
    c-ares-1.29.0.tar.gz.asc ... Skipped
    curl-8.8.0.tar.gz ... Passed
    curl-8.8.0.tar.gz.asc ... Skipped
    openssl-3.3.1.tar.gz ... Passed
    openssl-3.3.1.tar.gz.asc ... Skipped
    ca-dir.patch ... Passed
    openssl-3.0.7-no-atomic.patch ... Passed
    zlib-1.3.1.tar.gz ... Passed
    zlib-1.3.1.tar.gz.asc ... Skipped
    xz ... Passed
    bzip2-1.0.8.tar.gz ... Passed
    bzip2-1.0.8.tar.gz.sig ... Skipped
    zstd-1.5.6.tar.zst ... Passed
    zstd-1.5.6.tar.zst.sig ... Skipped
    libgpg-error-1.49.tar.bz2 ... Passed
    libgpg-error-1.49.tar.bz2.sig ... Skipped
    libassuan-2.5.7.tar.bz2 ... Passed
    libassuan-2.5.7.tar.bz2.sig ... Skipped
    gpgme-1.23.2.tar.bz2 ... Passed
    gpgme-1.23.2.tar.bz2.sig ... Skipped
    libarchive-3.7.4.tar.xz ... Passed
    libarchive-3.7.4.tar.xz.asc ... Skipped
:: (1/1) Parsing SRCINFO: pacman-static
gpg: directory '/home/winesap/.gnupg' created
gpg: /home/winesap/.gnupg/trustdb.gpg: trustdb created
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key
gpg: error reading key: No public key

Why not use Paru?

I believe this GPG issue will occur regardless of which AUR package manager we use. We do install paru and it does offer some unique features that yay does not.

In the future, I'd like to use paru-static for system upgrades but I've been having issues building that package. I need to follow-up with the maintainer again.

https://aur.archlinux.org/packages/paru-static

I was able to reproduce the error by running yay -S linux-fsync-nobara-bin. The fix was to simply delete the /home/winesap/.gnupg/ directory.

Regarding Paru support, I have re-opened this GitHub Issue to track that progress: #776