{"id":711,"date":"2022-08-09T11:59:14","date_gmt":"2022-08-09T16:59:14","guid":{"rendered":"http:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=711"},"modified":"2022-08-09T11:59:14","modified_gmt":"2022-08-09T16:59:14","slug":"dnf-install-update-fail-with-error-rpmdbnextiterator-skipping-header-v3-rsa-sha1-signature-bad","status":"publish","type":"post","link":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/?p=711","title":{"rendered":"dnf install\/update fail with error rpmdbNextIterator skipping Header V3 RSA\/SHA1 Signature BAD"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Sometimes when an dnf update was unexpectedly terminated like a power failure, the system may leave an inconsistent rpm database.  If this happens, in most case by rebuilding rpm database (rpmdb &#8211;rebuilddb), and to use (package-cleanup &#8211;cleandupes), it could be fixed.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For some severe case, after both, when you are trying to run (dnf update &#8211;allowerasing), it still shows this kind of errors:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Running transaction check<br>error: rpmdbNextIterator: skipping h# ***<br>Header V3 RSA\/SHA1 Signature, key ID ********: BAD<br>Header SHA256 digest: OK<br>Header SHA1 digest: OK<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And the install\/update cannot go through.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you use (rpm -qa | grep &lt;affected-package&gt;), it shows that the package is not installed.  Reinstalling the package using (rpm -Uvh &lt;downloaded package name&gt;) does not help.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This means that a package was erased in the interrupted dnf install\/update but the record was not removed from the rpm database.  You will need to do<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">rpm -e &#8211;justdb &#8211;noscripts &#8211;nosignature &lt;package name&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">to remove it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, sometimes the blocking package name cannot be found in the rpm database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a clue: when you are doing dnf install, it spits off errors like<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Error: transaction check vs depsolve:<br>libxxx.so.x()(64bit) is needed by &lt;package name&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This shows what lib file is missing.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can go to internet to google the rpm package of the libxxx.so.x to find which package for your linux distro provides the missing lib file.  Then run the<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">rpm -e &#8211;justdb &#8211;noscripts &#8211;nosignature &lt;package name&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">to remove the missing package.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After this, the dnf should function properly thereafter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes when an dnf update was unexpectedly terminated like a power failure, the system may leave an inconsistent rpm database. If this happens, in most case by rebuilding rpm database (rpmdb &#8211;rebuilddb), and to use (package-cleanup &#8211;cleandupes), it could be fixed. For some severe case, after both, when you are trying to run (dnf update [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,3],"tags":[],"class_list":["post-711","post","type-post","status-publish","format-standard","hentry","category-computer-tips","category-mri-technical-support","post-blog"],"_links":{"self":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=711"}],"version-history":[{"count":1,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions"}],"predecessor-version":[{"id":712,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions\/712"}],"wp:attachment":[{"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csic.som.emory.edu\/~lzhou\/blogs\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}