You are not logged in.

#1 2022-02-20 06:02:43

c137
Member
Registered: 2022-02-15
Posts: 19

pacman -Syyu failed to commit transaction(conflicting files) [solved]

I try to update the system using pacman, but I get an error when committing. I have never compiled and installed xorg-server manually.

Looking forward to any suggestions, thanks.

Packages (3) 11bmwau-0.3.21-2 xorg-server-21.1.3-6 xorg-server-common-21.1.3-6
Total Installed Size:
10.93 MIB
Net Upgrade Size:
-55.96 MIB
:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring
(3/3) checking package integrity
100%
100Z
(3/3) loading package files
(3/3) checking for file conflicts
100%
error:failed to commit transaction (conflicting files)
100%
xorg-server-common: /usr/lib/xorg/protocol.txt exists in filesystem
xorg-server-common:/usr/share/licenses/xorg-server-common/COPYING exists in filesystem
xorg-server-common:/usr/share/man/man1/Xserver.1.gz exists in filesystem
xorg-sarver-common: /var/14b/xkb/READNE.cOmpl1ed exlsts In filesustem
xorg-server: /usr/bin/X exists in fllesystem
xorg-server: /usr/bin/Xorg exists in filesystem
xorg-server:/usr/bin/gtf exists in filesystem
xorg-server: /usr/lib/Xorg exists in filesystem
xorg-server: /usr/lib/Xorg,wrap exists in fllesystem
xorg-server:/usr/lib/xorg/modules/drivers/modesetting_drv.so exists in filesystem
xorg-server:/usr/lib/xorg/modules/extensions/libglx.so exists in filesystem
xorg-server:/usr/lib/xorg/modules/input/inputtest_drv.so exists in filesystem
xorg-server: /usr/lib/xorg/modules/libexa.so exists in filesystem
xorg-server:/usr/lib/xorg/modules/libfbdevhw.so exists in filesystem
xorg-server:/usr/lib/xorg/modules/libglamoregl.so exists in fllesystem
xorg-server:/usr/lib/xorg/modules/libint10.so exists in filesystem
xorg-server:/usr/lib/xorg/modules/libshadow.so exists in filesystem
xorg-server:/usr/lib/xorg/modules/libshadowfb.so exists in filesystem
xorg-server:/usr/lib/xorg/modules/libvgahw.so exists in filesystem
xorg-server:/usr/lib/xorg/modules/libwfb.so exists in filesystem
xorg-server:/usr/share/X11/xorg.conf.d/10-quirks.conf exists in filesystem
xorg-server:/usr/share/licenses/xorg-server/COPYING exists in filesystem
xorg-server: /usr/share/man/man1/Xorg.1.gz exists in filesystem
xorg-server:/usr/share/man/man1/Xorg.wrap.1.gz exists in filesystem
xorg-server:/usr/share/man/man1/gtf.1.gz exists in filesystem
xorg-server:/usr/share/man/man4/exa.4.gz exists in filesystem
xorg-server:/usr/share/man/man4/fbdevhw.4.gz exists in filesystem
xorg-server:/usr/share/man/man4/inputtestdrv.4.gz exists in filesystem
xorg-server:/usr/share/man/man4/modesetting.4.gz exists in filesystem
xorg-server:/usr/share/man/man5/Xurapper.config.5.gz exists in filesystem
xorg-server:/usr/share/man/man5/xorg.conf.5.gz exists in filesystem
xorg-server:/usr/share/man/man5/xorg.conf.d.5.gz exists in filesystem
Errors occurred. no packages were upgraded.

Last edited by c137 (2022-02-21 02:44:35)

Offline

#2 2022-02-20 06:17:29

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

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

Did you read this yet?

Offline

#3 2022-02-20 06:18:58

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

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

Any particular reason why you are using -Syyu?

Offline

#4 2022-02-20 06:29:17

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

skunktrader wrote:

Did you read this yet?


Yes, I read it. But I never compile and install xorg-sever manually

Last edited by c137 (2022-02-20 06:30:44)

Offline

#5 2022-02-20 06:36:05

loqs
Member
Registered: 2014-03-06
Posts: 18,828

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

Please post the output of the following

# pacman -Qkk 2>&1 | grep -Fv '0 altered files'

See pastebin so you do not have to copy the output by hand producing transliteration errors such as

xorg-sarver-common: /var/14b/xkb/READNE.cOmpl1ed exlsts In filesustem

Please also use code tags for commands and their outputs.

Offline

#6 2022-02-20 07:46:37

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

loqs wrote:

Please post the output of the following

# pacman -Qkk 2>&1 | grep -Fv '0 altered files'

See pastebin so you do not have to copy the output by hand producing transliteration errors such as

xorg-sarver-common: /var/14b/xkb/READNE.cOmpl1ed exlsts In filesustem

Please also use code tags for commands and their outputs.

Thank you for your reply.Below is the ouput url

http://ix.io/3Q7J

Offline

#7 2022-02-20 07:55:51

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,850

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

No it's not…
http://ix.io/3Q7N - ftfy

Edit: there're still some bogus lines "ed files" in there.
Please provide the actual, unedited output.

Edit #2:

error: error while reading file /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree: Unrecognized archive format
stat /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
file /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
head -c1kB /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree

Last edited by seth (2022-02-20 08:06:24)

Offline

#8 2022-02-20 08:32:58

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

seth wrote:

No it's not…
http://ix.io/3Q7N - ftfy

Edit: there're still some bogus lines "ed files" in there.
Please provide the actual, unedited output.

Edit #2:

error: error while reading file /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree: Unrecognized archive format
stat /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
file /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
head -c1kB /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
pacman -Qkk 2>&1 | grep -F -v  '0 altered files'

http://ix.io/3Q7V

Offline

#9 2022-02-20 08:42:25

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

seth wrote:

No it's not…
http://ix.io/3Q7N - ftfy

Edit: there're still some bogus lines "ed files" in there.
Please provide the actual, unedited output.

Edit #2:

error: error while reading file /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree: Unrecognized archive format
stat /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
file /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
head -c1kB /var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
[bjl@c137 1$ stat /var/lib/pacman/local/xorg-server-common-21.1.3-5/ntree
File:/var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree
Size:0
Blocks: 0
10 Block: 4096
regular empty file
Device:0.28
Inode:3124919
Links: 1
Access:(0644/-rw-r--r--) Uid: (
0/
root)
Gid:(
0/
root)
Access:2022-02-20 23:28:54.815720707 +0800
Modify:2022-02-19 19:28:02.000000000 +0800
Change:2022-02-20 00:37:05.677154819 +0800
Birth:2022-02-20 00:37:05.677154819 +0800
[bjl@c137^]$ file /var/lib/pacman/local/xorg-server-common-21.1.3-5/ntree
/var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree:empty
[bjl@c137~1$ head -c1kB /var/lib/pacman/local/xorg-server-common-21.1.3-5/ntree

Last edited by c137 (2022-02-20 08:43:28)

Offline

#10 2022-02-20 09:00:02

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,850

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

c137 wrote:

stat /var/lib/pacman/local/xorg-server-common-21.1.3-5/ntree
File:/var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree

Stop transcripting stuff, it's useless effort and introduces errors.
The exactl same bogus lines are still in the supposed pacman output - it might be a straight up copy-and-fail of the stripped down version I posted.

You need to re-install all packages w/ broken mtrees using "--dbonly" and then it looks like you installed a bunch of python packages using a global PIP setup?
Remove those packages from pip and re-install the pacman packages.

Also output of

/etc/arch-release

?

Offline

#11 2022-02-20 09:15:35

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

seth wrote:
c137 wrote:

stat /var/lib/pacman/local/xorg-server-common-21.1.3-5/ntree
File:/var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree

Stop transcripting stuff, it's useless effort and introduces errors.
The exactl same bogus lines are still in the supposed pacman output - it might be a straight up copy-and-fail of the stripped down version I posted.

You need to re-install all packages w/ broken mtrees using "--dbonly" and then it looks like you installed a bunch of python packages using a global PIP setup?
Remove those packages from pip and re-install the pacman packages.

Also output of

/etc/arch-release

?

cat /etc/arch-release
Arch Linux release

Offline

#12 2022-02-20 10:31:12

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

seth wrote:
c137 wrote:

stat /var/lib/pacman/local/xorg-server-common-21.1.3-5/ntree
File:/var/lib/pacman/local/xorg-server-common-21.1.3-5/mtree

Stop transcripting stuff, it's useless effort and introduces errors.
The exactl same bogus lines are still in the supposed pacman output - it might be a straight up copy-and-fail of the stripped down version I posted.

You need to re-install all packages w/ broken mtrees using "--dbonly" and then it looks like you installed a bunch of python packages using a global PIP setup?
Remove those packages from pip and re-install the pacman packages.

Also output of

/etc/arch-release

?

I can't connect to xserver when the first time
So I tried to update the system and found the problem that the pacman transaction could not be committed

I reinstalled the pacman packages as you said and now I can connect to the xserver
However, I didn't reinstall pip packages, does this matter?

Offline

#13 2022-02-20 12:54:31

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,850

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

You probably still have a bunch of conflicting PIP packages around, see https://wiki.archlinux.org/title/Python … management and https://wiki.archlinux.org/title/Python … nvironment to clean that up and avoid future update conflicts.

Also don't use "-yy" unless you know why and have to. There's a good chance that you broke the database this way.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#14 2022-02-21 02:55:12

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

seth wrote:

You probably still have a bunch of conflicting PIP packages around, see https://wiki.archlinux.org/title/Python … management and https://wiki.archlinux.org/title/Python … nvironment to clean that up and avoid future update conflicts.

Also don't use "-yy" unless you know why and have to. There's a good chance that you broke the database this way.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

I read the relevant wiki.


https://wiki.archlinux.org/title/Pacman … 6%E5%8C%85
https://wiki.archlinux.org/title/System … B%E7%BB%9F

Thanks a million big_smile

Offline

#15 2022-02-21 03:20:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

skunktrader wrote:

Any particular reason why you are using -Syyu?

Did I miss the answer to this?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#16 2022-02-21 06:36:44

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

ewaller wrote:
skunktrader wrote:

Any particular reason why you are using -Syyu?

Did I miss the answer to this?


Based on some unofficial tutorials

Offline

#17 2022-02-21 16:54:54

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 338

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

Shame on you wink

I see you joined less than a week ago, so welcome to the forum smile

Just for your info, while upgrading Arch is fairly easy, as with most things a little wiki-reading is always useful.

The problem with -Syyu is that you force a refresh of the package database, and unless your current mirror is the most up to date mirror you have used, there's a risk that you downgrade some packages when you update - and you can get in a situation with partial upgrades, as discussed in the link above.

There are situations where a double-y is called for, but they are concerning fixing a corrupt package database.

I'd recommend using reflector to keep your mirror list updated, and using

sudo pacman -Syu

when you upgrade.

Take it easy, and read a lot, and you'll find Arch is a breath of fresh air smile

Offline

#18 2022-02-22 02:27:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

Everything Ferdinand said, especially welcome to the forums.

Also, the double-y is less than considerate of the limited server resources provided free of charge.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#19 2022-02-25 01:12:54

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

Ferdinand wrote:

Shame on you wink

I see you joined less than a week ago, so welcome to the forum smile

Just for your info, while upgrading Arch is fairly easy, as with most things a little wiki-reading is always useful.

The problem with -Syyu is that you force a refresh of the package database, and unless your current mirror is the most up to date mirror you have used, there's a risk that you downgrade some packages when you update - and you can get in a situation with partial upgrades, as discussed in the link above.

There are situations where a double-y is called for, but they are concerning fixing a corrupt package database.

I'd recommend using reflector to keep your mirror list updated, and using

sudo pacman -Syu

when you upgrade.

Take it easy, and read a lot, and you'll find Arch is a breath of fresh air smile

I found the archlinux wiki and forums really cool

Thanks to contributors. AGAIN!!!

I did use reflector before and it worked fine

Offline

#20 2022-02-25 01:21:11

c137
Member
Registered: 2022-02-15
Posts: 19

Re: pacman -Syyu failed to commit transaction(conflicting files) [solved]

ewaller wrote:

Everything Ferdinand said, especially welcome to the forums.

Also, the double-y is less than considerate of the limited server resources provided free of charge.

Although I am a layman, for archlinux or linux

It doesn't matter, I find a lot of fun in it smile

Offline

Board footer

Powered by FluxBB