我正在使用dnf
配置为OpenMandriva 炊具,我bf81de15: 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
答案1
要解决此问题,您必须执行以下操作:
dnf install rpm
或者,如果失败,请手动下载软件包:
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
或任何其他包:
dnf install gnutar
作为附加信息:
您可以创建 rpm 用户并授予其权限:
adduser rpm
mkdir -pv /home/rpm
授予权限nano /etc/sudoers
并添加:
rpm ALL=(ALL) NOPASSWD: ALL
我目前有这样的存储库配置,有时它无法正常工作,但其他时候却可以,因为有时尽管如此,它还是会在安装包后删除它们。
[main]
name=Open Mandriva Cooker
clean_requirements_on_remove=False
best=True
skip_if_unavailable=True
baseurl=http://abf-downloads.openmandriva.org/cooker/repository/x86_64/main/release/
enabled=0
gpgcheck=0
keepcache=True