You are not logged in.

#1 2023-02-19 05:40:53

arnuld
Member
From: INDIA
Registered: 2005-12-19
Posts: 212
Website

[SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

I tried a searching a bit on the forum but did not find a solution. pacman -Syu gives this:

kparts: /usr/share/locale/ug/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/uk/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/uz/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/uz@cyrillic/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/vi/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/wa/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/xh/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/zh_CN/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/zh_HK/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/locale/zh_TW/LC_MESSAGES/kparts5.mo exists in filesystem
kparts: /usr/share/qlogging-categories5/kparts.categories exists in filesystem
Errors occurred, no packages were upgraded.

Here is some information that I  I got from running commands I found in other posts. Any idea what to do next?

[arnuld@arch64 ~ ]$ pacman -Q kparts
error: package 'kparts' was not found. 

[arnuld@arch64 ~ ]$ pacman -Qo /usr/share/qlogging-categories5/kparts.categories
error: No package owns /usr/share/qlogging-categories5/kparts.categories

This package exist in Extra repo; https://archlinux.org/packages/extra/x86_64/kparts/

[arnuld@arch64 ~ ]$ stat /usr/share/qlogging-categories5/kparts.categories
  File: /usr/share/qlogging-categories5/kparts.categories
  Size: 146       	Blocks: 8          IO Block: 4096   regular file
Device: 8,3	Inode: 26125377    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-01-16 23:50:41.000000000 +0530
Modify: 2023-01-07 16:43:44.000000000 +0530
Change: 2023-01-16 23:50:41.005567619 +0530
 Birth: 2023-01-16 23:50:41.005567619 +0530
[arnuld@arch64 ~ ]$ 

Last edited by arnuld (2023-02-23 03:51:01)

Offline

#2 2023-02-19 07:29:31

seth
Member
Registered: 2012-09-03
Posts: 48,524

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

https://wiki.archlinux.org/title/Pacman … )%22_error

If there're more errors like this, you want to

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'

to make sure that there're not (further) corruptions in the pacman database.
Some deviances are completely normal, but if anything "mtree" related shows up, there're problems beyond those stale files.

Offline

#3 2023-02-22 15:51:04

arnuld
Member
From: INDIA
Registered: 2005-12-19
Posts: 212
Website

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

seth wrote:

https://wiki.archlinux.org/title/Pacman … )%22_error

If there're more errors like this, you want to

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'

to make sure that there're not (further) corruptions in the pacman database.
Some deviances are completely normal, but if anything "mtree" related shows up, there're problems beyond those stale files.


The output from that command spans thousands of lines but no word like "mtree" is there in those. Almost all of the output is made of such kind of lines:

java-runtime-common: 21 total files, 2 altered files
libutempter: 20 total files, 1 altered file
backup file: mkinitcpio: /etc/mkinitcpio.conf (Modification time mismatch)
backup file: mkinitcpio: /etc/mkinitcpio.conf (Size mismatch)
backup file: mkinitcpio: /etc/mkinitcpio.conf (MD5 checksum mismatch)
backup file: mkinitcpio: /etc/mkinitcpio.conf (SHA256 checksum mismatch)
backup file: pacman: /etc/makepkg.conf (Modification time mismatch)

What you suggest I do next: --overwrite?

Offline

#4 2023-02-22 16:04:22

seth
Member
Registered: 2012-09-03
Posts: 48,524

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

"thousands" is plenty, but eg. the mkinitcpio and libutempter deviation is common.
You'll have to assess this casewise (eg. it's obvious why the config files deviate: you edited them)

If there's no mtree errors, I'd leave it alone until problems arise (don't fix what's not broken)
Do NOT blindly "--overwrite '*'"!

Offline

#5 2023-02-22 16:32:09

arnuld
Member
From: INDIA
Registered: 2005-12-19
Posts: 212
Website

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

There is actually more than 200,000 lines of output. I can't check each and every one and then rename/move them. And I can't upgrade till I solve this.

[arnuld@arch64 ~ ]$ sudo LC_ALL=C pacman -Qkk &> debug.txt 
[arnuld@arch64 ~ ]$ grep -i mtree debug.txt 
[arnuld@arch64 ~ ]$ wc -l debug.txt 
209518 debug.txt

Last edited by arnuld (2023-02-22 16:33:04)

Offline

#6 2023-02-22 16:34:35

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

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

You missed piping it to grep

Offline

#7 2023-02-22 16:40:48

arnuld
Member
From: INDIA
Registered: 2005-12-19
Posts: 212
Website

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

Looks like most of the lines (207,000) belong to missing gnome icons/themes directories. I removed them manually sometime ago and hence harmless. Only 2015 lines are of concern now

Last edited by arnuld (2023-02-22 16:41:17)

Offline

#8 2023-02-22 16:47:38

seth
Member
Registered: 2012-09-03
Posts: 48,524

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

And I can't upgrade till I solve this.

You can install kparts w/ --overwrite '*' if that's the only problem.

Offline

#9 2023-02-23 03:50:30

arnuld
Member
From: INDIA
Registered: 2005-12-19
Posts: 212
Website

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

I used your command

pacman -S --overwrite '*' PACKAGE_NAME_HERE

Just now restarted the computer and everything is looking fine. Thanks for the solution.

Last edited by arnuld (2023-02-23 03:50:48)

Offline

#10 2023-02-23 07:54:06

seth
Member
Registered: 2012-09-03
Posts: 48,524

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

For future readers: this was ok for the kparts package.
Resolving file conflicts this way (w/ globbing) can shred your system configuration if you apply it to the wrong™ package, so to be safe, filter the offending files as narrow as you can.

Offline

#11 2023-02-23 13:33:02

arnuld
Member
From: INDIA
Registered: 2005-12-19
Posts: 212
Website

Re: [SOLVED] pacman -Syu fails --- kparts5.mo exists in filesystem

There were actually 3 packages:

  1. kparts

  2. python-tornado

  3. aom


UPDATE March 3, 2023:  I got the same problem again for today's pacman -Syu, for 2 packages:

  1. knotifyconfig

  2. xmlsec

Same solution: sudo pacman -S --overwrite '*' knotifyconfig xmlsec

Last edited by arnuld (2023-03-03 17:15:43)

Offline

Board footer

Powered by FluxBB