Ask Your Question
0

Problem updating Fedora 21 -> 22 with dnf [closed]

asked 2016-06-11 12:40:18 -0500

xiongtx gravatar image

I've followed the instructions from the Wiki on trying to update Fedora 21 to 22, but I get the following error in /var/log/dnf.log when I try to start the upgrade:

Jun 11 12:15:27 CRITICAL Error: Transaction check error: file /usr/lib/systemd/system-preset/90-default.preset conflicts between attempted installs of systemd-219-27.fc22.x86_64 and fedora-release-23-1.noarch

The result of cat /etc/fedora-release is Fedora release 21 (Twenty One), so I'm not sure why it's the error message is mentioning Fedora 23.

Might it be that I've previously run sudo dnf system-upgrade download --refresh --releasever=23? I did not install those packages though...still on 21 here. Is there a way to get rid of all packages that dnf has previously downloaded? dnf clean does not do that.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by davidva
close date 2016-07-28 14:45:03.410528

Comments

Using dnf's sytem-upgrade plugin, you can actually skip a version and upgrade to Fedora 23. I am mentioning that because you are now attempting to upgrade to a release that will be End-Of-Life in about 2 months, and then you will have to do another upgrade. So, think about upgrading only once.

florian gravatar imageflorian ( 2016-06-14 09:14:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-06-13 17:19:46 -0500

ssieb gravatar image

Try dnf system-upgrade clean. If that doesn't work, then see the instructions in the next section. Before running system-upgrade, I strongly recommend running dnf upgrade 'dnf*' 'systemd*' on the current system to make sure critical components are up-to-date.

The directory has moved around a couple of times. See if /var/lib/dnf/system-update exists, otherwise search around for a directory called system-update. The easiest way is to run updatedb to make sure the locate database is updated, then run locate system-update. If you find the right directory, then delete the whole thing.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-06-11 12:40:18 -0500

Seen: 237 times

Last updated: Jun 13 '16