Problem with sudo after upgrade to wheezy

after an upgrade from squeeze to wheezy I had a strange error when using sudo:

dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
dpkg: error: 2 expected programs not found in PATH or not executable.
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

First I tried to fix the /etc/profile to stop it using strange …game folder in my PATH. But the solution was to add the following line just after “Defaults env_reset” in /etc/sudoers:

Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

 

Leave a Comment