You are not logged in.

#1 2024-11-17 10:07:30

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 702

"Missing files" of some packages

I'm not sure if it's relevant, as everything seems to be working fine on my system, but reinstalling those packages didn't change output of the command

LC_ALL=C.UTF-8 pacman -Qk 2>/dev/null | grep -v ' 0 missing files'
audit: 233 total files, 10 missing files
bind: 338 total files, 3 missing files
cups: 946 total files, 2 missing files
mcontrolcenter-git: 27 total files, 1 missing file
nfs-utils: 128 total files, 3 missing files

Should I worry?


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#2 2024-11-17 10:57:21

ayekat
Member
Registered: 2011-01-17
Posts: 1,611

Re: "Missing files" of some packages

What's the output of `pacman -Qkk audit` for example?


pkgshackscfgblag

Offline

#3 2024-11-17 11:01:59

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 702

Re: "Missing files" of some packages

Here it is

LC_ALL=C.UTF-8 sudo pacman -Qkk audit
audit: 233 total files, 0 altered files

Last edited by Zibi1981 (2024-11-17 11:02:12)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#4 2024-11-17 11:04:21

mpan
Member
Registered: 2012-08-01
Posts: 1,332
Website

Re: "Missing files" of some packages

Zibi1981, is there a reason for that `2>/dev/null` fragment in your invocation? Remove that and you’ll learn what files are “missing”. Or alternatively run the command with sudo. :)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2024-11-17 11:41:45

ayekat
Member
Registered: 2011-01-17
Posts: 1,611

Re: "Missing files" of some packages

Ah yes, if I run your first command as normal user, I also see the missing files. That's because pacman is unable to check all files due to missing permissions.

Consequently your second command (pacman -Qkk) without root would also show you which files it cannot access.


pkgshackscfgblag

Offline

#6 2024-11-17 13:29:00

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 702

Re: "Missing files" of some packages

The command is from the Arch wiki regarding pacman.

LC_ALL=C.UTF-8 sudo pacman -Qk | grep -v ' 0 missing files'
[sudo] password for cardiozibi: 
warning: cronie: /var/spool/anacron/ (No such file or directory)
warning: cronie: /var/spool/cron/ (No such file or directory)
warning: cups: /var/log/cups/ (No such file or directory)
cronie: 49 total files, 2 missing files
cups: 946 total files, 1 missing file
warning: filesystem: /var/log/old/ (No such file or directory)
warning: filesystem: /var/spool/mail/ (No such file or directory)
filesystem: 124 total files, 2 missing files
warning: gssproxy: /var/log/gssproxy/ (No such file or directory)
gssproxy: 38 total files, 1 missing file
warning: plymouth: /var/spool/plymouth/ (No such file or directory)
plymouth: 496 total files, 1 missing file
warning: samba: /var/log/samba/ (No such file or directory)
warning: samba: /var/spool/samba/ (No such file or directory)
samba: 1093 total files, 2 missing files
warning: systemd: /var/log/journal/ (No such file or directory)
systemd: 1546 total files, 1 missing file

"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#7 2024-11-17 15:03:05

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: "Missing files" of some packages

So there's a bunch of log and a spooler path missing, that's probably a delierate effort because you're using some tmpfs location or disabled the logs or so?

Offline

#8 2024-11-17 15:19:26

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 702

Re: "Missing files" of some packages

Yes, I use tmpfs. Do you think this is the cause?


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#9 2024-11-17 15:21:26

seth
Member
Registered: 2012-09-03
Posts: 58,659

Re: "Missing files" of some packages

If you moved/removed the log locations somewhere else and deleted the original paths? Sure.

Offline

#10 2024-11-17 15:30:00

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 702

Re: "Missing files" of some packages

OK. For now everything seems to be working fine. I've checked this with the command above, because after one of the recent updates (which included systemd if I'm correct) something happened to my Ext4 main partition, and I had to repair it with LiveOS and regenerate /etc/fstab.


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#11 2024-11-17 15:33:46

mpan
Member
Registered: 2012-08-01
Posts: 1,332
Website

Re: "Missing files" of some packages

Zibi1981 wrote:

The command is from the Arch wiki regarding pacman.

Was it taken from pacman: Reinstall broken or out-of-sync packages (previous version)? If yes, it was indeed a mistake. Already fixed. If it was taken from another article, please link it. Thanks.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#12 2024-11-17 16:03:32

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 702

Re: "Missing files" of some packages

mpan wrote:

Was it taken from pacman: Reinstall broken or out-of-sync packages (previous version)? If yes, it was indeed a mistake. Already fixed. If it was taken from another article, please link it. Thanks.

Yes, I've taken this command from that wiki entry. Where was the mistake? Lack of "sudo"/"#".

Last edited by Zibi1981 (2024-11-17 16:06:27)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#13 2024-11-18 00:03:43

mpan
Member
Registered: 2012-08-01
Posts: 1,332
Website

Re: "Missing files" of some packages

Yes. It requires root privileges to achieve the desired result.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#14 2024-11-18 09:59:53

mountaintrek
Member
Registered: 2024-02-01
Posts: 36

Re: "Missing files" of some packages

See which packages have non-zero "missing files". Results are different when using sudo.

pacman -Qk 2>/dev/null | less -p  '[^0] missing'

sudo pacman -Qk 2>/dev/null | less -p  '[^0] missing'

NOTE: in nano, just keep clicking "n" to see the next match.

Given a package, find files that are "missing". If not run as root, the results should match the first command (without sudo).

pkg=cups; while read -r w f; do [[ ! -e $f ]] &&  printf -- '%s\n' "$f" ;done < <(pacman -Ql $pkg )
pkg=bind; while read -r w f; do [[ ! -e $f ]] &&  printf -- '%s\n' "$f" ;done < <(pacman -Ql $pkg )

NOTE: Not as root/sudo, "Permission denied".

Last edited by mountaintrek (2024-11-18 10:00:37)

Offline

Board footer

Powered by FluxBB