Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.1k stars 361 forks source link

gpg: keyserver receive failed: Permission denied #656

Closed ginkel closed 6 years ago

ginkel commented 6 years ago

Affected Version

yay v8.998.r83.g31aca68 - libalpm v11.0.1

Issue

When running yay -Syu --noconfirm, which triggers an update of kdebase-runtime and phonon-qt4, new gpg keys apparently need to be imported, but yay fails with the following error:

yay -Syu --noconfirm       
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
 -> phonon-qt4-gstreamer: local (4.9.0-4) is newer than AUR (4.9.0-1)
 -> Missing AUR Packages:  kde-l10n-de  pcmciautils  polkit-qt4
 -> Orphaned AUR Packages:  attica-qt4  automoc4  ddccontrol-db-git  kdebase-runtime  kdelibs
 -> Out Of Date AUR Packages:  libguestfs  thinkfan  ttf-vista-fonts
:: 8 Packages to upgrade.
8  aur/goland                2018.2.1-1 -> 2018.2.2-1
7  aur/goland-jre            2018.2.1-1 -> 2018.2.2-1
6  aur/kdebase-runtime       17.08.3-3  -> 17.08.3-4
5  aur/kubectx               0.5.1-1    -> 0.6.0-1
4  aur/minishift-bin         1.21.0-2   -> 1.23.0-1
3  aur/phonon-qt4            4.10.1-1   -> 4.10.1-2
2  aur/plymouth              0.9.3-4    -> 0.9.3-5
1  aur/pycharm-professional  2018.2.1-1 -> 2018.2.2-1
==> Packages to not upgrade: (eg: 1 2 3, 1-3, ^4 or repo name)
==> 
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur: 8]  phonon-qt4-4.10.1-2  plymouth-0.9.3-5  pycharm-professional-2018.2.2-1  goland-2018.2.2-1 (goland goland-jre)  kdebase-runtime-17.08.3-4  kubectx-0.6.0-1  minishift-bin-1.23.0-1

  7 phonon-qt4                               (Installed) (Build Files Exist)
  6 plymouth                                 (Installed) (Build Files Exist)
  5 pycharm-professional                     (Installed) (Build Files Exist)
  4 goland (goland goland-jre)               (Installed) (Build Files Exist)
  3 kdebase-runtime                          (Installed) (Build Files Exist)
  2 kubectx                                  (Installed) (Build Files Exist)
  1 minishift-bin                            (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/7): minishift-bin
:: PKGBUILD up to date, Skipping (2/7): phonon-qt4
:: PKGBUILD up to date, Skipping (3/7): plymouth
:: PKGBUILD up to date, Skipping (4/7): pycharm-professional
:: PKGBUILD up to date, Skipping (5/7): goland (goland goland-jre)
:: PKGBUILD up to date, Skipping (6/7): kdebase-runtime
:: PKGBUILD up to date, Skipping (7/7): kubectx
  7 phonon-qt4                               (Installed) (Build Files Exist)
  6 plymouth                                 (Installed) (Build Files Exist)
  5 pycharm-professional                     (Installed) (Build Files Exist)
  4 goland (goland goland-jre)               (Installed) (Build Files Exist)
  3 kdebase-runtime                          (Installed) (Build Files Exist)
  2 kubectx                                  (Installed) (Build Files Exist)
  1 minishift-bin                            (Installed) (Build Files Exist)
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> Diffs to show?
==> 
:: Parsing SRCINFO (1/7): phonon-qt4
:: Parsing SRCINFO (2/7): plymouth
:: Parsing SRCINFO (3/7): pycharm-professional
:: Parsing SRCINFO (4/7): goland (goland goland-jre)
:: Parsing SRCINFO (5/7): kdebase-runtime
:: Parsing SRCINFO (6/7): kubectx
:: Parsing SRCINFO (7/7): minishift-bin

==> PGP keys need importing:
 -> F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87, required by: kdebase-runtime
 -> CB9387521E1EE0127DA804843FDBB55084CC5D84, required by: phonon-qt4
 -> CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7, required by: kdebase-runtime
:: Importing keys with gpg......
gpg: keyserver receive failed: Permission denied
==> Error: Problem importing keys

Steps to reproduce

  1. yay -Syu --noconfirm
Gonzih commented 6 years ago

What is going to happen if you try to manually run "gpg --recv-keys CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D"?

ginkel commented 6 years ago

Same error. Turned out that my gpg.conf had a keyserver configured that is no longer in operation. Fixed that, problem solved.

Thanks for your help!