You are not logged in.
Hi,
I'm trying to
pacman -Suy
and I get, besides 153 other packages, an update of gcc-7:
gcc7-7.3.1+20180406-2
gcc7-libs-7.3.1+20180406-2
But this fails:
error: failed to commit transaction (conflicting files)
gcc7: /usr/bin/gcc-7 exists in filesystem
Errors occurred, no packages were upgraded.
So what did help to get all the rest updated was
pacman -Suy --ignore gcc7
but after this completed successfully (cuda was skipped by the above step as pacman reports it to depend on gcc7):
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (3) cuda-9.2.88.1-2 gcc7-7.3.1+20180406-2 gcc7-libs-7.3.1+20180406-2
Total Installed Size: 2744.65 MiB
Net Upgrade Size: 380.50 MiB
:: Proceed with installation? [Y/n]
(3/3) checking keys in keyring
(3/3) checking package integrity
(3/3) loading package files
(3/3) checking for file conflicts
error: failed to commit transaction (conflicting files)
gcc7: /usr/bin/gcc-7 exists in filesystem
Errors occurred, no packages were upgraded.
any thoughts on this?
Last edited by masterofamn (2018-06-04 08:53:11)
Offline
In general read the guidance in https://wiki.archlinux.org/index.php/Pa … 9.22_error
If you've determined the overwrite to be safe you could make use of the new pacman option.
pacman -Syu --overwrite usr/bin/gcc-7
Online
ok, thanks for the hint and the link to the guide. I did as suggested:
$ pacman -Qo /usr/bin/gcc-7
error: No package owns /usr/bin/gcc-7
I dunno how this happened, but anyways, the suggested
pacman -Syu --overwrite usr/bin/gcc-7
then did the trick:
$ pacman -Qo /usr/bin/gcc-7
/usr/bin/gcc-7 is owned by gcc7 7.3.1+20180406-2
Offline