<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mscneuro.neuro.uni-bremen.de/index.php?action=history&amp;feed=atom&amp;title=When_a_normal_dnf_update_fails</id>
	<title>When a normal dnf update fails - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mscneuro.neuro.uni-bremen.de/index.php?action=history&amp;feed=atom&amp;title=When_a_normal_dnf_update_fails"/>
	<link rel="alternate" type="text/html" href="https://mscneuro.neuro.uni-bremen.de/index.php?title=When_a_normal_dnf_update_fails&amp;action=history"/>
	<updated>2026-06-03T04:27:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://mscneuro.neuro.uni-bremen.de/index.php?title=When_a_normal_dnf_update_fails&amp;diff=691&amp;oldid=prev</id>
		<title>Davrot: Created page with &quot;Questions to [mailto:davrot@uni-bremen.de David Rotermund]  Let us assume the dnf update inbetween. You lost the remote connection to the computer where the update was running or systemd oom killed the dnf task.  Concerning systemd-oomd, you turn it off via:&lt;syntaxhighlight lang=&quot;shell&quot;&gt;systemctl disable --now systemd-oomd&lt;/syntaxhighlight&gt;Now you are stuck in dnf limbo. How to get out of it with less effort as possible?  == Try 0 == If you can do this without an error t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mscneuro.neuro.uni-bremen.de/index.php?title=When_a_normal_dnf_update_fails&amp;diff=691&amp;oldid=prev"/>
		<updated>2025-10-23T14:33:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Questions to [mailto:davrot@uni-bremen.de David Rotermund]  Let us assume the dnf update inbetween. You lost the remote connection to the computer where the update was running or systemd oom killed the dnf task.  Concerning systemd-oomd, you turn it off via:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;systemctl disable --now systemd-oomd&amp;lt;/syntaxhighlight&amp;gt;Now you are stuck in dnf limbo. How to get out of it with less effort as possible?  == Try 0 == If you can do this without an error t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Questions to [mailto:davrot@uni-bremen.de David Rotermund]&lt;br /&gt;
&lt;br /&gt;
Let us assume the dnf update inbetween. You lost the remote connection to the computer where the update was running or systemd oom killed the dnf task.&lt;br /&gt;
&lt;br /&gt;
Concerning systemd-oomd, you turn it off via:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;systemctl disable --now systemd-oomd&amp;lt;/syntaxhighlight&amp;gt;Now you are stuck in dnf limbo. How to get out of it with less effort as possible?&lt;br /&gt;
&lt;br /&gt;
== Try 0 ==&lt;br /&gt;
If you can do this without an error then you are on a good way:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;dnf -y remove --duplicates &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Try 1 ==&lt;br /&gt;
Well, if try 0 resulted in conflicts, we can try to solve them semi-autotamic:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;dnf -y remove --duplicates 2&amp;gt; error.log&lt;br /&gt;
cat error.log | awk -F &amp;#039;from install of|conflicts with file from package&amp;#039; &amp;#039;{print $2}&amp;#039; | sort -u | awk &amp;#039;NF&amp;#039; | sed s/&amp;quot;^ &amp;quot;/&amp;quot;dnf -y reinstall &amp;quot;/g | sh&lt;br /&gt;
dnf -y remove --duplicates 2&amp;gt; error.log&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Try 2 ==&lt;br /&gt;
We end up here if errors after try 1 still remained:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;cat error.log | awk -F &amp;#039;from install of|conflicts with file from package&amp;#039; &amp;#039;{print $2}&amp;#039; | sort -u | awk &amp;#039;NF&amp;#039; &amp;lt;/syntaxhighlight&amp;gt;Now we need to deal with the remaining problem manually. This package is still broken:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;darktable-4.4.2-1.fc37.x86_64&amp;lt;/syntaxhighlight&amp;gt;This does not work:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;[root ~]# dnf -y reinstall darktable-4.4.2-1.fc37.x86_64&lt;br /&gt;
Last metadata expiration check: 0:03:59 ago on Sat 09 Mar 2024 04:17:07 AM CET.&lt;br /&gt;
Package darktable available, but not installed.&lt;br /&gt;
No match for argument: darktable-4.4.2-1.fc37.x86_64&lt;br /&gt;
Error: No packages marked for reinstall.&amp;lt;/syntaxhighlight&amp;gt;Okay, maybe we need to delete the old package manually:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;cat error.log | awk -F &amp;#039;conflicts with file from package&amp;#039; &amp;#039;{print $2}&amp;#039; | sort -u | awk &amp;#039;NF&amp;#039;&amp;lt;/syntaxhighlight&amp;gt;The problem lies with:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt; darktable-tools-noise-4.0.1-2.fc37.x86_64&amp;lt;/syntaxhighlight&amp;gt;We will remove it carefully(!!!). Don’t use -y and check the list if something important is on the to-be-deleted list:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;dnf remove --noautoremove darktable-tools-noise-4.0.1-2.fc37.x86_64&amp;lt;/syntaxhighlight&amp;gt;Now we should be able to do this:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;dnf -y remove --duplicates &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Finalize ==&lt;br /&gt;
Now we can finalize the repair with:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;dnf -y update --best --allowerasing --skip-broken&amp;lt;/syntaxhighlight&amp;gt;or&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;dnf -y --enablerepo=* update --best --allowerasing --skip-broken&amp;lt;/syntaxhighlight&amp;gt;Depending on if you want to include other non-default repos from your repo-list.&lt;br /&gt;
&lt;br /&gt;
== Protected packages ==&lt;br /&gt;
If you get complaints about protected system packages, you can disable this protection by:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;mv /etc/dnf/protected.d /etc/dnf/protected.d_xxx&amp;lt;/syntaxhighlight&amp;gt;However, you should restore the protection later:&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;mv /etc/dnf/protected.d_xxx /etc/dnf/protected.d&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Davrot</name></author>
	</entry>
</feed>