You are not logged in.

#1 2015-12-23 09:10:12

nullgeppetto
Member
Registered: 2015-09-23
Posts: 26

[SOLVED] Problem with pacman (error: failed to commit transaction )

Hi everyone! Excuse my unawareness, I'm new to arch...
I'm trying to upgrade with pacman (pacman -Syu), but what I get after a long time is as follows:

error: failed to commit transaction (conflicting files)
nvidia-libgl: /usr/lib/libEGL.so exists in filesystem
nvidia-libgl: /usr/lib/libEGL.so.1 exists in filesystem
nvidia-libgl: /usr/lib/libEGL.so.358.16 exists in filesystem
nvidia-libgl: /usr/lib/libGL.so exists in filesystem
nvidia-libgl: /usr/lib/libGL.so.1 exists in filesystem
nvidia-libgl: /usr/lib/libGL.so.358.16 exists in filesystem
nvidia-libgl: /usr/lib/libGLESv1_CM.so exists in filesystem
nvidia-libgl: /usr/lib/libGLESv1_CM.so.1 exists in filesystem
nvidia-libgl: /usr/lib/libGLESv1_CM.so.358.16 exists in filesystem
nvidia-libgl: /usr/lib/libGLESv2.so exists in filesystem
nvidia-libgl: /usr/lib/libGLESv2.so.2 exists in filesystem
nvidia-libgl: /usr/lib/libGLESv2.so.358.16 exists in filesystem
nvidia-libgl: /usr/lib/xorg/modules/extensions/libglx.so exists in filesystem
nvidia-libgl: /usr/lib/xorg/modules/extensions/libglx.so.1 exists in filesystem
nvidia-libgl: /usr/lib/xorg/modules/extensions/libglx.so.358.16 exists in filesystem
nvidia-libgl: /usr/share/licenses/nvidia-libgl exists in filesystem
Errors occurred, no packages were upgraded.

As of yet, I have not figured it out. Could you lend a hand?
Thanks in advance!

Last edited by nullgeppetto (2015-12-24 08:19:05)


"I never expected hell to have so much light." -- Miltos Sachtouris

Offline

#2 2015-12-23 09:24:33

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

Welcome to the forums, nullgeppetto. Please do search before posting, this is a very common error message, and is well documented on the wiki: https://wiki.archlinux.org/index.php/Pa … 9.22_error


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-12-24 07:07:09

nullgeppetto
Member
Registered: 2015-09-23
Posts: 26

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

WorMzy, thanks for your answer. I was aware of this wiki page, but it didn't really help. I am not sure that this is the same problem, I mean that it doesn't seem that my problem lies in the same category. In the wiki, the problem is in the form

error: could not prepare transaction
error: failed to commit transaction (conflicting files)
package: /path/to/file exists in filesystem
Errors occurred, no packages were upgraded.

But mine seems to be a bit different. If I'm not mistaken.


"I never expected hell to have so much light." -- Miltos Sachtouris

Offline

#4 2015-12-24 07:09:33

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

Nope, yours is exactly the same.

Offline

#5 2015-12-24 07:18:13

nullgeppetto
Member
Registered: 2015-09-23
Posts: 26

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

Scimmia wrote:

Nope, yours is exactly the same.

Ok, you're right (apparently).
So, I try what the wiki suggest, for instance for the first file in the list (/usr/lib/libEGL.so), i.e. I run

pacman -Qo /usr/lib/libEGL.so

and I get that

error: No package owns /usr/lib/libEGL.so

Now, the wiki suggests that I rename the file and re-issue the update command. I have some questions here:

a) Rename the file to what exactly? Whatever?
b) Doesn't this cause any problem?
c) If this is what I should do, do I need to do it explicitly for each one of the files listed above?


"I never expected hell to have so much light." -- Miltos Sachtouris

Offline

#6 2015-12-24 07:36:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

a) Doesn't matter, it's just to get it out of the way
b) It shouldn't, as long as you aren't trying to do other things in the middle of this
c) Yes, for each file listed, or use --force to tell pacman to overwrite them.

Offline

#7 2015-12-24 07:54:35

nullgeppetto
Member
Registered: 2015-09-23
Posts: 26

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

Scimmia wrote:

a) Doesn't matter, it's just to get it out of the way
b) It shouldn't, as long as you aren't trying to do other things in the middle of this
c) Yes, for each file listed, or use --force to tell pacman to overwrite them.


Many thanks for your help, Scimmia. It did work!
So for the record, I renamed each one the files in the list, for instance as

sudo mv /usr/lib/libEGL.so /usr/lib/libEGL.so_bkp

Then, I just updated as

sudo pacman -Syu

and the problem was gone!


"I never expected hell to have so much light." -- Miltos Sachtouris

Offline

#8 2015-12-24 07:56:51

tyrannis
Member
Registered: 2015-11-06
Posts: 94

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

Please edit the original post and add [SOLVED] to the beginning of the title so others can benefit from the knowledge as well.

Offline

#9 2015-12-24 08:01:52

nullgeppetto
Member
Registered: 2015-09-23
Posts: 26

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

tyrannis wrote:

Please edit the original post and add [SOLVED] to the beginning of the title so others can benefit from the knowledge as well.

Sure, but it seems that I can add just two additional characters... Is there really such a limitation on the number of characters?


"I never expected hell to have so much light." -- Miltos Sachtouris

Offline

#10 2015-12-24 08:13:26

tyrannis
Member
Registered: 2015-11-06
Posts: 94

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

nullgeppetto wrote:

Sure, but it seems that I can add just two additional characters... Is there really such a limitation on the number of characters?


Apparently there is (I tested my topic to be sure).  I'll ask in the section of the forum dedicated to forum issues.

Offline

#11 2015-12-24 08:18:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

nullgeppetto wrote:

Sure, but it seems that I can add just two additional characters... Is there really such a limitation on the number of characters?

Yes. Just remove some of the extraneous stuff in your current title ("Problem with upgrading", for example).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2015-12-24 08:19:45

nullgeppetto
Member
Registered: 2015-09-23
Posts: 26

Re: [SOLVED] Problem with pacman (error: failed to commit transaction )

jasonwryan wrote:
nullgeppetto wrote:

Sure, but it seems that I can add just two additional characters... Is there really such a limitation on the number of characters?

Yes. Just remove some of the extraneous stuff in your current title ("Problem with upgrading", for example).

Done! Thanks!


"I never expected hell to have so much light." -- Miltos Sachtouris

Offline

Board footer

Powered by FluxBB