我使用的是dnf
为OpenMandriva Cookerbf81de15: NOKEY
配置的,在尝试安装时遇到此问题gnutar
。
在这些情况下该怎么办?如果不可能,如何省略密钥?
Last metadata expiration check: 0:33:36 ago on Wed Apr 3 17:49:59 2024.
Dependencies resolved.
==================================================================================================================
Package Architecture Version Repository Size
==================================================================================================================
Installing:
gnutar x86_64 1.34-4 cooker-x86_64 965 k
Transaction Summary
==================================================================================================================
Install 1 Package
Total size: 965 k
Installed size: 3.1 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] gnutar-1.34-4-omv2390.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
package gnutar-1.34-4.x86_64 does not verify: Header V4 RSA/SHA256 Signature, key ID bf81de15: NOKEY
要解决此问题,您必须执行以下操作:
或者,如果失败,请手动下载软件包:
http://abf-downloads.openmandriva.org/cooker/repository/x86_64/main/release/rpm-4.19.1.1-1-omv2490.x86_64.rpm
rpm
然后在 的子文件夹中查找该包,/var/cache/dnf/
在我的例子中,该包称为rpm-4.19.1.1-1-omv2490.x86_64.rpm
。您必须手动解压缩该包,然后将其所有文件复制到
/
并替换所有内容。最后,安装
gnutar
或任何其他包:作为附加信息:
您可以创建 rpm 用户并授予其权限:
授予权限
nano /etc/sudoers
并添加:我目前有这样的存储库配置,有时它无法正常工作,但其他时候却可以,因为有时尽管如此,它还是会在安装包后删除它们。