I have a server running Fedora 24 which I am attempting to upgrade to
Fedora 25. I've followed the instructions located at
https://fedoraproject.org/wiki/DNF_system_upgrade however the upgrade
process fails after the system is rebooted to run the initial upgrade.
Here are the log entries from my dnf.log file which show some errors.
Jan 16 10:40:16 DEBUG --> Starting dependency resolution
Jan 16 10:40:16 DEBUG --> Finished dependency resolution
Jan 16 10:40:16 DDEBUG timer: depsolve: 166 ms
Jan 16 10:40:16 SUBDEBUG
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 120, in
_main
ret = resolving(cli, base)
File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 139, in
resolving
base.resolve(cli.demands.allow_erasing)
File "/usr/lib/python3.5/site-packages/dnf/base.py", line 541, in resolve
raise exc
dnf.exceptions.DepsolveError: nothing provides kmod-libs(x86-64) =
23-1.fc25 needed by kmod-23-1.fc25.x86_64.
nothing provides iptables-libs(x86-64) = 1.6.0-2.fc25 needed by
iptables-1.6.0-2.fc25.x86_64.
nothing provides adwaita-gtk2-theme = 3.22.2-1.fc25 needed by
gnome-themes-standard-3.22.2-1.fc25.x86_64.
nothing provides fipscheck-lib(x86-64) = 1.4.1-11.fc25 needed by
fipscheck-1.4.1-11.fc25.x86_64.
nothing provides system-release(25) needed by fedora-repos-25-1.noarch.
nothing provides python3-dnf-plugins-core = 0.1.21-4.fc25 needed by
dnf-plugins-core-0.1.21-4.fc25.noarch.
package cockpit-shell-120-1.fc25.noarch is not installable.
nothing provides python2-future needed by
python2-stomper-0.4.0-2.fc25.noarch.
nothing provides python-click needed by
python2-flask-1:0.11.1-3.fc25.noarch.
package cronie-anacron-1.5.1-2.fc24.x86_64 requires cronie =
1.5.1-2.fc24, but none of the providers can be installed.
package cryptsetup-1.7.2-1.fc24.x86_64 requires cryptsetup-libs =
1.7.2-1.fc24, but none of the providers can be installed.
package dhcp-client-12:4.3.4-3.fc24.x86_64 requires dhcp-common =
12:4.3.4-3.fc24, but none of the providers can be installed.
package file-5.25-6.fc24.x86_64 requires file-libs = 5.25-6.fc24, but
none of the providers can be installed.
package ipset-6.27-2.fc24.x86_64 requires ipset-libs(x86-64) =
6.27-2.fc24, but none of the providers can be installed.
nothing provides iptables-libs(x86-64) = 1.6.0-2.fc25 needed by
iptables-1.6.0-2.fc25.x86_64
Jan 16 10:40:16 CRITICAL Error: nothing provides kmod-libs(x86-64) =
23-1.fc25 needed by kmod-23-1.fc25.x86_64.
nothing provides iptables-libs(x86-64) = 1.6.0-2.fc25 needed by
iptables-1.6.0-2.fc25.x86_64.
nothing provides adwaita-gtk2-theme = 3.22.2-1.fc25 needed by
gnome-themes-standard-3.22.2-1.fc25.x86_64.
nothing provides fipscheck-lib(x86-64) = 1.4.1-11.fc25 needed by
fipscheck-1.4.1-11.fc25.x86_64.
nothing provides system-release(25) needed by fedora-repos-25-1.noarch.
nothing provides python3-dnf-plugins-core = 0.1.21-4.fc25 needed by
dnf-plugins-core-0.1.21-4.fc25.noarch.
package cockpit-shell-120-1.fc25.noarch is not installable.
nothing provides python2-future needed by
python2-stomper-0.4.0-2.fc25.noarch.
nothing provides python-click needed by
python2-flask-1:0.11.1-3.fc25.noarch.
package cronie-anacron-1.5.1-2.fc24.x86_64 requires cronie =
1.5.1-2.fc24, but none of the providers can be installed.
package cryptsetup-1.7.2-1.fc24.x86_64 requires cryptsetup-libs =
1.7.2-1.fc24, but none of the providers can be installed.
package dhcp-client-12:4.3.4-3.fc24.x86_64 requires dhcp-common =
12:4.3.4-3.fc24, but none of the providers can be installed.
package file-5.25-6.fc24.x86_64 requires file-libs = 5.25-6.fc24, but
none of the providers can be installed.
package ipset-6.27-2.fc24.x86_64 requires ipset-libs(x86-64) =
6.27-2.fc24, but none of the providers can be installed.
nothing provides iptables-libs(x86-64) = 1.6.0-2.fc25 needed by
iptables-1.6.0-2.fc25.x86_64
Jan 16 10:40:16 INFO (try to add '--allowerasing' to command line to
replace conflicting packages)
Jan 16 10:40:16 DDEBUG Cleaning up.
Is there a way to resolve this? I tried adding the --allowerasing
option which resulted in dnf attempting to remove the dnf and systemd
packages.
Jan 16 11:29:41 SUBDEBUG
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main
return _main(base, args)
File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 120, in
_main
ret = resolving(cli, base)
File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 142, in
resolving
base._plugins.run_resolved()
File "/usr/lib/python3.5/site-packages/dnf/plugin.py", line 82, in fn
dnf.util.mapall(operator.methodcaller(method), self.plugins)
File "/usr/lib/python3.5/site-packages/dnf/util.py", line 183, in mapall
return list(map(fn, *seq))
File
"/usr/lib/python3.5/site-packages/dnf-plugins/protected_packages.py",
line 76, in resolved
raise dnf.exceptions.Error(THREATENED_MSG % ', '.join(threatened))
dnf.exceptions.Error: The operation would result in removing the
following protected packages: dnf, systemd.
Jan 16 11:29:41 CRITICAL Error: The operation would result in removing
the following protected packages: dnf, systemd.