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

Re: Error Code whe using apt-get



Oliver Fuchs wrote:
On Wed, 18 Feb 2004, Kirby Walborn wrote:

Here is the answer:


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


You have to (re)define your PATH variable e.g. in your (depends on the shell
you are using) .bash_profile or /etc/profile:

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

Oliver
He's right.
Let me guess, this happens when you "su -m" to root.
I've had this happen, most users don't have those three in their path, and -m keeps settings like that for root.
Either set the user's path before "su -m" , or use just "su".

PaulNM



Reply to: