pytutorial/admin/linux/fedora_dnf_rpmdbNextIterator
David Rotermund 398a8c40e8
Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
2024-03-19 13:09:02 +01:00
..
README.md Create README.md 2024-03-19 13:09:02 +01:00

error: rpmdbNextIterator: skipping

Top

Questions to David Rotermund

If we do

dnf -y update

then we get this error message:

error: rpmdbNextIterator: skipping h#   36674 
Header RSA signature: BAD (header tag 268: invalid OpenPGP signature: Parsing an OpenPGP packet:
  Failed to parse Signature Packet
      because: Signature appears to be created by a non-conformant OpenPGP implementation, see <https://github.com/rpm-software-management/rpm/issues/2351>.
      because: Malformed MPI: leading bit is not set: expected bit 8 to be set in    10110 (16))
Header SHA256 digest: OK
Header SHA1 digest: OK
error: rpmdbNextIterator: skipping h#   36674 
Header RSA signature: BAD (header tag 268: invalid OpenPGP signature: Parsing an OpenPGP packet:
  Failed to parse Signature Packet
      because: Signature appears to be created by a non-conformant OpenPGP implementation, see <https://github.com/rpm-software-management/rpm/issues/2351>.
      because: Malformed MPI: leading bit is not set: expected bit 8 to be set in    10110 (16))
Header SHA256 digest: OK
Header SHA1 digest: OK
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: An rpm exception occurred: package not installed

With

rpm -qa >/dev/null 2> error.log
cat error.log | grep "error: rpmdbNextIterator: skipping h#" | awk -c '{print "rpm -q --nosignature --querybynumber " $5 }' | sort -u | sh

we can check which packages have a problem.

With

rpm -qa >/dev/null 2> error.log
cat error.log | grep "error: rpmdbNextIterator: skipping h#" | awk -c '{print "rpm -e --nosignature --nodeps $(rpm -q --nosignature --querybynumber " $5 ")"}' | sort -u | sh

we remove those package. However you need to make sure that these are not important packages and that you reinstall the updated version via dnf afterwards.

In the case of intel oneapi:

dnf -y install intel-aikit
dnf -y install intel-basekit
dnf -y install intel-dlfdkit
dnf -y install intel-hpckit
dnf -y install intel-iotkit