Unable to update Manjaro KDE - [FILENAME] exists in filesystem (owned by plasma-desktop)

Hello,

I have been chasing this problem for so long and I cannot figure out how to fix this. When I try to update sudo pacman -Syyu I get this string of errors…

:: Proceed with installation? [Y/n] y
(258/258) checking keys in keyring                                                                [##########################################################] 100%
(258/258) checking package integrity                                                              [##########################################################] 100%
(258/258) loading package files                                                                   [##########################################################] 100%
(258/258) checking for file conflicts                                                             [##########################################################] 100%
error: failed to commit transaction (conflicting files)
plasma-workspace-git: /usr/bin/kcolorschemeeditor exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/bin/kfontinst exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/bin/kfontview exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/bin/krdb exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/bin/lookandfeeltool exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/kauth/fontinst exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/kauth/fontinst_helper exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/kauth/fontinst_x11 exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/kconf_update_bin/krdb_clearlibrarypath exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/kfontprint exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/libkfontinst.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/libkfontinst.so.5 exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/libkfontinstui.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/libkfontinstui.so.5 exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/fontthumbnail.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/kcm_fontinst.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/kcms/kcm_colors.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/kcms/kcm_cursortheme.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/kcms/kcm_fonts.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/kcms/kcm_lookandfeel.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/kcms/kcm_style.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/kfontviewpart.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/lib/qt/plugins/kio_fonts.so exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/applications/org.kde.kcolorschemeeditor.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/applications/org.kde.kfontview.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/config.kcfg/colorssettings.kcfg exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/config.kcfg/cursorthemesettings.kcfg exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/config.kcfg/fontssettings.kcfg exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/config.kcfg/lookandfeelsettings.kcfg exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/config.kcfg/stylesettings.kcfg exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/dbus-1/services/org.kde.fontinst.service exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/dbus-1/system-services/org.kde.fontinst.service exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/dbus-1/system.d/org.kde.fontinst.conf exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/colors/index.cache.bz2 exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/colors/index.docbook exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/fontinst/index.cache.bz2 exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/fontinst/index.docbook exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/fonts/adjust-all.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/fonts/index.cache.bz2 exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/fonts/index.docbook exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/fonts/main.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/kcmstyle/index.cache.bz2 exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/doc/HTML/en/kcontrol/kcmstyle/index.docbook exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/128x128/mimetypes/fonts-package.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/16x16/apps/kfontview.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/16x16/mimetypes/fonts-package.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/22x22/apps/kfontview.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/22x22/mimetypes/fonts-package.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/32x32/apps/kfontview.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/32x32/mimetypes/fonts-package.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/48x48/apps/kfontview.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/48x48/mimetypes/fonts-package.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/64x64/apps/kfontview.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/64x64/mimetypes/fonts-package.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/icons/hicolor/scalable/apps/preferences-desktop-font-installer.svgz exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kconf_update/delete_cursor_old_default_size.pl exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kconf_update/delete_cursor_old_default_size.upd exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kconf_update/krdb_libpathwipe.upd exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kconf_update/style_widgetstyle_default_breeze.pl exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kconf_update/style_widgetstyle_default_breeze.upd exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kcontrol/pics/logo.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kcontrol/pics/mini-world.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/AAAAAAGeneral.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/AAAMotif.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/AAATk.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/AAAXaw.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/AcroRead.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/Editres.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/Emacs.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/GV.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/ML.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/Nedit.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/Netscape.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/RVPlayer.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/WPerfect.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/XCalc.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/XOsview.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/XTerm.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/XV.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/Xawtv.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/Xdvi.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kdisplay/app-defaults/Xpdf.ad exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kfontinst/icons/hicolor/16x16/actions/addfont.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kfontinst/icons/hicolor/16x16/actions/font-disable.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kfontinst/icons/hicolor/16x16/actions/font-enable.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kfontinst/icons/hicolor/16x16/actions/fontstatus.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kfontinst/icons/hicolor/22x22/actions/addfont.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kfontinst/icons/hicolor/22x22/actions/font-disable.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kfontinst/icons/hicolor/22x22/actions/font-enable.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kfontinst/icons/hicolor/22x22/actions/fontstatus.png exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/knsrcfiles/colorschemes.knsrc exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/knsrcfiles/kfontinst.knsrc exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/knsrcfiles/lookandfeel.knsrc exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/knsrcfiles/xcursor.knsrc exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/konqsidebartng/virtual_folders/services/fonts.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_colors/contents/ui/main.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_colors/metadata.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_colors/metadata.json exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_cursortheme/contents/ui/Delegate.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_cursortheme/contents/ui/main.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_cursortheme/metadata.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_cursortheme/metadata.json exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_fonts/contents/ui/FontWidget.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_fonts/contents/ui/main.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_fonts/metadata.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_fonts/metadata.json exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_lookandfeel/contents/ui/main.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_lookandfeel/metadata.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_lookandfeel/metadata.json exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_style/contents/ui/EffectSettingsPopup.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_style/contents/ui/GtkStylePage.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_style/contents/ui/main.qml exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_style/metadata.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kpackage/kcms/kcm_style/metadata.json exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/ServiceMenus/installfont.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/fontinst.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/fonts.protocol exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/fontthumbnail.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/kcm_colors.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/kcm_cursortheme.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/kcm_fonts.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/kcm_lookandfeel.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/kcm_style.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kservices5/kfontviewpart.desktop exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kxmlgui5/kfontinst/kfontviewpart.rc exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/kxmlgui5/kfontview/kfontviewui.rc exists in filesystem (owned by plasma-desktop)
plasma-workspace-git: /usr/share/polkit-1/actions/org.kde.fontinst.policy exists in filesystem (owned by plasma-desktop)
Errors occurred, no packages were upgraded.

I was pointed to this https://archived.forum.manjaro.org/t/package-installation-says-filename-exists-in-filesystem-failed-to-commit-transaction-conflicting-files/4382 page but this did not help me or I am misunderstanding what it wants me to do. I have found that plasma-workspace-git is trying to update files that are owned by plasma-desktop I attempted one of the fixes a few weeks ago and borked my computer. I was able to use Timeshift from the cli to restore everything but of course my inability to update still remains.

Heres the thing, the page I was shown gives three options.

The better way

The first step is to identify which, if any, package owns the file. This can be easily done with:

pacman -Qo /path/to/file

If this identifies a conflicting package you can decide to remove it with pacman -R . If no package is identified you can delete the file, e.g. rm /path/to/file (or move it to a backup location, e.g. mv /path/to/file /path/to/file.backup ).

The faster way

pacman has an --overwrite option which will allow it to overwrite files. If you are sure you want to, you can tell it to

sudo pacman -S $PACKAGE --overwrite path/to/*

This will (re)install the $PACKAGE and overwrite any files under the directory path/to/

This can be very useful if your local database has “lost” a package you’ve already installed (and so every file in the package “conflicts”).

The “I don’t care” way

sudo pacman -S $PACKAGE --overwrite '*'

The main problem I seem to be having here is both packages are required. If this was just any other program I could work around it but I have tried removing each of these packages and both times after a reboot my desktop environment wouldn’t load. I ended up needing to do aTimeShift restore in both cases.

If you cannot solve it for a long time and it’s still bugging you I would think about backing up and reinstalling.

From checking the contents of the classic and -git packages of plasma-desktop and plasma-workspace, it seems some files are bound to be moved from the former to the latter.
I’d suggest you either use the -git version for both, or for none.

I know… I am thinking about it… its just such a hassle. Not that this issue isn’t a hassle as well but I just hate wiping and starting over. I have all of my stuff backed up so i don’t have to worry about losing anything, its just reinstalling all my programs and setting my system back up the way I like it. If this post doesn’t give me any results, reinstalling is my next step.

Yeah, idk why one is git and the other is not. I’ll look into switching to the non-git one and see if that fixes anything. The problem is both of the packages need to exist (in some form) if I want to have a desktop environment lol

They dont need to both exist. You need to choose either all git or all regular.
In this case, whatever you have that pulls in or relies on plasma-workspace-git needs to be removed/replaced. At least for starters.