I found this recently created upstream Arch todo on the need to replace gcc-libs as it is being deprecated, but right now most of the items are still listed as Incomplete, while others, eg. wireshark-qt is already marked as Complete:
I think this might be the reason why I get this conflict when trying to install wireshark-qt:
sudo pacman -S wireshark-qt
error: failed to commit transaction (conflicting files)
libgcc: /usr/lib/libgcc_s.so exists in filesystem (owned by gcc-libs)
Usual advice does not work
The usual advice that I found for this error is to either contact the upstream maintainers of the packages that depend on the conflicting packages (in my case the deprecated gcc-libs) or just delete them..
The problem with this as you can see from the list under the todo link above, there are several hundreds of packages that are still Incomplete and even if I tried to narrow it down to just what’s on my system (after a pacman -Syu).. half of the system still depends on the old, deprecated package so I cannot delete it either.
Workaround / suggestions needed
I’m quite new to Arch and CachyOS, so I need directions on what my options might be if I want to use wireshark.. or for anyone else who might try to install any of the packages that already Completed their gcc-libs deprecation.
This likely belongs to the upstream Arch discussions as it likely affects anyone using pacman, but when I tried to register to their forums, the disclaimer for anyone using anything else than vanilla Arch was so full of bile, that I came back here instead.
The to-do is a roadmap and when fully completed then there will no longer be any libgcc in the repos and none of those packages will any longer depend on it.
As noted that is not yet complete.
Whatever you are experiencing is unrelated, at least directly, to that to-do.
( There would appear to be some kind of problem local to your system. )
My first guess would similarly have been -Syu but its stated that has already been applied.
My other guess is misconfigured pacman repositories.
Please show the output of sudo pacman -Syu in full and/or the contents of /etc/pacman.conf.
PS.
I have also verified the wireshark-qt package installs as expected while libgcc is installed with no conflict occurring.
Thanks for the quick reply, then it must have just been a coincidence with wireshark being on the already updated in the todo, so here are the logs from a fresh pacman -Syu run. I could not figure out what’s the best way to post the full log as it exceeds the char limit here and I couldn’t upload a text file so I’ll omit the middle, listing package updates:
❯ sudo pacman -Syu
:: Synchronizing package databases...
cachyos-v3 is up to date
cachyos-core-v3 is up to date
cachyos-extra-v3 4.2 MiB 12.6 MiB/s 00:00 [---------------------------------------------------------------------] 100%
cachyos is up to date
core 122.7 KiB 787 KiB/s 00:00 [---------------------------------------------------------------------] 100%
extra 8.0 MiB 25.5 MiB/s 00:00 [---------------------------------------------------------------------] 100%
multilib 127.9 KiB 894 KiB/s 00:00 [---------------------------------------------------------------------] 100%
:: Starting full system upgrade...
:: Replace kdsoap-qt6 with extra/kdsoap? [Y/n] y
resolving dependencies...
looking for conflicting packages...
Package (655) Old Version New Version Net Change Download Size
cachyos-extra-v3/a52dec 0.8.0-2.1 0.8.0-3.1 0.00 MiB
cachyos-extra-v3/accountsservice 23.13.9-2.1 26.12.8-1.1 0.03 MiB
extra/adwaita-fonts 49.0-2 50.0-1 0.07 MiB
##### OMITTING PACKAGES HERE #####
cachyos-v3/zlib-ng 2.3.2-2 2.3.3-2 0.00 MiB
cachyos-v3/zlib-ng-compat 2.3.2-2 2.3.3-2 0.00 MiB
extra/zsh-completions 0.35.0-3 0.36.0-1 0.24 MiB
cachyos-extra-v3/zxing-cpp 2.3.0-5.1 3.0.2-1.1 0.29 MiB
Total Download Size: 0.43 MiB
Total Installed Size: 13370.65 MiB
Net Upgrade Size: -282.96 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
libmfx-23.2.2-6-x86_64 56.9 KiB 558 KiB/s 00:00 [---------------------------------------------------------------------] 100%
onetbb-2022.3.0-4-x86_64 384.6 KiB 2.06 MiB/s 00:00 [---------------------------------------------------------------------] 100%
Total (2/2) 441.6 KiB 1606 KiB/s 00:00 [---------------------------------------------------------------------] 100%
(654/654) checking keys in keyring [---------------------------------------------------------------------] 100%
(654/654) checking package integrity [---------------------------------------------------------------------] 100%
error: libmfx: signature from "Daniel Bermond <dbermond@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/libmfx-23.2.2-6-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: onetbb: signature from "Daniel Bermond <dbermond@archlinux.org>" is marginal trust
:: File /var/cache/pacman/pkg/onetbb-2022.3.0-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
There is an error at the end around removing 2 packages with invalid signatures, but the rest seem to be completed in order.
But also my assumption could be wrong and no packages were upgraded might mean that the whole update (and all my previous system update efforts) might have failed.
Then it was a rookie mistake on my part, thank you for guiding me through it
After following the instructions from your linked post (with the separate keyring update), both the package updates and the wireshark install went smoothly.
Thanks again, it’s very nice to have such a great community support!