Ask Your Question

How do I resolve update conflicts in fedora 24

asked 2016-08-28 05:22:12 -0500

deyang gravatar image

I'm trying to update/upgrade in Fedora 24. There are many errors of the "conflicts with file from package" sort. How can I resolve these problems?

edit retag flag offensive close merge delete


Please post the exact command(s) you have used as well as the relevant output.

basic6 gravatar imagebasic6 ( 2016-12-25 12:19:29 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2016-12-25 12:53:11 -0500

basic6 gravatar image

updated 2016-12-25 13:19:57 -0500

You have not yet provided the exact commands that were used, nor the relevant output. So it's difficult to answer this question.

But generally, you would log in as root, either run your command or check for package conflicts and then try to fix them one by one.

A regular system update would usually fail if there are package conflicts and if it does, it will tell you which packages are causing trouble.

# dnf update --best --allowerasing

Check if you actually need these packages or not. If not, uninstall them (you could reinstall important packages after a successful update):

# dnf erase PACKAGE

Replace PACKAGE with the package name shown in the error message. If dnf wants to remove additional packages, check if you need those too. Be careful with system packages. If dnf wants to remove things like gdm or gnome-shell, you might want to type "no" and double-check - or reinstall @gnome-desktop later. Unless, of course, if you actually want to get rid of said packages.

Check for package conflicts - this may take a long time:

# rpm -Va --nodigest

Unless you want to check for file conflicts, use the following command (which should only take a few minutes):

# rpm -Va --nodigest --nofiles

Ideally, this command would not show any output (meaning no conflicts found). Then you can try to repeat the update command.

When upgrading from Fedora 24 to 25, it is advised to disable third-party repositories - except Fedora/Updates, RPM Fusion and Copr. Check which repositories you are using:

# dnf repolist

If there are additional repositories, you can disable them using:

# dnf config-manager --set-disabled REPOSITORY

Then, use gnome-software (graphical interface) to start the upgrade process, or use the system-upgrade plugin for dnf.

Make sure the system-upgrade plugin is up to date:

# dnf install --best dnf-plugin-system-upgrade

Prepare the upgrade by downloading all files. Be very careful not to forget the system-upgrade argument.

# dnf system-upgrade download --releasever=25

In some cases (if some packages are not updated even though a newer version is available, as shown in the output of that command), you may want to add --best --allowerasing:

# dnf system-upgrade download --releasever=25 --best --allowerasing

When the download is complete (no more conflicts, no error messages), it will tell you so and it will also give you the command to initiate the upgrade process:

# dnf system-upgrade reboot

After a successful upgrade, you will be greeted with "Fedora 25". You can also check the release files:

# cat /etc/fedora-release 
Fedora release 25 (Twenty Five)
edit flag offensive delete link more

answered 2016-08-28 11:28:57 -0500

aeperezt gravatar image

If you are upgrating remove or disable external repositories, another way to go is uninstall the conflict packages. Upgrade do not play well with some external repos.

edit flag offensive delete link more

answered 2016-12-26 07:46:56 -0500

rhandwor52 gravatar image

Use dnf install yumex-dnf after this is installed open program get list of updates. Click install it will tell you problen updates. Right click problem programs then remove until you get all problems. Then update will sometimes add the removed items will be installed as a new add on. Sometimes it's takes a couple weeks until bugs are removed. This happens frequently just be patient until it's repaired.

edit flag offensive delete link more

Question Tools


Asked: 2016-08-28 05:22:12 -0500

Seen: 6,370 times

Last updated: Dec 25 '16