Cannot unpackage any software without an error in terminal

Asked by shiro on 2013-01-10

Here is the error:

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)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Solved by:
shiro
Solved:
Last query:
Last reply:
samuel (samuel-h) said : #1

try running this before the command:
export PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

What is the output of:

cat /etc/issue; uname -a; echo $PATH; whoami

Thanks

shiro (kla67) said : #3

Ubuntu 12.10 \n \l

Linux kla-Satellite-L450 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
kla

shiro (kla67) said : #4

To Samuel:

bash: export: `apt-get': not a valid identifier

Please send us the full Terminal output of the following command:

which find ; ls -l /usr/bin/find ; sudo ls -l /usr/bin/find

Please also try the solution procedure here:

http://www.kubuntuforums.net/showthread.php?60122-find-not-found&s=1662aa212e33c22fad4ea189b8a96a43

shiro (kla67) said : #6

ls: cannot access /usr/bin/find: No such file or directory
[sudo] password for kla:
kla is not in the sudoers file. This incident will be reported.

what is the output of:

/bin/cat /etc/issue

Thanks

shiro (kla67) said : #8

Ubuntu 12.10 \n \l

Try:

sudo apt-get --reinstall install `dpkg -l | awk {'print $2'}`

Will download a lot but may help

shiro (kla67) said : #10

Can't do it, I keep gettin this error for everything:

'kla is not in the sudoers file. This incident will be reported.'

What is the output of:

groups

Thanks

shiro (kla67) said : #12

kla adm cdrom sudo dip plugdev lpadmin sambashare

shiro (kla67) said : #13

Just put in the live CD and did a reinstall. Everything is working again I am able to sudo!