You are not logged in.

#1 2024-04-17 18:41:37

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 644

[SOLVED] Cannot update system - some files "exist in filesystem"

It's not the first time I get such an error and not the only package. How to resolve this (beside manually removing all of the mentioned files)?

sudo pacman -Syu

(...)


error: failed to commit transaction (conflicting files)
xdg-desktop-portal: /usr/lib/systemd/user/xdg-desktop-portal-rewrite-launchers.service exists in filesystem
xdg-desktop-portal: /usr/lib/systemd/user/xdg-desktop-portal.service exists in filesystem
xdg-desktop-portal: /usr/lib/systemd/user/xdg-document-portal.service exists in filesystem
xdg-desktop-portal: /usr/lib/systemd/user/xdg-permission-store.service exists in filesystem
xdg-desktop-portal: /usr/lib/xdg-desktop-portal exists in filesystem
xdg-desktop-portal: /usr/lib/xdg-desktop-portal-rewrite-launchers exists in filesystem
xdg-desktop-portal: /usr/lib/xdg-desktop-portal-validate-icon exists in filesystem
xdg-desktop-portal: /usr/lib/xdg-document-portal exists in filesystem
xdg-desktop-portal: /usr/lib/xdg-permission-store exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Access.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Account.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.AppChooser.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Background.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Clipboard.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.DynamicLauncher.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Email.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.FileChooser.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.GlobalShortcuts.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Inhibit.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.InputCapture.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Lockdown.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Notification.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.PermissionStore.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Print.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.RemoteDesktop.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Request.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.ScreenCast.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Screenshot.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Secret.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Session.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Settings.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.impl.portal.Wallpaper.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Account.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Background.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Camera.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Clipboard.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Device.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Documents.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.DynamicLauncher.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Email.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.FileChooser.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.FileTransfer.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.GameMode.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.GlobalShortcuts.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Inhibit.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.InputCapture.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Location.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.MemoryMonitor.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.NetworkMonitor.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Notification.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.OpenURI.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.PowerProfileMonitor.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Print.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.ProxyResolver.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Realtime.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.RemoteDesktop.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Request.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.ScreenCast.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Screenshot.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Secret.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Session.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Settings.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Trash.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/interfaces/org.freedesktop.portal.Wallpaper.xml exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/services/org.freedesktop.portal.Desktop.service exists in filesystem
xdg-desktop-portal: /usr/share/dbus-1/services/org.freedesktop.portal.Documents.service exists in filesystem
xdg-desktop-portal: /usr/share/doc/xdg-desktop-portal/docbook.css exists in filesystem
xdg-desktop-portal: /usr/share/doc/xdg-desktop-portal/portal-docs.html exists in filesystem
xdg-desktop-portal: /usr/share/doc/xdg-desktop-portal/redirect.html exists in filesystem
xdg-desktop-portal: /usr/share/locale/be/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/ca/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/cs/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/da/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/de/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/en_GB/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/es/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/fr/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/gl/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/he/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/hi/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/hr/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/hu/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/id/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/it/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/ka/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/lt/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/nl/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/oc/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/pl/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/pt/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/pt_BR/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/ro/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/ru/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/sk/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/sr/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/sv/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/tr/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/uk/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/zh_CN/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/locale/zh_TW/LC_MESSAGES/xdg-desktop-portal.mo exists in filesystem
xdg-desktop-portal: /usr/share/man/man5/portals.conf.5.gz exists in filesystem
xdg-desktop-portal: /usr/share/pkgconfig/xdg-desktop-portal.pc exists in filesystem

Last edited by Zibi1981 (2024-04-17 19:40:23)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#2 2024-04-17 18:45:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,831

Re: [SOLVED] Cannot update system - some files "exist in filesystem"

sudo pacman -Sy --dbonly xdg-desktop-portal
sudo pacman -Syu xdg-desktop-portal

Offline

#3 2024-04-17 18:46:12

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,992
Website

Re: [SOLVED] Cannot update system - some files "exist in filesystem"

Obviously your pacman db is corrupted, since (some) installed packages are not registered as such.
Use pacman -S --dbolny to mark those as installed. For further details read pacman's man page.
Since you said, that this is not the first time happening, the more important question to ask would be how to avoid this in the future.
And the answer to this is to not interrupt pacman's transactions.


Edit: Ninja'd

Last edited by schard (2024-04-17 18:47:26)


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#4 2024-04-17 19:40:04

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 644

Re: [SOLVED] Cannot update system - some files "exist in filesystem"

V1del wrote:
sudo pacman -Sy --dbonly xdg-desktop-portal
sudo pacman -Syu xdg-desktop-portal

Thanks for the tip, it worked.

schard wrote:

Obviously your pacman db is corrupted, since (some) installed packages are not registered as such.
Use pacman -S --dbolny to mark those as installed. For further details read pacman's man page.
Since you said, that this is not the first time happening, the more important question to ask would be how to avoid this in the future.
And the answer to this is to not interrupt pacman's transactions.


Edit: Ninja'd

Interruption of update process did actually happen to me, but it was due to the suspension of it.


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

Board footer

Powered by FluxBB