silvesterlangen.de

Seite
Menü

Apt bricht ab (ldconfig)

Beim Ausführen von apt-get upgrade oder apt-get -y install PAKET bricht apt-get/dpkg die Installation immer wieder ab mit folgender Meldung:

 

Symptom:

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)d

 

Ursache:

Der Pfad von ldconfig, welches sich in /sbin/ befindet kann nicht gefunden werden. Das liegt daran, weil die Variable $PATH das /sbin/ nicht enthält. Ursache dafür kann eine zuvor mit STRG+C abgebrochene Installation oder Upgrade sein.

 

Lösung:

Die Variable händisch in die Datei /etc/environment hinzufügen oder folgendes in die Shell eingeben:

PATH=$PATH:/home/appli/bin
export PATH

Es kann aber auch mittels sudo das apt-get ausgeführt werden, da sich in /etc/sudoers die Path-Variable ebenfalls befindet.

« vorige Seite Seitenanfang nächste Seite »
Seite
Menü
Earned Certificates:
LPIC-1 LPIC-1 LPIC-1
Powered by CMSimple | Template by CMSimple | Login