Ask Your Question
1

DNF crash created duplicate installs, DNF is a duplicate

asked 2017-09-16 12:14:06 -0600

smugbugs gravatar image

So, in short Gnome crashed in the middle of a dnf update. After some looking into the issue I determined the problem was that duplicate files existed.

I initially tried dnf clean packages followed by autoremove. This was ineffective.

I then learned that there is a dnf remove --duplicates command. However, one of the duplicated packages is DNF itself. As a result it refuses to remove the duplicates since DNF is a "protected package."

Any ideas on how I might be able to clean out the duplicates? Below is the output of DNF's check for duplicate files.

sudo dnf check --duplicates
autocorr-en-1:5.3.5.2-3.fc26.noarch is a duplicate with autocorr-en-1:5.3.6.1-5.fc26.noarch
bluez-5.46-1.fc26.x86_64 is a duplicate with bluez-5.46-6.fc26.x86_64
bluez-cups-5.46-1.fc26.x86_64 is a duplicate with bluez-cups-5.46-6.fc26.x86_64
bluez-libs-5.46-1.fc26.x86_64 is a duplicate with bluez-libs-5.46-6.fc26.x86_64
bluez-obexd-5.46-1.fc26.x86_64 is a duplicate with bluez-obexd-5.46-6.fc26.x86_64
boost-date-time-1.63.0-6.fc26.x86_64 is a duplicate with boost-date-time-1.63.0-7.fc26.x86_64
boost-filesystem-1.63.0-6.fc26.x86_64 is a duplicate with boost-filesystem-1.63.0-7.fc26.x86_64
boost-iostreams-1.63.0-6.fc26.x86_64 is a duplicate with boost-iostreams-1.63.0-7.fc26.x86_64
boost-random-1.63.0-6.fc26.x86_64 is a duplicate with boost-random-1.63.0-7.fc26.x86_64
boost-system-1.63.0-6.fc26.x86_64 is a duplicate with boost-system-1.63.0-7.fc26.x86_64
boost-thread-1.63.0-6.fc26.x86_64 is a duplicate with boost-thread-1.63.0-7.fc26.x86_64
dnf-2.6.3-1.fc26.noarch is a duplicate with dnf-2.6.3-11.fc26.noarch
dnf-conf-2.6.3-1.fc26.noarch is a duplicate with dnf-conf-2.6.3-11.fc26.noarch
dnf-yum-2.6.3-1.fc26.noarch is a duplicate with dnf-yum-2.6.3-11.fc26.noarch
emacs-filesystem-1:25.2-3.fc26.noarch is a duplicate with emacs-filesystem-1:25.3-1.fc26.noarch
evolution-data-server-3.24.5-1.fc26.x86_64 is a duplicate with evolution-data-server-3.24.6-1.fc26.x86_64
file-5.30-10.fc26.x86_64 is a duplicate with file-5.30-11.fc26.x86_64
file-libs-5.30-10.fc26.x86_64 is a duplicate with file-libs-5.30-11.fc26.x86_64
firefox-55.0.2-3.fc26.x86_64 is a duplicate with firefox-55.0.3-1.fc26.x86_64
flatpak-0.9.8-2.fc26.x86_64 is a duplicate with flatpak-0.9.10-1.fc26.x86_64
fontconfig-2.12.1-4.fc26.i686 is a duplicate with fontconfig-2.12.1-4.fc26.x86_64
fontconfig-2.12.1-4.fc26.i686 is a duplicate with fontconfig-2.12.5-1.fc26.x86_64
gawk-4.1.4-3.fc26.x86_64 is a duplicate with gawk-4.1.4-4.fc26.x86_64
gdb-8.0-24.fc26.x86_64 is a duplicate with gdb-8.0.1-26.fc26.x86_64
gdb-headless-8.0-24.fc26.x86_64 is a duplicate with gdb-headless-8.0.1-26.fc26.x86_64
git-2.13.5-1.fc26.x86_64 is a duplicate with git-2.13.5-2.fc26.x86_64
git-core-2.13.5-1.fc26.x86_64 is a duplicate with git-core-2.13.5-2.fc26.x86_64
git-core-doc-2.13.5-1.fc26.x86_64 is a duplicate with git-core-doc-2.13.5-2.fc26.x86_64
gnome-online-accounts-3.24.2-1.fc26.x86_64 is a duplicate with gnome-online-accounts-3.24.3-1.fc26.x86_64
gnupg2-2.1 ...
(more)
edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2017-09-16 15:14:02 -0600

Rabin gravatar image

updated 2017-09-16 15:15:30 -0600

you can use rpm -e to erase any package directly bypassing any protection you have from DNF, I recommand listing all the packages you like to remove, download them locally, and then try and play with rpm -e later on you can reinstall the packages with rpm -Uivh *.rpm if needed.

edit flag offensive delete link more
1

answered 2017-09-17 02:34:12 -0600

Axel Sommerfeldt gravatar image

Run rpm -e --nodeps --justdb <package> using the full names and version numbers of the newer(!) of the packages in question. This will not uninstall the packages but remove the DB entry only. Afterwards try dnf update again, and this should update all these packages correctly now.

edit flag offensive delete link more
1

answered 2017-09-16 15:38:44 -0600

jmt gravatar image

dnf remove --duplicates

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-09-16 12:14:06 -0600

Seen: 1,427 times

Last updated: Sep 17 '17