我正在尝试在 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
如何修复此错误以成功安装软件包?
答案1
通过以下命令手动添加 gpg 密钥解决了这个问题:
gpg --keyserver keyserver.ubuntu.com --recv-key <key name>
并再次运行安装:
yay -S spotify