Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#39725 - [pacman] missing package files after upgrade

Attached to Project: Pacman
Opened by Rasmus Thystrup Karstensen (rathka) - Wednesday, 02 April 2014, 23:28 GMT
Last edited by Allan McRae (Allan) - Wednesday, 19 November 2014, 07:14 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

I have occasionally experienced that files from an upgraded package are missing from the filesystem.
Last time I ran into this problem, the files from the following packages was missing:

libsystemd
libutil-linux

which led to the my system failing to boot. I upgraded three x64 systems at roughly the same time, but only two of them had the issue. Re-installing the packages with missing files solves the problem.

To counter this, I now run this command after each update:
pacman -Ql | while read line; do [ -e "${line#*\ }" ] || echo ${line}; done

to ensure that no system libraries is missing. The above command currently finds some broken symlinks and missing license files on all of my x64 systems.

Steps to Reproduce:
I have run into this problem a couple of times, but have not been able to reproduce it after occurrence.
I guess reproducing it would require a snapshot of the system before upgrading (pacman -Suy), which I do not have the capacity for.

Suggestion:
Would it be possible to include the functionality from the command above, when running "pacman -Suy"? or is there a simple way of defining custom scripts to run after a system update?
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 19 November 2014, 07:14 GMT
Reason for closing:  Works for me
Comment by Andrew Gregory (andrewgregory) - Thursday, 03 April 2014, 00:35 GMT
If you're looking for missing files, that command will give several false-positives. Some packages include broken symlinks (I know firefox does) and, if you're not running it as root, some "missing" files just can't be seen by normal users due to permissions.
Comment by Allan McRae (Allan) - Thursday, 03 April 2014, 00:44 GMT
We have "pacman -Qqk" that will list missing files.

I'm more concerned about what is wrong with your system... Did you shut down properly?
Comment by Rasmus Thystrup Karstensen (rathka) - Thursday, 03 April 2014, 01:44 GMT
After the upgrade I issued a 'reboot' as root, so I would assume that it shut down properly.
Comment by Allan McRae (Allan) - Sunday, 20 April 2014, 15:07 GMT
Does "pacman -Qqk" show missing files?
Comment by Rasmus Thystrup Karstensen (rathka) - Monday, 21 April 2014, 21:53 GMT
Yes, "pacman -Qqk" does list the missing files.

On my last update (5 minutes ago) "pacman -Qqk" listed: "talloc /usr/lib/python2.7/site-packages/talloc.so"
reinstalling talloc solved the problem.

I have experienced missing files on a few occations since I reported the bug, but not with any system critical files.
Comment by Allan McRae (Allan) - Monday, 21 April 2014, 23:42 GMT
Can you run some hard-drive diagnostics?
Comment by Rasmus Thystrup Karstensen (rathka) - Tuesday, 22 April 2014, 21:01 GMT
I have smartd setup, and don't see any errors. any other suggestions to diagnostics tools?
Comment by Rasmus Thystrup Karstensen (rathka) - Wednesday, 30 April 2014, 14:28 GMT
I now experienced this behaviour on a new machine:
[root@Ennasus tmp]# pacman -Qqk
js17 /usr/lib/libmozjs-17.0.so
js17 /usr/lib/pkgconfig/mozjs-17.0.pc
libusbmuxd /usr/lib/libusbmuxd.so
libusbmuxd /usr/lib/pkgconfig/libusbmuxd.pc
talloc /usr/lib/python2.7/site-packages/talloc.so

reinstalling the packages resolved the problem
That's the third system I have confirmed this bahaviour on.
Comment by Allan McRae (Allan) - Sunday, 29 June 2014, 09:58 GMT
What filesystem do you use? Anything peculiar about your setup?

I'm finding this strange that one user sees it on three systems, but no-one else has reported it or can replicate.

Loading...