I have a shell script that makes use of the 'find' command, which is part of the findutils package. However, I've noticed recently that my shell script reports that 'find' is not found (oddly enough).
I tried re-installing the package from Synaptic, and got the following output:
My path is as follows:
I've done a manual check for 'find' in some of the above listed directories. Dolphin doesn't see it, but locate finds it at /usr/bin/find. I've updated the database for locate, and it still sees it there.
Weird.
In a root konsole I did the following:
So, using 'find' says it is not installed. Trying to install 'findutils' says it is already there. Dolphin can't see 'find' in /usr/bin, but locate says it is there.
Any suggestions?
Frank.
I tried re-installing the package from Synaptic, and got the following output:
Code:
dpkg: warning: 'find' not found in PATH or not executable. dpkg: error: 1 expected program not found in PATH or not executable. Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin. E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install. Trying to recover: dpkg: warning: 'find' not found in PATH or not executable. dpkg: error: 1 expected program not found in PATH or not executable. Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
Code:
frank@rhino:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games frank@rhino:~$
Weird.
In a root konsole I did the following:
Code:
root@rhino:~# find The program 'find' is currently not installed. You can install it by typing: apt-get install findutils root@rhino:~# apt-get install findutils Reading package lists... Done Building dependency tree Reading state information... Done findutils is already the newest version. The following packages were automatically installed and are no longer required: ubufox libgpds0 libaccess-bridge-java-jni libaccess-bridge-java dcraw libnautilus-extension1 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded. root@rhino:~#
Any suggestions?
Frank.
Comment