Cannot unpackage any software without an error in terminal

Asked by shiro

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:
Revision history for this message
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

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What is the output of:

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

Thanks

Revision history for this message
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

Revision history for this message
shiro (kla67) said :
#4

To Samuel:

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

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#5

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

Revision history for this message
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.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

what is the output of:

/bin/cat /etc/issue

Thanks

Revision history for this message
shiro (kla67) said :
#8

Ubuntu 12.10 \n \l

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Try:

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

Will download a lot but may help

Revision history for this message
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.'

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

What is the output of:

groups

Thanks

Revision history for this message
shiro (kla67) said :
#12

kla adm cdrom sudo dip plugdev lpadmin sambashare

Revision history for this message
shiro (kla67) said :
#13

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