Conflicting files during update

hi
i use this code in command to update my manjaro linux “sudo pacman -Syyu” but i see this below Error:

:: Proceed with installation? [Y/n] Y
(628/628) checking keys in keyring [########################################] 100%
(628/628) checking package integrity [########################################] 100%
(628/628) loading package files [########################################] 100%
(628/628) checking for file conflicts [########################################] 100%
error: failed to commit transaction (conflicting files)
gnome-shell-extension-desktop-icons: /usr/share/gnome-shell/extensions/desktop-icons@csoriano/schemas/gschemas.compiled exists in filesystem
python-wheel: /usr/bin/wheel exists in filesystem
Errors occurred, no packages were upgraded.

could you please help me?

1 Like

Whenever I’ve had a file exists problem, I renamed the existing file like this, filenameOLD, and then updated again.

I strongly recommend making any required backups before changing anything and updating.

2 Likes

hi leebut
thanks for your answer. when i click on wheel file I cannot Rename or Remove it
I use this code command to update the system
sudo pacman -Syyu --overwrite=/usr/bin/wheel
but i see this error
error: failed to commit transaction (conflicting files)
“gnome-shell-extension-desktop-icons: /usr/share/gnome-shell/extensions/desktop-icons@csoriano/schemas/gschemas.compiled exists in filesystem
Errors occurred, no packages were upgraded.”
after use this command code
“sudo pacman -Syyu --overwrite=/usr/share/gnome-shell/extensions/desktop-icons@csoriano/schemas/gschemas.compiled”
again I see this error
“error: failed to commit transaction (conflicting files)
python-wheel: /usr/bin/wheel exists in filesystem
Errors occurred, no packages were upgraded.”

i don’t know what should i do, please help me
for about 2 month i don’t update the system and now i cant :frowning_face:

Sounds like you’ve been using sudo with pip. Never do that. See why? :wink:

Instead, use Python packages from the repos or use a virtual environment.

1 Like

i use this command
sudo pacman -Syyu
for update the system but I see the above Error.
what should i do to update ?

please help me, how can i update the system now?

Hi @shiva ,
You could always update the mirrors with sudo pacman-mirrors --fastrack && sudo pacman -Syyu to see whether is possible to do the upgrade.

Hope this help, regards.

hi
i use this command and this error acured
Version 4.19.1
USAGE:
pacman-mirrors [-h] [-f [NUMBER]] [-i [-d]] [-m METHOD] [–status]
[-c COUNTRY [COUNTRY…] | [–geoip] | [–continent]]
[-l] [-lc] [-q] [-t SECONDS] [-v] [-n]
[–api] [-S/-B BRANCH] [-p PREFIX]
[-P PROTO [PROTO…]] [-R] [-U URL]
pacman-mirrors: error: unrecognized arguments: --fastrack

This thread will help you with your issue:

Read through it and choose one of the ways described in order to proceed with the system update.


You got this error because the argument you specified for pacman-mirrors is not correct. The right one is --fasttrack.
See the Manjaro Wiki for more information about pacman-mirrors:

thanks for your help.

finally i can update the system, i remove the conflict file by this command " sudo rm /usr/bin/wheel"
and then update the system