PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : debian: apt-get fehler



SicKBoy74
25.05.03, 17:07
hi leude,

alle jahre wieder habe ich mal ein kleines problem, diesmal mit meinem nagelneuen trusted-debian-linux. und zwar brauche ich "host" ....und folgendes passiert:



root@debian:~# apt-get install host
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
host
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/70.9kB of archives. After unpacking 176kB will be used.
dpkg: `ldconfig' not found on PATH.
dpkg: `start-stop-daemon' not found on PATH.
dpkg: `install-info' not found on PATH.
dpkg: `update-rc.d' not found on PATH.
dpkg: 4 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)


was soll mir das sagen ?? und wie bekomme ichd as noch richtig installiert ?

vielen dank
David

msi
25.05.03, 17:22
gib mal das ein und sag uns was er liefert:

who am i
echo $PATH

SicKBoy74
25.05.03, 17:40
das spuckt er aus....


root@debian:~# who am i
root pts/2 May 25 18:39 (192.168.42.3)
root@debian:~# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
root@debian:~#


CIAo
David

ProfBunny
25.05.03, 18:15
Hallo,


[Q
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
^^^^^^^


David [/B][/QUOTE]

Du mußt deinem Path noch /sbin hinzufügen.

export PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/sbin

und schon muß es gehen.

Mfg
Profbunny

SicKBoy74
25.05.03, 18:46
leider funzt es nicht ganz :confused: , ist aber schon besser als vorher, oder !?

root@debian:~# export PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:
/sbin
root@debian:~# apt-get install host
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
host
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/70.9kB of archives. After unpacking 176kB will be used.
dpkg: `install-info' not found on PATH.
dpkg: `update-rc.d' not found on PATH.
dpkg: 2 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@debian:~#


----
wie kann ich diese änderung fest machen ?, die ist doch nur temporär, oder ?


CIAo
David

ProfBunny
25.05.03, 18:53
Hallo,

hab's vergessen, du mußt auch /usr/sbin in deinen Path aufnehmen.

Profbunny

SicKBoy74
25.05.03, 18:57
hi @LL,

nun geht es ich habe einfach die anderen pfade mit angegeben, nun ist immer noch meine letzte frage offen, wie ich das fest einstellen kann.

root@debian:~# export PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/sbin:/usr/local/sbin/:usr/sbin:/sbin


CIAo
David

msi
25.05.03, 19:08
in der /etc/profile kannst du das eintragen oder in ~/.bashrc

SicKBoy74
25.05.03, 19:39
DANKESCHÖN an ALLE

CIAo
David