Broken symlinks

Ask questions about Arch Linux ARM. Please search before making a new topic.

Broken symlinks

Postby unformatted » Fri Aug 27, 2021 1:02 pm

I'm on a RPi4 with armv7 and LXDE installed. I'm following the system maintenance instructions on the arch wiki where I come to the "Broken symlinks" section. To quickly find broken symlinks I should do:

$this->bbcode_second_pass_code('', '
# find / -xtype l -print
')
but that tries to go into the /net directory where my NAS is mounted, so I excluded that by using:

$this->bbcode_second_pass_code('', '
# find / ! \( -path /net -prune \) -xtype l -print
')
Now I get the following output:

$this->bbcode_second_pass_code('', '
/etc/systemd/system/multi-user.target.wants/org.cups.cupsd.path
/etc/systemd/system/multi-user.target.wants/autofs.service
/etc/systemd/system/sockets.target.wants/org.cups.cupsd.socket
/etc/systemd/system/printer.target.wants/org.cups.cupsd.service
/home/user/.mozilla/firefox/6pgwn1ah.default/lock
/usr/lib/thunderbird/hyphenation
/usr/lib/thunderbird/dictionaries
/proc/2/task/2/exe
/proc/2/exe
/proc/3/task/3/exe
/proc/3/exe
/proc/4/task/4/exe
/proc/4/exe
/proc/8/task/8/exe
/proc/8/exe
/proc/9/task/9/exe
/proc/9/exe
/proc/10/task/10/exe
/proc/10/exe
/proc/11/task/11/exe
/proc/11/exe
/proc/12/task/12/exe
/proc/12/exe
/proc/13/task/13/exe
/proc/13/exe
/proc/14/task/14/exe
/proc/14/exe
/proc/15/task/15/exe
/proc/15/exe
/proc/16/task/16/exe
/proc/16/exe
/proc/19/task/19/exe
/proc/19/exe
/proc/20/task/20/exe
/proc/20/exe
/proc/21/task/21/exe
/proc/21/exe
/proc/24/task/24/exe
/proc/24/exe
/proc/25/task/25/exe
/proc/25/exe
/proc/26/task/26/exe
/proc/26/exe
/proc/29/task/29/exe
/proc/29/exe
/proc/30/task/30/exe
/proc/30/exe
/proc/35/task/35/exe
/proc/35/exe
/proc/36/task/36/exe
/proc/36/exe
/proc/37/task/37/exe
/proc/37/exe
/proc/38/task/38/exe
/proc/38/exe
/proc/39/task/39/exe
/proc/39/exe
/proc/56/task/56/exe
/proc/56/exe
/proc/57/task/57/exe
/proc/57/exe
/proc/58/task/58/exe
/proc/58/exe
/proc/78/task/78/exe
/proc/78/exe
/proc/79/task/79/exe
/proc/79/exe
/proc/80/task/80/exe
/proc/80/exe
/proc/82/task/82/exe
/proc/82/exe
/proc/83/task/83/exe
/proc/83/exe
/proc/84/task/84/exe
/proc/84/exe
/proc/85/task/85/exe
/proc/85/exe
/proc/87/task/87/exe
/proc/87/exe
/proc/99/task/99/exe
/proc/99/exe
/proc/100/task/100/exe
/proc/100/exe
/proc/101/task/101/exe
/proc/101/exe
/proc/102/task/102/exe
/proc/102/exe
/proc/103/task/103/exe
/proc/103/exe
/proc/104/task/104/exe
/proc/104/exe
/proc/105/task/105/exe
/proc/105/exe
/proc/106/task/106/exe
/proc/106/exe
/proc/107/task/107/exe
/proc/107/exe
/proc/108/task/108/exe
/proc/108/exe
/proc/110/task/110/exe
/proc/110/exe
/proc/111/task/111/exe
/proc/111/exe
/proc/113/task/113/exe
/proc/113/exe
/proc/114/task/114/exe
/proc/114/exe
/proc/115/task/115/exe
/proc/115/exe
/proc/116/task/116/exe
/proc/116/exe
/proc/117/task/117/exe
/proc/117/exe
/proc/120/task/120/exe
/proc/120/exe
/proc/121/task/121/exe
/proc/121/exe
/proc/122/task/122/exe
/proc/122/exe
/proc/123/task/123/exe
/proc/123/exe
/proc/124/task/124/exe
/proc/124/exe
/proc/125/task/125/exe
/proc/125/exe
/proc/126/task/126/exe
/proc/126/exe
/proc/127/task/127/exe
/proc/127/exe
/proc/128/task/128/exe
/proc/128/exe
/proc/130/task/130/exe
/proc/130/exe
/proc/131/task/131/exe
/proc/131/exe
/proc/132/task/132/exe
/proc/132/exe
/proc/145/task/145/exe
/proc/145/exe
/proc/149/task/149/exe
/proc/149/exe
/proc/150/task/150/exe
/proc/150/exe
/proc/162/task/162/exe
/proc/162/exe
/proc/192/task/192/exe
/proc/192/exe
/proc/193/task/193/exe
/proc/193/exe
/proc/199/task/199/exe
/proc/199/exe
/proc/343/task/343/exe
/proc/343/exe
/proc/344/task/344/exe
/proc/344/exe
/proc/347/task/347/exe
/proc/347/exe
/proc/348/task/348/exe
/proc/348/exe
/proc/349/task/349/exe
/proc/349/exe
/proc/353/task/353/exe
/proc/353/exe
/proc/355/task/355/exe
/proc/355/exe
/proc/356/task/356/exe
/proc/356/exe
/proc/365/task/365/exe
/proc/365/exe
/proc/377/task/377/exe
/proc/377/exe
/proc/410/task/410/exe
/proc/410/exe
/proc/1179/task/1179/exe
/proc/1179/exe
/proc/1845/task/1845/exe
/proc/1845/exe
/proc/7384/task/7384/exe
/proc/7384/exe
/proc/7433/task/7433/exe
/proc/7433/exe
/proc/7961/task/7961/exe
/proc/7961/exe
/proc/11924/task/11924/exe
/proc/11924/exe
/proc/13632/task/13632/exe
/proc/13632/exe
/proc/14839/task/14839/exe
/proc/14839/exe
/proc/15360/task/15360/exe
/proc/15360/exe
/proc/16012/task/16012/exe
/proc/16012/exe
/proc/16109/task/16109/exe
/proc/16109/exe
/proc/16206/task/16206/exe
/proc/16206/exe
/proc/16289/task/16289/exe
/proc/16289/exe
/proc/16338/task/16338/exe
/proc/16338/exe
/proc/16339/task/16339/exe
/proc/16339/exe
/proc/16859/task/16859/exe
/proc/16859/exe
/proc/17155/task/17155/exe
/proc/17155/exe
/proc/17172/task/17172/exe
/proc/17172/exe
/proc/17964/task/17964/exe
/proc/17964/exe
/proc/18205/task/18205/exe
/proc/18205/exe
/proc/18386/task/18386/exe
/proc/18386/exe
/proc/18752/task/18752/exe
/proc/18752/exe
/proc/18753/task/18753/exe
/proc/18753/exe
/proc/18778/task/18778/exe
/proc/18778/exe
/proc/18813/task/18813/exe
/proc/18813/exe
/proc/19022/task/19022/exe
/proc/19022/exe
/proc/19172/task/19172/exe
/proc/19172/exe
find: ‘/proc/19176/task/19176/fd/5’: No such file or directory
find: ‘/proc/19176/task/19176/fdinfo/5’: No such file or directory
find: ‘/proc/19176/fd/6’: No such file or directory
find: ‘/proc/19176/fdinfo/6’: No such file or directory
/proc/19191/task/19191/exe
/proc/19191/exe
/proc/19199/task/19199/exe
/proc/19199/exe
/proc/19224/task/19224/exe
/proc/19224/exe
/proc/27434/task/27434/exe
/proc/27434/exe
/proc/29422/task/29422/exe
/proc/29422/exe
find: ‘/run/user/1000/gvfs’: Permission denied
/run/user/1000/systemd/units/invocation:gvfs-udisks2-volume-monitor.service
/run/user/1000/systemd/units/invocation:at-spi-dbus-bus.service
/run/user/1000/systemd/units/invocation:gvfs-metadata.service
/run/user/1000/systemd/units/invocation:gvfs-daemon.service
/run/user/1000/systemd/units/invocation:dbus.service
/run/user/1000/systemd/units/invocation:dbus.socket
/run/systemd/units/invocation:net-192.168.4.51-mnt.mount
/run/systemd/units/invocation:proc-sys-fs-binfmt_misc.mount
/run/systemd/units/invocation:systemd-networkd-wait-online.service
/run/systemd/units/invocation:udisks2.service
/run/systemd/units/invocation:polkit.service
/run/systemd/units/invocation:session-1.scope
/run/systemd/units/invocation:user@1000.service
/run/systemd/units/invocation:user-runtime-dir@1000.service
/run/systemd/units/invocation:colord.service
/run/systemd/units/invocation:serial-getty@ttyAMA0.service
/run/systemd/units/invocation:getty@tty1.service
/run/systemd/units/invocation:systemd-user-sessions.service
/run/systemd/units/invocation:sshd.service
/run/systemd/units/invocation:cups.service
/run/systemd/units/invocation:systemd-logind.service
/run/systemd/units/invocation:dhcpcd.service
/run/systemd/units/invocation:dbus.service
/run/systemd/units/invocation:alsa-restore.service
/run/systemd/units/invocation:systemd-update-done.service
/run/systemd/units/invocation:systemd-update-utmp.service
/run/systemd/units/invocation:systemd-timesyncd.service
/run/systemd/units/invocation:systemd-resolved.service
/run/systemd/units/invocation:systemd-journal-catalog-update.service
/run/systemd/units/invocation:systemd-tmpfiles-setup.service
/run/systemd/units/invocation:ldconfig.service
/run/systemd/units/invocation:boot.mount
/run/systemd/units/invocation:systemd-networkd.service
/run/systemd/units/invocation:systemd-journal-flush.service
/run/systemd/units/invocation:systemd-udevd.service
/run/systemd/units/invocation:systemd-journald.service
/run/systemd/units/invocation:haveged.service
/run/systemd/units/invocation:systemd-tmpfiles-setup-dev.service
/run/systemd/units/invocation:ufw.service
/run/systemd/units/invocation:systemd-sysusers.service
/run/systemd/units/invocation:systemd-random-seed.service
/run/systemd/units/invocation:sys-kernel-config.mount
/run/systemd/units/invocation:sys-fs-fuse-connections.mount
/run/systemd/units/invocation:systemd-udev-trigger.service
/run/systemd/units/invocation:systemd-sysctl.service
/run/systemd/units/invocation:systemd-remount-fs.service
/run/systemd/units/invocation:lvm2-monitor.service
/run/systemd/units/invocation:kmod-static-nodes.service
/run/systemd/units/invocation:tmp.mount
/run/systemd/units/invocation:sys-kernel-tracing.mount
/run/systemd/units/invocation:sys-kernel-debug.mount
/run/systemd/units/invocation:dev-mqueue.mount
find: ‘/run/udev/watch/b179:1’: Too many levels of symbolic links
find: ‘/run/udev/watch/11’: Too many levels of symbolic links
find: ‘/run/udev/watch/b179:2’: Too many levels of symbolic links
find: ‘/run/udev/watch/10’: Too many levels of symbolic links
find: ‘/run/udev/watch/b179:0’: Too many levels of symbolic links
find: ‘/run/udev/watch/9’: Too many levels of symbolic links
find: ‘/run/udev/watch/b7:2’: Too many levels of symbolic links
find: ‘/run/udev/watch/8’: Too many levels of symbolic links
find: ‘/run/udev/watch/b7:5’: Too many levels of symbolic links
find: ‘/run/udev/watch/7’: Too many levels of symbolic links
find: ‘/run/udev/watch/b7:6’: Too many levels of symbolic links
find: ‘/run/udev/watch/b7:7’: Too many levels of symbolic links
find: ‘/run/udev/watch/6’: Too many levels of symbolic links
find: ‘/run/udev/watch/5’: Too many levels of symbolic links
find: ‘/run/udev/watch/b7:4’: Too many levels of symbolic links
find: ‘/run/udev/watch/4’: Too many levels of symbolic links
find: ‘/run/udev/watch/b7:0’: Too many levels of symbolic links
find: ‘/run/udev/watch/3’: Too many levels of symbolic links
find: ‘/run/udev/watch/b7:3’: Too many levels of symbolic links
find: ‘/run/udev/watch/2’: Too many levels of symbolic links
find: ‘/run/udev/watch/b7:1’: Too many levels of symbolic links
find: ‘/run/udev/watch/1’: Too many levels of symbolic links
')
Then the wiki says "Then inspect and remove unnecessary entries from this list.". I have no idea where to start considering this very long list. I checked on a couple of other Pi's and it gave similar (long) output. What am I missing here? Should I exclude some directories and if so, which ones?
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: Broken symlinks

Postby ufo6000 » Fri Aug 27, 2021 1:46 pm

exclude also /run and /proc
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm

Re: Broken symlinks

Postby unformatted » Fri Aug 27, 2021 3:45 pm

Thanks, that narrows it down to:

$this->bbcode_second_pass_code('', '
[user@PC11 ~]$ sudo find / ! \( -path /net -prune \) ! \( -path /proc -prune \) ! \( -path /run -prune \) -xtype l -print
[sudo] password for user:
/etc/systemd/system/multi-user.target.wants/org.cups.cupsd.path
/etc/systemd/system/multi-user.target.wants/autofs.service
/etc/systemd/system/sockets.target.wants/org.cups.cupsd.socket
/etc/systemd/system/printer.target.wants/org.cups.cupsd.service
/home/user/.mozilla/firefox/6pgwn1ah.default/lock
/usr/lib/thunderbird/hyphenation
/usr/lib/thunderbird/dictionaries
')
I have firefox and thunderbird and cups printing service installed so I have to investigate why they are listed as broken. Recently I had autofs removed so that's truely broken.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm

Re: Broken symlinks

Postby ufo6000 » Fri Aug 27, 2021 5:25 pm

regarding cups,
a year ago: "Cups systemd socket and service files have been renamed by upstream decision."
https://wiki.archlinux.org/title/CUPS/T ... 72b0140e-1
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm

[SOLVED} Re: Broken symlinks

Postby unformatted » Sat Aug 28, 2021 8:48 am

Thanks for the cups link, missed that but it turned out that the "old" org.cups.cupsd stuff was already disabled and the "new" cups service was already active so I only had to remove the broken symlinks.

I removed all others as well and rebooted. Printing works, when firefox and thunderbird are started and I run the find command, then both the /home/user/.../lock files are listed. If I close both firefox and thunderbird only the firefox lock file remains listed after running the find command again. I guess that's normal behaviour then, I also tested that on 2 other Pi's and same result.
unformatted
 
Posts: 119
Joined: Tue Mar 09, 2021 5:23 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests