今天早些时候我尝试升级 Fedora 26 服务器时,下载软件包后收到以下错误消息:
warning: /var/cache/dnf/forensics-5e8452ee3a114fbe/packages/protobuf-c-1.3.0-1.fc26.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 87e360b8: NOKEY
Importing GPG key 0x87E360B8:
Userid : "CERT Forensics Operations and Investivations Team <[email protected]>"
Fingerprint: 26A0 829D 5C01 FC51 C304 9037 E97F 3E0A 87E3 60B8
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-cert-forensics-2018-04-07
Is this ok [y/N]: n
Didn't install any keys
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
所以我中止了升级,我尝试重新dnf clean packages
下载,但我仍然遇到同样的错误。
打包的似乎protobuf
没有有效的签名,所以dnf
不能继续,对吗?
使用这个命令来解决这个问题:
dnf update --nogpgcheck
但是......你说“不”:
...当被要求安装密钥时!
尝试使用 yes (
y
) 代替!我收到以下消息
所以
code
包裹没有签名。让我们看看哪个 repo 提供了它:
dnf provides code | grep "Repo" | sort | uniq
我可以通过禁用
code
存储库来继续:sudo dnf update --refresh --verbose --disablerepo code