This is an old revision of the document!
*Error not found in PATH or not executable*
If getting an error after dist-update like:
Preconfiguring packages … 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. E: Sub-process /usr/bin/dpkg returned an error code (2)
Open a commandline to the server and do the following:
echo $PATH
root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
if SBIN is missing do the following:
export PATH=“$PATH:/sbin”
after that do an upgrade or dist-upgrade to check if it's now working
The ArtIT Team