not_found_in_path_or_not_executable
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
Your ArtIT Team
BACK
not_found_in_path_or_not_executable.txt · Last modified: 2018/11/07 17:10 by admin