
經過這一晚之後,我在 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
。