[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Lösung $PATH (was: dpkg: XYZXYZ not found on PATH)



Jörg Schütter <joerg@schuetter.org> wrote:

> On Thu, 29 May 2003 14:40:38 +0200
> Heino Tiedemann <rotkap@rotkap.de> wrote:
[..]
>> Stimmt:
>> -ldconfig
>> -start-stop-daemon
>> -install-info
>> -update-rc.d
>> sind allesammt nicht auf meinem System.
>
> sollten aber eigentlich sein. Versuch mal
> export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
> und anschließend erneut den apt-get.


Jetzt weiß ich endlich, warum das bisher keine probleme machte, aber
seit kurzem der Pfad nicht mehr gefunden wurde:

"su -" durchläuft diese Dateien:

- /etc/profile (wenns ie existier auf jeden fall)
- ~/.bash_profile
- ~/.bash_login
- ~/.profile
von den letzten dreien wird nur die *zuerst gefundene* durchlaufen.

Bis vor kurzem hatte ich nur die ~/.profile in /root, seit kurzem habe
ich aber die ~/.bash_profile angelegt. Per hand. 

Die wird seit dem als erstes gefunden, deswegen wurde die ~/.profile
nicht mehr durchlaufen, und deren PATH nicht mehr gesetzt.

,----[ BASH(1) ]
| When bash is invoked as an interactive login shell, or as a
| non-interactive shell with the --login option, it first reads and
| executes commands from the file /etc/profile, if that file exists.
| After reading that file, it looks for ~/.bash_profile, ~/.bash_login,
| and ~/.profile, in that order, and reads and executes commands from
| the first one that exists and is readable.  The --noprofile option may
| be used when the shell is started to inhibit this behavior.
`----

Heino

-- 
http://www.fritz-kola.de/ (Die neue Kola für Hamburg)



Reply to: