是的错误:gpg:密钥服务器接收失败:无名称

Jan*_*rný 5 arch-linux pacman gpg package-management

我正在尝试在 Arch linux 上使用 yay 安装 Spotify。但是当我运行yay -S spotify时会发生这种情况:

john@arch-thinkpad ~> yay -S spotify
:: There are 5 providers available for spotify:
:: Repository AUR
    1) spotify 2) spotify-dev 3) spotify-legacy 4) spotify094 5) spotio

Enter a number (default=1): 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:1]  libcurl-gnutls-7.73.0-1
[Aur:1]  spotify-1:1.1.42.622-2

  1 spotify                                  (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: Downloaded PKGBUILD (1/1): spotify
  1 spotify                                  (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: spotify

:: PGP keys need importing:
 -> --some-key--, required by: spotify
==> Import? [Y/n] y
:: Importing keys with gpg...
gpg: keyserver receive failed: No name
problem importing keys
Run Code Online (Sandbox Code Playgroud)

如何修复此错误以成功安装软件包?

Jan*_*rný 7

它是通过以下命令手动添加 gpg 密钥解决的:

gpg --keyserver keyserver.ubuntu.com --recv-key <key name>
Run Code Online (Sandbox Code Playgroud)

并再次运行安装:

yay -S spotify
Run Code Online (Sandbox Code Playgroud)