Fedora Server 38 beta dnf 错误

Fedora Server 38 beta dnf 错误

那天晚上之后,我的 Fedora 38 上的 dnf 坏了。每次我尝试安装某个软件包或运行升级命令时,我都会输出

Total                                                                                                                     685 kB/s | 1.2 MB     00:01     
Problem opening package avahi-glib-0.8-22.fc38.x86_64.rpm
Problem opening package avahi-libs-0.8-22.fc38.x86_64.rpm
Problem opening package cmake-3.26.3-1.fc38.x86_64.rpm
Problem opening package cmake-data-3.26.3-1.fc38.noarch.rpm
Problem opening package cmake-filesystem-3.26.3-1.fc38.x86_64.rpm
Problem opening package cmake-rpm-macros-3.26.3-1.fc38.noarch.rpm
Problem opening package dnsmasq-2.89-2.fc38.x86_64.rpm
Problem opening package firewalld-1.3.1-1.fc38.noarch.rpm
Problem opening package firewalld-filesystem-1.3.1-1.fc38.noarch.rpm
Problem opening package grub2-common-2.06-95.fc38.noarch.rpm
Problem opening package grub2-pc-2.06-95.fc38.x86_64.rpm
Problem opening package grub2-pc-modules-2.06-95.fc38.noarch.rpm
Problem opening package grub2-tools-2.06-95.fc38.x86_64.rpm
Problem opening package grub2-tools-minimal-2.06-95.fc38.x86_64.rpm
Problem opening package gstreamer1-1.22.2-1.fc38.x86_64.rpm
Problem opening package gstreamer1-plugins-bad-free-1.22.2-1.fc38.x86_64.rpm
Problem opening package gstreamer1-plugins-base-1.22.2-1.fc38.x86_64.rpm
Problem opening package gstreamer1-plugins-good-1.22.2-1.fc38.x86_64.rpm
Problem opening package langpacks-core-en-3.0-32.fc38.noarch.rpm
Problem opening package langpacks-core-font-en-3.0-32.fc38.noarch.rpm
Problem opening package langpacks-core-font-ja-3.0-32.fc38.noarch.rpm
Problem opening package langpacks-core-font-uk-3.0-32.fc38.noarch.rpm
Problem opening package langpacks-core-ja-3.0-32.fc38.noarch.rpm
Problem opening package langpacks-core-uk-3.0-32.fc38.noarch.rpm
Problem opening package langpacks-en-3.0-32.fc38.noarch.rpm
Problem opening package langpacks-ja-3.0-32.fc38.noarch.rpm
Problem opening package langpacks-uk-3.0-32.fc38.noarch.rpm
Problem opening package libxml2-2.10.4-1.fc38.x86_64.rpm
Problem opening package polkit-122-3.fc38.1.x86_64.rpm
Problem opening package polkit-libs-122-3.fc38.1.x86_64.rpm
Problem opening package python3-firewall-1.3.1-1.fc38.noarch.rpm
Problem opening package python3-libxml2-2.10.4-1.fc38.x86_64.rpm
Problem opening package qt5-qtbase-5.15.9-1.fc38.x86_64.rpm
Problem opening package qt5-qtbase-common-5.15.9-1.fc38.noarch.rpm
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 all,但没用。还有命令rpm -qa gpg-pubkey\*返回

error: rpmdbNextIterator: skipping h#      13 
Header V4 RSA/SHA256 Signature, key ID eb10b464: BAD
Header SHA256 digest: OK
Header SHA1 digest: OK

对于所有键。

答案1

如果 RPM 不起作用,DNF 将无法工作。我将从重建 RPM 数据库开始:rpm --rebuilddb

相关内容