You are not logged in.

#1 2024-05-10 06:01:52

Enrico1989
Member
Registered: 2018-07-05
Posts: 237

error: failed to commit transaction (conflicting files)

I'm updating an Archlinux system that I couldn't update for a while. From the bash history, last update was on 31/12/23.

Now that I try to update, this is the final part of the output of pacman -Syu

 Total (649/649)                                                                                                      5.3 GiB  7.21 MiB/s 12:39 [########################################################################################] 100%
(649/649) checking keys in keyring                                                                                                              [########################################################################################] 100%
(649/649) checking package integrity                                   [#######################################] 100%(649/649) loading package files                                        [#######################################] 100%(649/649) checking for file conflicts                                  [#######################################] 100%
error: failed to commit transaction (conflicting files)
gcc13: /usr/lib/gcc/x86_64-pc-linux-gnu/lib/libgcc_s.so exists in filesystem (owned by gcc12)
gcc13: /usr/lib/gcc/x86_64-pc-linux-gnu/lib/libgcc_s.so.1 exists in filesystem (owned by gcc12)
Errors occurred, no packages were upgraded.

And I see that

$ pacman -Qo /usr/lib/gcc/x86_64-pc-linux-gnu/lib/libgcc_s.so
/usr/lib/gcc/x86_64-pc-linux-gnu/lib/libgcc_s.so is owned by gcc12 12.3.0-3
$ pacman -Qo /usr/lib/gcc/x86_64-pc-linux-gnu/lib/libgcc_s.so.1
/usr/lib/gcc/x86_64-pc-linux-gnu/lib/libgcc_s.so.1 is owned by gcc12 12.3.0-3

From 3.1 here, I understand I'd have to file a bug report.

Is that the case?

Anyway, how do I proceed?

Offline

#2 2024-05-10 06:20:52

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,590

Re: error: failed to commit transaction (conflicting files)

Same situation as this ?

Offline

#3 2024-05-10 06:49:47

Enrico1989
Member
Registered: 2018-07-05
Posts: 237

Re: error: failed to commit transaction (conflicting files)

Yep, I did

sudo pacman -R cuda gcc12
sudo pacman -Syu

I suppose cuda will be reinstalled if needed.

Offline

#4 2024-05-28 06:06:43

mike_nzk
Member
Registered: 2012-07-24
Posts: 15

Re: error: failed to commit transaction (conflicting files)

I encountered the same issue, but unfortunately I can't just remove cuda since a lot of other packages depend on it (cudnn, pytorch, ...). Is there a way to install the packages correctly without removing one of the two packages?

Edit:
I managed to find out the solution: upgrading to cuda-12.4 first (downloaded from archive.org), which removes gcc12 as its dependency, and then uninstall gcc12.

Last edited by mike_nzk (2024-05-28 07:11:08)

Offline

Board footer

Powered by FluxBB