dpki /usr/local/sbin not in PATH

If none of the more specific forums is the right place to ask

dpki /usr/local/sbin not in PATH

Postby delare » 2019-10-03 11:52

Hi,

on fresh installed Debian Buster (installed yesterday, with xfce) i get following if i try to install a deb package (as root)

all in xfce terminal switched to root with su

Code: Select all
root@europa:/home/europa/Downloads# dpkg -i code_1.38.1-1568209190_amd64.deb
dpkg: Warnung: »ldconfig« wurde im PATH nicht gefunden oder ist nicht ausführbar
dpkg: Warnung: »start-stop-daemon« wurde im PATH nicht gefunden oder ist nicht ausführbar
dpkg: Fehler: 2 erwartete Programme nicht im PATH gefunden oder nicht ausführbar
Beachten Sie: PATH von root sollte normalerweise /usr/local/sbin, /usr/sbin und /sbin enthalten


It was working before i tried to install another package (steam client) that failed with missing depencies. This one is now working after synaptic repaired that and installed the missing packages (curl, xterm, konsole). But now all other failes with the message above.

echo $PATH in console (as root) returns:
Code: Select all
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games


In /etc/profile there is
Code: Select all
if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
...


id -u in console as root returns
Code: Select all
0


i did not changed the profile in /etc or /hrome/<user>, the profile file from my stretch version looks similar

just tried at last, as user with sudo works but not more if i switched with su to root.
delare
 
Posts: 14
Joined: 2016-05-16 08:33

Re: dpki /usr/local/sbin not in PATH

Postby 4D696B65 » 2019-10-03 12:03

debian now uses
Code: Select all
su -

su does not change to roots path
User avatar
4D696B65
 
Posts: 2438
Joined: 2009-06-28 06:09

Re: dpki /usr/local/sbin not in PATH

Postby delare » 2019-10-04 14:49

ah ok, thanks
delare
 
Posts: 14
Joined: 2016-05-16 08:33


Return to General Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable