Since the error is thrown by find, I suspect you have locate installedWhat I found was a updatedb command which I was using in another distro way back when. That command, when run as root, displays the error. I tried the script without updatedb and received no errors.
Code:
Package: locateSource: findutilsVersion: 4.9.0-4Installed-Size: 383 kBMaintainer: Andreas Metzler <ametzler@debian.org>Architecture: amd64Depends ▼ findutils (>>4.2.31-1), libc6 (>=2.34)Replaces ▼ findutils (<<4.2.31-2)Breaks ▼ slocate (<=3.1-1.1)Description-en: maintain and query an index of a directory tree updatedb generates an index of files and directories. GNU locate can be used to quickly query this index.Multi-Arch: foreignHomepage: https://savannah.gnu.org/projects/findutils/Tag: implemented-in::c, implemented-in::shell, interface::commandline, role::program, use::searchingSection: utilsPriority: optionalFilename: pool/main/f/findutils/locate_4.9.0-4_amd64.debSize: 240 kB
apt list --installed "*locate*"
will tell you.plocate is better, install it instead of locate
Code:
Package: plocateStatus: install ok installed - manuallyVersion: 1.1.18-1Installed-Size: 535 kBMaintainer: Steinar H. Gunderson <sesse@debian.org>Architecture: amd64Depends ▼ libc6 (>=2.34), libgcc-s1 (>=3.0), libstdc++6 (>=12), liburing2 (>=2.3), libzstd1 (>=1.5.2), adduserSuggests ▼ systemd-sysv|powermgmt-base, systemd-sysv|nocacheReplaces ▼ mlocate (<<1.1.7)Breaks ▼ mlocate (<<1.1.7)Description-en: much faster locate plocate is a locate(1) based on posting lists, giving much faster searches on a much smaller index. It is a drop-in replacement for mlocate in nearly all aspects, and is fast on SSDs and non-SSDs alike.Homepage: https://plocate.sesse.net/Section: utilsPriority: optionalFilename: pool/main/p/plocate/plocate_1.1.18-1_amd64.debSize: 125 kB
Code:
$> cat /etc/updatedb.conf PRUNE_BIND_MOUNTS="yes"# PRUNENAMES=".git .bzr .hg .svn"PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph /home/.ecryptfs /var/lib/schroot"PRUNEFS="NFS afs autofs binfmt_misc ceph cgroup cgroup2 cifs coda configfs curlftpfs debugfs devfs devpts devtmpfs ecryptfs ftpfs fuse.ceph fuse.cryfs fuse.encfs fuse.glusterfs fuse.gocryptfs fuse.gvfsd-fuse fuse.mfs fuse.rclone fuse.rozofs fuse.sshfs fusectl fusesmb hugetlbfs iso9660 lustre lustre_lite mfs mqueue ncpfs nfs nfs4 ocfs ocfs2 proc pstore rpc_pipefs securityfs shfs smbfs sysfs tmpfs tracefs udev udf usbfs"
Statistics: Posted by fabien — 2024-08-28 23:48 — Replies 14 — Views 279