Schlagwort-Archive: apt-get

dpkg: warning: ‚ldconfig‘ not found in PATH or not executable

Problem:
Debian Jessie: Installieren von Nodejs schlug fehl.

Fehlermeldung:

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)

Lösung:

sudo nano /etc/sudoers

Folgende Zeilen müssen vorhanden sein:

Defaults        env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"