edwardLS
November 18th, 2016, 08:06 PM
Running ubuntu 16.04 and having to deal with FAP (Fair Access Policy). I am not a guru, just a dedicated user.
In order to check for and download/install updates during FAP Free time, I have:
sudo crontab -e, and added the following entry -
# check/download/install at 2:00 AM
0 2 * * * (/usr/bin/apt-get update && /usr/bin/apt-get -y upgrade) > /home/edward/apt.log
This results in the following at the end of my log file:
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
If I run the same commands using 'sudo' in a terminal, I do not get the warnings.
I have been searching for a solution, and as best I can determine, my root $PATH is correct, and ldconfig is at /sbin/ldconfig and executable. Am I doing something obviously wrong? Can anyone give me some help?
In order to check for and download/install updates during FAP Free time, I have:
sudo crontab -e, and added the following entry -
# check/download/install at 2:00 AM
0 2 * * * (/usr/bin/apt-get update && /usr/bin/apt-get -y upgrade) > /home/edward/apt.log
This results in the following at the end of my log file:
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
If I run the same commands using 'sudo' in a terminal, I do not get the warnings.
I have been searching for a solution, and as best I can determine, my root $PATH is correct, and ldconfig is at /sbin/ldconfig and executable. Am I doing something obviously wrong? Can anyone give me some help?