[pacman] upgrade error - Files exist in filesystem

> $ sudo pacman -Syyu                
> :: Synchronizing package databases...
>  core                                                                                  165.3 KiB  1102 KiB/s 00:00 [####################################################################] 100%
>  extra                                                                                1910.3 KiB  5.49 MiB/s 00:00 [####################################################################] 100%
>  community                                                                               6.5 MiB  7.02 MiB/s 00:01 [####################################################################] 100%
>  multilib                                                                              178.1 KiB  1188 KiB/s 00:00 [####################################################################] 100%
> :: Starting full system upgrade...
> warning: pamac-cli: local (10.1.2-0.1) is newer than extra (10.0.6-2)
> warning: pamac-common: local (10.1.2-0.1) is newer than extra (10.0.6-2)
> warning: pamac-flatpak-plugin: local (10.1.2-0.1) is newer than extra (10.0.6-2)
> warning: pamac-gnome-integration: local (10.1.2-0.1) is newer than extra (10.0.6-2)
> warning: pamac-gtk: local (10.1.2-0.1) is newer than extra (10.0.6-2)
> warning: pamac-snap-plugin: local (10.1.2-0.1) is newer than extra (10.0.6-2)
> resolving dependencies...
> looking for conflicting packages...
> warning: dependency cycle detected:
> warning: bashrc-manjaro will be installed before its bash dependency
> 
> Packages (129) adwaita-icon-theme-40.1.1-1  alsa-card-profiles-1:0.3.27-1  amd-ucode-20210511.r1922.7685cf4-1  aom-3.1.0-1  apache-2.4.47-1  avr-gcc-11.1.0-1  bash-5.1.008-1
>                bashrc-manjaro-5.1.008-1  breeze-gtk-5.21.5-1  breeze-icons-5.82.0-1  btrfs-progs-5.12-2  bubblewrap-0.4.1-2  chrome-gnome-shell-10.1-6  chromium-90.0.4430.212-1
>                containerd-1.5.0-1  device-mapper-2.03.12-1  ffmpeg-2:4.4-3  file-5.40-3  flac-1.3.3-3  fwupd-1.6.0-3  fwupd-efi-1.0-1  gdb-10.2-1  gdb-common-10.2-1  geary-1:40.0-3
>                gjs-2:1.68.0-4  gnome-backgrounds-40.1-1  gnome-calendar-40.1-1  gnome-desktop-1:40.1-1  gnome-shell-extension-pop-shell-1.2.0-2  go-2:1.16.4-1  gparted-1.3.0-3
>                gst-plugin-pipewire-1:0.3.27-1  gtk-update-icon-cache-1:4.2.1-1  gtkd-3.9.0-12  harfbuzz-2.8.1-1  harfbuzz-icu-2.8.1-1  hdparm-9.61-1  imagemagick-7.0.11.12-1
>                inkscape-1.0.2-6  js78-78.10.1-1  kauth-5.82.0-1  kconfig-5.82.0-1  kcoreaddons-5.82.0-1  kitemmodels-5.82.0-1  knotifications-5.82.0-1  kwindowsystem-5.82.0-1
>                lib32-libxcrypt-4.4.20-1  lib32-nvidia-utils-460.80-1  lib32-readline-8.1.001-1  libass-0.15.1-1  libheif-1.12.0-1  libimagequant-2.15.0-1  liblphobos-2:1.26.0-1
>                libmanette-0.2.6-2  libnm-1.30.4-3  libphonenumber-8.12.22-1  libplacebo-3.120.3-1  libsynctex-2020.54586-14  libtool-2.4.6+42+gb88cebd5-15  libupnp-1.14.7-1
>                libxcrypt-4.4.20-1  linux-firmware-20210511.r1922.7685cf4-1  linux510-5.10.36-2  linux510-nvidia-460.80-1  lvm2-2.03.12-1  mailcap-2.1.53-1  manjaro-gnome-assets-20210518-1
>                manjaro-gnome-settings-20210403-2  manjaro-release-21.0.5-1  mariadb-10.5.10-1  mariadb-clients-10.5.10-1  mariadb-libs-10.5.10-1  md4c-0.4.8-1  mhwd-nvidia-460.80-1
>                mjpegtools-2.2.0-1  mpfr-4.1.0-2  mpg123-1.27.2-1  ncurses-6.2-2  networkmanager-1.30.4-3  networkmanager-openconnect-1.2.7dev+65+gca4187c-1
>                networkmanager-pptp-1.2.9dev+10+gb41b0d0-4  nm-connection-editor-1.22.0-1  node-gyp-8.0.0-1  nodejs-16.1.0-1  npm-7.12.1-1  nvidia-utils-460.80-1  perl-libwww-6.54-1
>                pipewire-1:0.3.27-1  pipewire-media-session-1:0.3.27-1  poppler-21.05.0-1  poppler-glib-21.05.0-1  ppp-2.4.9-1  projectm-3.1.12-2  protobuf-3.16.0-1  python-3.9.5-1
>                python-chardet-4.0.0-2  python-google-api-core-1.26.3-1  python-google-api-python-client-2.3.0-1  python-pep517-0.10.0-2  python-protobuf-3.16.0-1  python-pulsectl-21.5.6-1
>                python-pygments-2.9.0-1  python-reportlab-3.5.67-1  python-setuptools-1:56.1.0-1  python-six-1.16.0-1  qpdf-10.3.2-1  readline-8.1.001-1  runc-1.0.0rc94-1  shaderc-2021.0-1
>                spirv-tools-2021.1-1  svt-av1-0.8.6-3  systemd-247.7-1  systemd-libs-247.7-1  systemd-sysvcompat-247.7-1  tilix-1.9.4-3  tor-0.4.5.8-1  ttf-liberation-2.1.4-1  vi-1:070224-5
>                vim-8.2.2845-1  vim-runtime-8.2.2845-1  vlc-3.0.13-2  wayland-protocols-1.21-1  webkit2gtk-2.32.1-1  wpebackend-fdo-1.9.91-1  xdg-desktop-portal-1.8.1-1  xorgproto-2021.4-1
>                yad-10.1-1  yay-10.2.2-1  zsh-completions-0.33.0-1
> 
> Total Installed Size:  3957.02 MiB
> Net Upgrade Size:        64.23 MiB
> 
> :: Proceed with installation? [Y/n] y
> (129/129) checking keys in keyring                                                                                 [####################################################################] 100%
> (129/129) checking package integrity                                                                               [####################################################################] 100%
> (129/129) loading package files                                                                                    [####################################################################] 100%
> (129/129) checking for file conflicts                                                                              [####################################################################] 100%
> error: failed to commit transaction (conflicting files)
> npm: /usr/lib/node_modules/npm/node_modules/libnpmexec/lib/file-exists.js exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/formatters/__pycache__/pangomarkup.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/formatters/pangomarkup.py exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/__pycache__/_julia_builtins.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/__pycache__/apdlexer.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/__pycache__/gcodelexer.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/__pycache__/kuin.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/__pycache__/teal.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/__pycache__/thingsdb.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/__pycache__/webassembly.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/_julia_builtins.py exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/apdlexer.py exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/gcodelexer.py exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/kuin.py exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/teal.py exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/thingsdb.py exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/lexers/webassembly.py exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/styles/__pycache__/gruvbox.cpython-39.pyc exists in filesystem
> python-pygments: /usr/lib/python3.9/site-packages/pygments/styles/gruvbox.py exists in filesystem
> Errors occurred, no packages were upgraded.

This error looks weird, how to deal with it?

In this thread you find a suggestion how to solve it:

3 Likes

For that you have to use sudo pacman -Syyuu to get back to normal
So, you could use:
sudo pacman -Syyu --overwrite "*"

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.