{"id":12309,"date":"2026-05-21T20:19:46","date_gmt":"2026-05-22T01:19:46","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=12309"},"modified":"2026-05-22T11:05:38","modified_gmt":"2026-05-22T16:05:38","slug":"fedora-43-to-44-upgrade-dnf5-plugin-load-failure-after-upgrade","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=12309","title":{"rendered":"Fedora 43 to 44 upgrade: dnf5 plugin load failure after upgrade"},"content":{"rendered":"<p>After completing an in-place upgrade from Fedora 43 to Fedora 44, <code>dnf5<\/code> failed to run with this error:<\/p>\n<p>[lisa@fedora05 ~]# dnf5 update<br \/>\nCannot load dnf5 plugin: \/usr\/lib64\/dnf5\/plugins\/automatic_cmd_plugin.so<br \/>\nCannot load shared library &#8220;\/usr\/lib64\/dnf5\/plugins\/automatic_cmd_plugin.so&#8221;: libdnf5-cli.so.2: cannot open shared object file: No such file or directory<\/p>\n<h2>What happened<\/h2>\n<p>The Fedora 44 upgrade completed, and the installed <code>dnf5<\/code> packages were all current Fedora 44 versions. However, there was a leftover plugin file still sitting in <code>\/usr\/lib64\/dnf5\/plugins\/automatic_cmd_plugin.so<\/code>.<\/p>\n<p>That file was not owned by any RPM package and had been built against an older library, <code>libdnf5-cli.so.2<\/code>.<\/p>\n<p>But Fedora 44 had <code>\/usr\/lib64\/libdnf5-cli.so.3<\/code>.<\/p>\n<p><code>dnf5<\/code> was trying to load a stale plugin from before the upgrade.<\/p>\n<h2>How I verified it<\/h2>\n<p>These commands showed the problem:<\/p>\n<p><code>ls -l \/usr\/lib64\/libdnf5-cli.so*<\/code><br \/>\n<code>rpm -qf \/usr\/lib64\/dnf5\/plugins\/automatic_cmd_plugin.so<\/code><br \/>\n<code>ldd \/usr\/lib64\/dnf5\/plugins\/automatic_cmd_plugin.so<\/code><\/p>\n<p>Results:<\/p>\n<ul class=\"markdown-list\">\n<li><code>libdnf5-cli.so.3<\/code> existed<\/li>\n<li><code>automatic_cmd_plugin.so<\/code> was not owned by any package<\/li>\n<li><code>ldd<\/code> showed it was looking for <code>libdnf5-cli.so.2<\/code><\/li>\n<\/ul>\n<h2>Fix<\/h2>\n<p>Remove the orphaned plugin file:<\/p>\n<p><code>rm \/usr\/lib64\/dnf5\/plugins\/automatic_cmd_plugin.so<\/code><br \/>\n<code>ldconfig<\/code><br \/>\n<code>dnf5 update<\/code><\/p>\n<p>After deleting the stale plugin, <code>dnf5<\/code> worked normally again.<\/p>\n<h2>Root cause<\/h2>\n<p>This appears to be a leftover orphaned <code>dnf5<\/code> plugin from before the major version upgrade. Even though the main <code>dnf5<\/code> and <code>libdnf5<\/code> packages were updated correctly, <code>dnf5<\/code> still tried to load the old <code>.so<\/code> file it found in the plugins directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After completing an in-place upgrade from Fedora 43 to Fedora 44, dnf5 failed to run with this error: [lisa@fedora05 ~]# dnf5 update Cannot load dnf5 plugin: \/usr\/lib64\/dnf5\/plugins\/automatic_cmd_plugin.so Cannot load shared library &#8220;\/usr\/lib64\/dnf5\/plugins\/automatic_cmd_plugin.so&#8221;: libdnf5-cli.so.2: cannot open shared object file: No such file or directory What happened The Fedora 44 upgrade completed, and the installed dnf5 packages &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[1415,2071,47],"class_list":["post-12309","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-dnf","tag-dnf5","tag-fedora"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12309"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12309\/revisions"}],"predecessor-version":[{"id":12310,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/12309\/revisions\/12310"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}