Conflicting packages, libgcc: /usr/lib/libgcc_s.so exists in filesystem (owned by gcc-libs)

I’ve been stuck in this state for a while after some action which I can’t trace

Current state when trying to install,say yay pistache is:

meson-1.11.1-1  rapidjson-1.1.0-6

Total Installed Size:  20,81 MiB

:: Proceed with installation? [Y/n] 
(6/6) checking keys in keyring                                                [############################################] 100%
(6/6) checking package integrity                                              [############################################] 100%
(6/6) loading package files                                                   [############################################] 100%
(6/6) checking for file conflicts                                             [############################################] 100%
error: failed to commit transaction (conflicting files)
libgcc: /usr/lib/libgcc_s.so exists in filesystem (owned by gcc-libs)
libgcc: /usr/lib/libgcc_s.so.1 exists in filesystem (owned by gcc-libs)
libgcc: /usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION exists in filesystem (owned by gcc-libs)
libstdc++: /usr/lib/libstdc++.so exists in filesystem (owned by gcc-libs)
libstdc++: /usr/lib/libstdc++.so.6 exists in filesystem (owned by gcc-libs)
libstdc++: /usr/lib/libstdc++.so.6.0.34 exists in filesystem (owned by gcc-libs)
libstdc++: /usr/share/locale/de/LC_MESSAGES/libstdc++.mo exists in filesystem (owned by gcc-libs)
libstdc++: /usr/share/locale/fr/LC_MESSAGES/libstdc++.mo exists in filesystem (owned by gcc-libs)
Errors occurred, no packages were upgraded.
 -> Failed to install layer, rolling up to next layer.error:error installing repo packages
resolving dependencies...
looking for conflicting packages...

Packages (6) libgcc-15.2.1+r604+g0b99615a8aef-1  libstdc++-15.2.1+r604+g0b99615a8aef-1  ninja-1.13.2-3  python-tqdm-4.67.3-1
             meson-1.11.1-1  rapidjson-1.1.0-6

Total Installed Size:  20,81 MiB

:: Proceed with installation? [Y/n] 
(6/6) checking keys in keyring                                                [############################################] 100%
(6/6) checking package integrity                                              [############################################] 100%
(6/6) loading package files                                                   [############################################] 100%
(6/6) checking for file conflicts                                             [############################################] 100%
error: failed to commit transaction (conflicting files)
libgcc: /usr/lib/libgcc_s.so exists in filesystem (owned by gcc-libs)
libgcc: /usr/lib/libgcc_s.so.1 exists in filesystem (owned by gcc-libs)
libgcc: /usr/share/licenses/gcc-libs/RUNTIME.LIBRARY.EXCEPTION exists in filesystem (owned by gcc-libs)
libstdc++: /usr/lib/libstdc++.so exists in filesystem (owned by gcc-libs)
libstdc++: /usr/lib/libstdc++.so.6 exists in filesystem (owned by gcc-libs)
libstdc++: /usr/lib/libstdc++.so.6.0.34 exists in filesystem (owned by gcc-libs)
libstdc++: /usr/share/locale/de/LC_MESSAGES/libstdc++.mo exists in filesystem (owned by gcc-libs)
libstdc++: /usr/share/locale/fr/LC_MESSAGES/libstdc++.mo exists in filesystem (owned by gcc-libs)
Errors occurred, no packages were upgraded.
 -> error installing repo packages
error installing repo packages

Can you help me getting to a correct state ?

Hi @antl, and welcome!

:bangbang: Tip :bangbang:

When posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Sed
sollicitudin dolor
eget nisl elit id
condimentum
arcu erat varius
cursus sem quis eros.

Instead of like this:

Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby increasing legibility thus making it easier for those trying to provide assistance.

For more information, please see:

As I’m a moderator on the forum, I have taken the liberty of doing this for you, this time.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Note that the above text is partially pre-prepared as a general introduction for new forum Users. Please take the time to to understand how it is done and encourage quality responses.

Welcome to the forum! :vulcan_salute:

There is no such package in the repositories, and according to what I see here, the AUR package is called pistache-git.

Given that it’s an AUR package, it has dependencies on two packages, one of which is not available in Manjaro Stable yet, i.e. meson-1.11.1-1 — the version in Manjaro Stable is 1.10.2-1.

The general advice for using AUR packages is to switch to Manjaro Unstable, because AUR packages are designed to work with Arch Stable, and thus have more bleeding-edge dependencies. In this case however, Manjaro Testing would also do, because Testing already has the updated meson as well. :backhand_index_pointing_down:

sudo pacman-mirrors -a -B testing && sudo pacman-mirrors -f && sudo pacman -Syyu

That said, it is possible to force overwriting of the already installed packages, but we seriously recommend against that in the event of installing AUR packages, because it is bound to break your system.

1 Like

OK , I’ll give it a try

Now I have this other problem:

looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing egl-wayland (4:1.1.21-1) breaks dependency 
'egl-wayland=4:1.1.20' required by lib32-egl-wayland

Do you have a systematic way to solve those kind of problems ?

If you use the AUR you’re outside your distribution. I would remove the lib32-egl-wayland and packages that require this library. After your installation succeeds you can reinstall the packages. Most likely they need to be rebuilt anyhow. Or as @scotty65 mentions these AUR packages aren’t required and got installed when the package was removed from Arch. (One needs to keep an eye on this - it’s a downside of enabling the AUR.)

3 Likes

That package is no longer in the repos, so you should be able to safely remove it from your system:

sudo pacman -R lib32-egl-wayland

Then run the sudo pacman -Syu command again to update your system - hopefully nothing else will block it.

3 Likes

I’ll give it a try and learn from that
Thanks

A few moments later

It’s now in a state that allows me to install what I wanted.

2 Likes

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