First of all, the lines you are truly interested in are:
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
These errors have been reported several times by Debian and Ubuntu users (you can actually Google them for more information). It seems like the PATH variable isn't correctly set when the user tries to execute a command through sudo, which is probably what you are trying to do.
Solution 1: Set sudo's default secure path
Open /etc/sudoers by running visudo in your terminal, and make sure the file includes the following line:
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
More information about this problem may be found here (Problems and tips > PATH not set).
Solution 2: use the root account directly
Don't use sudo, just switch to root to run your commands. Run one of the following commands to do so:
$ sudo -i
$ su
Once you are logged in as root, just run your apt-get commands again:
# apt-get ...
You might have to set root's PATH first though. Edit /root/.bashrc (with root privileges of course), and add the following line:
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Solution 3: try to pass the PATH variable to sudo at execution time.
Just prefix the sudo call with the redefinition of the PATH variable:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin sudo apt-get ...
$PATHplease? – chaos Oct 8 '14 at 11:30echo $PATHin a terminal. – John WH Smith Oct 8 '14 at 11:38cat /etc/environment? – chaos Oct 8 '14 at 11:48