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
/etc/sudoers by running
visudo in your terminal, and make sure the file includes the following line:
More information about this problem may be found here (Problems and tips > PATH not set).
Solution 2: use the root account directly
sudo, just switch to
root to run your commands. Run one of the following commands to do so:
$ sudo -i
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:
Solution 3: try to pass the
PATH variable to
sudo at execution time.
Just prefix the
sudo call with the redefinition of the
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin sudo apt-get ...