Permissions, UID and GID mismatches: how to solve it?

After having updated my system yesterday, I have launched (thanks to @jlohr):
grep -A1 "warning" /var/log/pacman.log
and I have found:

[2018-12-31 19:15] [ALPM] warning: directory permissions differ on /usr/share/polkit-1/rules.d/
filesystem: 750  package: 755

and

[2020-07-02T15:24:09+0200] [ALPM] warning: directory permissions differ on /usr/share/hplip/base/pexpect/__pycache__/
filesystem: 777  package: 755
[2020-07-02T15:24:09+0200] [ALPM] warning: directory permissions differ on /usr/share/hplip/installer/__pycache__/
filesystem: 777  package: 755
[2020-07-02T15:24:09+0200] [ALPM] warning: directory permissions differ on /usr/share/hplip/prnt/__pycache__/
filesystem: 777  package: 755

After having checked that the permissions are still the one written in the warning message (especially for the old warning for /polkit-1/rules.d/) I have launched:

and

 sudo chmod 755 /usr/share/polkit-1/rules.d/

Then @papajoke nicely gave me the following advice (thanks, by the way, for your answer):


and I found thousand of error lines with sudo pacman -Qkk 1>/dev/null seeing that the permission problem with hplip (more than 800 warning lines) and /usr/share/polkit-1/rules.d is not solved. I cannot paste all the lines here, my forum post will be too big. So I summarise them below:

sudo pacman -Qkk 1>/dev/null

I have deleted more than 1000 warning lines for diogenes (there are UID and GID mismatches and just one permission mismatch, see below) and more than 800 warning lines for hplip (all them are permissions mitmaches):

$ sudo pacman -Qkk 1>/dev/null
warning: blueman: /usr/share/polkit-1/rules.d (Permissions mismatch)
warning: brother-dcp195c: /opt/brother/Printers/dcp195c/inf/brdcp195crc (Permissions mismatch)
warning: brother-dcp195c: /opt/brother/Printers/dcp195c/inf/brdcp195crc (Modification time mismatch)
warning: brother-dcp195c: /opt/brother/Printers/dcp195c/inf/brdcp195crc (Size mismatch)
warning: cups: /etc/cups/classes.conf (Permissions mismatch)
warning: cups: /etc/cups/printers.conf (Permissions mismatch)
warning: cups: /etc/cups/subscriptions.conf (Permissions mismatch)
warning: diogenes: /var/lib/pacman/local/diogenes-4.3-1/install (UID mismatch)
warning: diogenes: /var/lib/pacman/local/diogenes-4.3-1/install (GID mismatch)
warning: diogenes: /usr (UID mismatch)
warning: diogenes: /usr (GID mismatch)
warning: diogenes: /usr/local (UID mismatch)
warning: diogenes: /usr/local (GID mismatch)
warning: diogenes: /usr/local/diogenes (UID mismatch)
warning: diogenes: /usr/local/diogenes (GID mismatch)
warning: diogenes: /usr/local/diogenes/COPYING (UID mismatch)
warning: diogenes: /usr/local/diogenes/COPYING (GID mismatch)
warning: diogenes: /usr/local/diogenes/LICENSE (UID mismatch)
warning: diogenes: /usr/local/diogenes/LICENSE (GID mismatch)
warning: diogenes: /usr/local/diogenes/LICENSES.chromium.html (UID mismatch)
warning: diogenes: /usr/local/diogenes/LICENSES.chromium.html (GID mismatch)
warning: diogenes: /usr/local/diogenes/README.md (UID mismatch)
warning: diogenes: /usr/local/diogenes/README.md (GID mismatch)
warning: diogenes: /usr/local/diogenes/chrome-sandbox (UID mismatch)
warning: diogenes: /usr/local/diogenes/chrome-sandbox (GID mismatch)
warning: diogenes: /usr/local/diogenes/chrome-sandbox (Permissions mismatch)
warning: diogenes: /usr/share (UID mismatch)
warning: diogenes: /usr/share (GID mismatch)
warning: diogenes: /usr/share/applications (UID mismatch)
warning: diogenes: /usr/share/applications (GID mismatch)
warning: diogenes: /usr/share/applications/diogenes.desktop (UID mismatch)
warning: diogenes: /usr/share/applications/diogenes.desktop (GID mismatch)
warning: diogenes: /usr/share/icons (UID mismatch)
warning: diogenes: /usr/share/icons (GID mismatch)
warning: diogenes: /usr/share/icons/diogenes.svg (UID mismatch)
warning: diogenes: /usr/share/icons/diogenes.svg (GID mismatch)
warning: firefox: /usr/lib/firefox/distribution/distribution.ini (Modification time mismatch)
warning: firefox: /usr/lib/firefox/distribution/distribution.ini (Size mismatch)
warning: grub: /boot/grub/grub.cfg (Permissions mismatch)
warning: gvfs: /usr/share/polkit-1/rules.d (Permissions mismatch)
warning: hplip: /usr/share/hplip/check-plugin.py (Permissions mismatch)
warning: hplip: /usr/share/hplip/hplip_clean.sh (Permissions mismatch)
warning: hplip: /usr/share/hplip/__pycache__/__init__.cpython-38.opt-1.pyc (Permissions mismatch)
warning: hplip: /usr/share/hplip/__pycache__/__init__.cpython-38.pyc (Permissions mismatch)
warning: hplip: /usr/share/hplip/__pycache__/align.cpython-38.opt-1.pyc (Permissions mismatch)
warning: hplip: /usr/share/hplip/__pycache__/align.cpython-38.pyc (Permissions mismatch)
warning: hplip: /usr/share/hplip/__pycache__/check-plugin.cpython-38.opt-1.pyc (Permissions mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Modification time mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Modification time mismatch)
warning: lightdm: /usr/share/polkit-1/rules.d (Permissions mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.alias (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.alias (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.alias.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.alias.bin (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.builtin.alias.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.builtin.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.dep (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.dep (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.dep.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.dep.bin (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.devname (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.softdep (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.symbols (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.symbols (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.symbols.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.symbols.bin (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.alias (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.alias (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.alias.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.alias.bin (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.builtin.alias.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.builtin.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.dep (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.dep (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.dep.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.dep.bin (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.devname (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.softdep (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.symbols (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.symbols (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.symbols.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.symbols.bin (Size mismatch)
warning: pacman-mirrors: /usr/share/pacman-mirrors/mirrors.json (Modification time mismatch)
warning: pacman-mirrors: /usr/share/pacman-mirrors/mirrors.json (Size mismatch)
warning: polkit: /usr/share/polkit-1/rules.d (Permissions mismatch)
warning: shadow: /usr/bin/newgidmap (Permissions mismatch)
warning: shadow: /usr/bin/newuidmap (Permissions mismatch)
warning: systemd: /usr/share/polkit-1/rules.d (Permissions mismatch)
warning: thunderbird: /usr/lib/thunderbird/distribution/distribution.ini (Modification time mismatch)
warning: thunderbird: /usr/lib/thunderbird/distribution/distribution.ini (Size mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Modification time mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Size mismatch)

I have not understood what sudo pacrepairfile /var/log/pacman.log will mean and that is why I have not launched it.
Furthermore, I am wondering if I can solve the hplip lines by launching the second propres command line by @linux-aarhus namely:

I am quite a bit lot with all these warning lines I was not aware of... I have no idea how important it is to solve for my system.

Thanks a lot in advance for your help and apologies for this very long post...

If this can be somehow useful for the resolution:

inxi -Fxzc0 --no-host
System:
  Kernel: 4.19.126-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 
  Desktop: Xfce 4.14.2 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Notebook product: N650DU v: N/A serial: <filter> 
  Mobo: Notebook model: N650DU serial: <filter> UEFI: American Megatrends 
  v: 5.12 date: 02/26/2018 
Battery:
  ID-1: BAT0 charge: 50.4 Wh condition: 50.4/62.2 Wh (81%) 
  model: Notebook BAT status: Full 
CPU:
  Topology: Quad Core model: Intel Core i5-7500T bits: 64 type: MCP 
  arch: Kaby Lake rev: 9 L2 cache: 6144 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 21696 
  Speed: 1600 MHz min/max: 800/3300 MHz Core speeds (MHz): 1: 1600 2: 1600 
  3: 1600 4: 1600 
Graphics:
  Device-1: Intel HD Graphics 630 vendor: CLEVO/KAPOK driver: i915 v: kernel 
  bus ID: 00:02.0 
  Display: x11 server: X.org 1.20.8 driver: intel unloaded: modesetting 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 20.0.7 
  direct render: Yes 
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: CLEVO/KAPOK 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k4.19.126-1-MANJARO 
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: f040 
  bus ID: 01:00.0 
  IF: wlp1s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: CLEVO/KAPOK driver: r8168 v: 8.048.03-NAPI port: e000 
  bus ID: 05:00.0 
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 1.14 TiB used: 574.03 GiB (49.3%) 
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 960 EVO 250GB 
  size: 232.89 GiB 
  ID-2: /dev/sda vendor: Seagate model: ST1000LM048-2E7172 size: 931.51 GiB 
Partition:
  ID-1: / size: 227.24 GiB used: 34.57 GiB (15.2%) fs: ext4 
  dev: /dev/nvme0n1p2 
  ID-2: /home size: 911.95 GiB used: 539.45 GiB (59.2%) fs: ext4 
  dev: /dev/sda2 
Sensors:
  System Temperatures: cpu: 68.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 193 Uptime: 4h 36m Memory: 7.71 GiB used: 4.87 GiB (63.2%) 
  Init: systemd Compilers: gcc: 10.1.0 Shell: bash v: 5.0.17 inxi: 3.0.37

diogenes for example

sudo pacrepairfile /usr/local/diogenes/*

cups

 sudo pacrepairfile /usr/local/cups/*

but is not a recursive function (not repair sub-directories) :sob:


For repair all (long process) not nice

find / -not -path "/home/*" | sudo pacrepairfile --uid --gid --mode
  • find all files and directories in system except in /home
  • find package for this file
  • repair permissions user,group and access rules if file/directory is in a package

Or best (speed)

sudo LANG=C pacman -Qkk 2>&1| awk '/^warning.* mismatch/ {print $3}'| sudo pacrepairfile --uid --gid --mode

repair only permissions files with warning "mismatch"

2 Likes

Thanks a lot @papajoke for your long and well explicated answer!!

So if I have now understood correctly, launching only this last command line will solve all my mismatches problem, won't it?
It would be nice if someone could confirm it to me. If not, I will try and hope that it won't destroy everything...
Thanks a lot again!

1 Like

why ? is a official archlinux package, not a aur script :wink:
this command run good chmod and chown from your packages permissions

example output:

/usr/bin/pamac: set uid to 0
/usr/bin/pamac: set gid to 0
/usr/bin/pamac: set permissions to 755
/usr/share/polkit-1/actions/org.manjaro.pamac.policy: set uid to 0
/usr/share/polkit-1/actions/org.manjaro.pamac.policy: set gid to 0
/usr/share/polkit-1/actions/org.manjaro.pamac.policy: set permissions to 644
/usr/share/vala/vapi/pamac-gtk.vapi: set uid to 0
/usr/share/vala/vapi/pamac-gtk.vapi: set gid to 0
/usr/share/vala/vapi/pamac-gtk.vapi: set permissions to 644

as sudo chown root:root /usr/share/vala/vapi/pamac-gtk.vapi
as sudo chmod 644 /usr/share/vala/vapi/pamac-gtk.vapi

1 Like

Since I am living "dangerously", I have launched as @papajoke nicely recommended

For example, I can give the first of the more than 6000 lines that appeared:

sudo LANG=C pacman -Qkk 2>&1| awk '/^warning.* mismatch/ {print $3}'| sudo pacrepairfile --uid --gid --mode
sudo LANG=C pacman -Qkk 2>&1| awk '/^warning.* mismatch/ {print $3}'| sudo pacrepairfile --uid --gid --mode
/usr/share/polkit-1/rules.d: set uid to 0
/usr/share/polkit-1/rules.d: set gid to 102
/usr/share/polkit-1/rules.d: set permissions to 750
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set uid to 0
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set gid to 0
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set permissions to 644
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set uid to 0
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set gid to 0
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set permissions to 644
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set uid to 0
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set gid to 0
/opt/brother/Printers/dcp195c/inf/brdcp195crc: set permissions to 644
/etc/cups/printers.conf: set uid to 0
/etc/cups/printers.conf: set gid to 209
/etc/cups/printers.conf: set permissions to 644
/etc/cups/subscriptions.conf: set uid to 0
/etc/cups/subscriptions.conf: set gid to 209
/etc/cups/subscriptions.conf: set permissions to 644

Among these lines, I had some error messages (always written twice). Below you can find all of them (with the second lines erased in order to avoid unnecessary repetitions):

error: /var/lib/pacman/local/diogenes-4.3-1/install: could not find package
error: /usr/local/diogenes/dependencies/CPAN/CGI: could not find package
error: /usr/local/diogenes/dependencies/CPAN/HTTP/Headers: could not find package
error: /usr/local/diogenes/dependencies/CPAN/LWP/Protocol: could not find package
error: /usr/local/diogenes/dependencies/CPAN/URI/file: could not find package
error: /usr/local/diogenes/dependencies/CPAN/URI/urn: could not find package
error: /usr/local/diogenes/resources: could not find package
error: /usr/local/diogenes/resources/inspector/audits2_worker: could not find package
error: /usr/local/diogenes/server/Diogenes: could not find package

I have checked and I could find /var/lib/pacman/local/diogenes-4.3-1/install which is an installation instruction file.
The eight others listed are directories. Can I repair that by launching the following lines?

sudo pacrepairfile /var/lib/pacman/local/diogenes-4.3-1/*
sudo pacrepairfile /usr/local/diogenes/dependencies/CPAN/*
sudo pacrepairfile /usr/local/diogenes/*
sudo pacrepairfile /usr/local/diogenes/resources/inspector/*
sudo pacrepairfile /usr/local/diogenes/server/*

Or should I use chmod instead of that?

Without having rebooted my computer (just in case that there will be a problem), I have launched once again:

sudo pacman -Qkk 1>/dev/null
sudo pacman -Qkk 1>/dev/null
warning: brother-dcp195c: /opt/brother/Printers/dcp195c/inf/brdcp195crc (Modification time mismatch)
warning: brother-dcp195c: /opt/brother/Printers/dcp195c/inf/brdcp195crc (Size mismatch)
warning: cups: /etc/cups/classes.conf (Permissions mismatch)
warning: diogenes: /var/lib/pacman/local/diogenes-4.3-1/install (UID mismatch)
warning: diogenes: /var/lib/pacman/local/diogenes-4.3-1/install (GID mismatch)
warning: diogenes: /usr (UID mismatch)
warning: diogenes: /usr (GID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/CGI (UID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/CGI (GID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/HTTP/Headers (UID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/HTTP/Headers (GID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/LWP/Protocol (UID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/LWP/Protocol (GID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/URI/file (UID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/URI/file (GID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/URI/urn (UID mismatch)
warning: diogenes: /usr/local/diogenes/dependencies/CPAN/URI/urn (GID mismatch)
warning: diogenes: /usr/local/diogenes/resources (UID mismatch)
warning: diogenes: /usr/local/diogenes/resources (GID mismatch)
warning: diogenes: /usr/local/diogenes/resources/inspector/audits2_worker (UID mismatch)
warning: diogenes: /usr/local/diogenes/resources/inspector/audits2_worker (GID mismatch)
warning: diogenes: /usr/local/diogenes/server/Diogenes (UID mismatch)
warning: diogenes: /usr/local/diogenes/server/Diogenes (GID mismatch)
warning: diogenes: /usr/share (UID mismatch)
warning: diogenes: /usr/share (GID mismatch)
warning: diogenes: /usr/share/applications (UID mismatch)
warning: diogenes: /usr/share/applications (GID mismatch)
warning: diogenes: /usr/share/icons (UID mismatch)
warning: diogenes: /usr/share/icons (GID mismatch)
warning: filesystem: /usr/local (UID mismatch)
warning: filesystem: /usr/local (GID mismatch)
warning: firefox: /usr/lib/firefox/distribution/distribution.ini (Modification time mismatch)
warning: firefox: /usr/lib/firefox/distribution/distribution.ini (Size mismatch)
warning: grub: /boot/grub/grub.cfg (Permissions mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Modification time mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.alias (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.alias (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.alias.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.alias.bin (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.builtin.alias.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.builtin.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.dep (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.dep (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.dep.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.dep.bin (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.devname (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.softdep (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.symbols (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.symbols (Size mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.symbols.bin (Modification time mismatch)
warning: linux414: /usr/lib/modules/4.14.183-1-MANJARO/modules.symbols.bin (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.alias (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.alias (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.alias.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.alias.bin (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.builtin.alias.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.builtin.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.dep (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.dep (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.dep.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.dep.bin (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.devname (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.softdep (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.symbols (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.symbols (Size mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.symbols.bin (Modification time mismatch)
warning: linux419: /usr/lib/modules/4.19.126-1-MANJARO/modules.symbols.bin (Size mismatch)
warning: pacman-mirrors: /usr/share/pacman-mirrors/mirrors.json (Modification time mismatch)
warning: pacman-mirrors: /usr/share/pacman-mirrors/mirrors.json (Size mismatch)
warning: shadow: /usr/bin/newgidmap (Permissions mismatch)
warning: thunderbird: /usr/lib/thunderbird/distribution/distribution.ini (Modification time mismatch)
warning: thunderbird: /usr/lib/thunderbird/distribution/distribution.ini (Size mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Modification time mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Size mismatch)

So it seems that some problems are still remaining or maybe they will disappear just by rebooting? Or could someone please tell how I can solve it ?

Thanks for answering once again @papajoke!! As a newbie, I have difficulties to know the risk that I can take by launching a command line and particularly as a root in the system file... That is why I am trying to understand what I am doing before to do it. This way, I am trying to learn peu à peu.
Thanks anyway in advance for your help!

edit: the writing of this post was begun before @papajoke's fourth post, that is why I have said that I am living dangerously. Nevertheless, the problem is still not solved. It would be nice if someone could help me. Thanks again!

I have now rebooted my computer and have tried to launch

but it does not solve the problem, I have error messages telling me that the packages could not be found. Could anyone please tell me how I can solve the following remaining mismatches?

Thanks a lot in advance!

I am no expert with regards to permissions mismatches, but to me it would seem the easiest way to correct the modules mismatches on the different kernels would be to uninstall then reinstall the affected kernels.

Be sure your mirrors are up to date first then reinstall each kernel with module permission errors. I would think that should fix things. Do not uninstall a kernel you are currently booted into.

For example boot into kernel 5.4. Uninstall kernels 4.14 & 4.19, then reboot into kernel 5.4. Once in kernel 5.4 reinstall kernels 4.14 & 4.19.

1 Like

Modification time and Size mismatch are never a problem

  • and normal in modules
  • normal in config files (.ini .conf ...) user/application can edit this files after install (as pamac-gtk change etc/pamac.conf content, so date and size change)

for diogenes, my code can't repair because you have a problem with this package "could not find package" ??? command pacrepairfile repair from package and here you have a problem with it ?
for me this package not exists in archlinux , manjaro and aur ...

2 Likes

You need to also redirect STDOUT, because sometimes lines can get mashed up and won't match regex.

sudo LANG=C pacman -Qkk 2>&1 1>/dev/null| awk '/^warning.* mismatch/ {print $3}'|sudo pacrepairfile --uid --gid --mode
2 Likes

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

Forum kindly sponsored by