Error: conflicting files, files exists in filesystem

I’m having an issue with updating via pacman. I’ve tried sync’ing and clearing the cache, such as -Sc and -Syyuu. But I can’t seem to figure out how to fix this problem and this is preventing me from upgrading all the other packages.

:: Synchronizing package databases…
core 131.4 KiB 304K/s 00:00 [------------------------------] 100%
extra 1643.9 KiB 296K/s 00:06 [------------------------------] 100%
community 4.5 MiB 270K/s 00:17 [------------------------------] 100%
multilib 172.3 KiB 268K/s 00:01 [------------------------------] 100%
archlabs_repo 13.0 KiB 767K/s 00:00 [------------------------------] 100%
:: Starting full system upgrade…
:: Replace ca-certificates-cacert with core/ca-certificates? [Y/n] y
:: Replace jre9-openjdk with extra/jre10-openjdk? [Y/n] y
:: Replace jre9-openjdk-headless with extra/jre10-openjdk-headless? [Y/n] y
y:: Replace libx264 with extra/x264? [Y/n]
:: Replace pkg-config with core/pkgconf? [Y/n] y
resolving dependencies…
looking for conflicting packages…
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency
warning: dependency cycle detected:
warning: libglvnd will be installed before its mesa dependency
warning: dependency cycle detected:
warning: x264 will be installed before its ffmpeg dependency
warning: dependency cycle detected:
warning: phonon-qt5-gstreamer will be installed before its phonon-qt5 dependency
warning: dependency cycle detected:
warning: lib32-harfbuzz will be installed before its lib32-freetype2 dependency
warning: dependency cycle detected:
warning: lib32-keyutils will be installed before its lib32-krb5 dependency
warning: dependency cycle detected:
warning: lib32-mesa will be installed before its lib32-libglvnd dependency

Then it goes to list the packages it’s going to upgrade…

The Specific errors which disallow it from upgrading.

error: failed to commit transaction (conflicting files)
archlabs-themes: /usr/share/rofi/themes/archlabs-shadow.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/archlabsdark.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/archlabslight.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/shadow-sidebar.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/shadow.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/slate-bordered.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/slate.rasi exists in filesystem
archlabs-user-skel: /etc/skel/.vimrc exists in filesystem
Errors occurred, no packages were upgraded.
sudo pacman -Su  14.13s user 8.39s system 58% cpu 38.488 total

Just delete those files and upgrade again.

```
archlabs-themes: /usr/share/rofi/themes/archlabs-shadow.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/archlabsdark.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/archlabslight.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/shadow-sidebar.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/shadow.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/slate-bordered.rasi exists in filesystem
archlabs-themes: /usr/share/rofi/themes/slate.rasi exists in filesystem
archlabs-user-skel: /etc/skel/.vimrc exists in filesystem
```
1 Like

ayy thanks, that worked. The .vimrc was a kinda weird but ‘rm .vimrc’ worked when I was in the skel folder.

1 Like

Sweet. We can mark as solved?

Just choose the tick on my post to show we reached a solution :smiley: