Reply
Thread Tools
Posts: 235 | Thanked: 89 times | Joined on Oct 2009 @ italy
#1
Hi guys, during a root terminal session to remove tweaker app, I had problem with path. Please see my screenshot to understand.
How can I solve it?
Thank you
Attached Images
 
__________________
If you found my post useful please thank me, I appreciate!
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#2
what does "echo $PATH" as root say?
did you try to just reopen a shell as root, maybe it was just your current session that messed up $PATH.

root's path gets set via the file "/root/.profile". you should have these two lines there:
Code:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
export PATH
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following 2 Users Say Thank You to SubCore For This Useful Post:
cddiede's Avatar
Posts: 1,034 | Thanked: 784 times | Joined on Dec 2007 @ Annapolis, MD
#3
How does apt-get purge differ from a normal apt-get remove?
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#4
Originally Posted by cddiede View Post
How does apt-get purge differ from a normal apt-get remove?
purge removes all files, including configuration.
without --purge, package-specific stuff under f.ex. /etc will not be deleted.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following 2 Users Say Thank You to SubCore For This Useful Post:
Posts: 235 | Thanked: 89 times | Joined on Oct 2009 @ italy
#5
@SubCore:
thank you for your reply
Code:
 $ echo $PATH
/usr/bin:/bin
if my path should be in /root/.profile file maybe I deleted it involuntarily when I allowed alias ll=ls -la
If your string is a complete tipical root path I append it to my .profile
Please confirm me it
Thank you
__________________
If you found my post useful please thank me, I appreciate!
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#6
Originally Posted by maemo.it View Post
@SubCore:
thank you for your reply
Code:
 $ echo $PATH
/usr/bin:/bin
that's the user's path, not root. every user has it's own $PATH variable set.
although for a user it's the correct path

and yes, the lines i quoted came directly from my /root/.profile, which has been unaltered.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#7
Here's the full content of /root/.profile

Code:
# ~/.profile: executed by Bourne-compatible login shells.

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi

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

mesg n
 

The Following 2 Users Say Thank You to kureyon For This Useful Post:
frozenholmes's Avatar
Posts: 102 | Thanked: 2 times | Joined on Nov 2010 @ Scotland
#8
how do you add preenv. iv tried this code

sudo gainroot
apt-get install preenv

when i hit enter, it comes up
E: could not find package preenv.

help

regards frozen
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#9
Originally Posted by maemo.it View Post
Hi guys, during a root terminal session to remove tweaker app, I had problem with path. Please see my screenshot to understand.
How can I solve it?
Thank you
This may be a result of using "sudo gainroot" instead of "root" - the PATH you get differs between the two.
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 235 | Thanked: 89 times | Joined on Oct 2009 @ italy
#10
Originally Posted by frozenholmes View Post
how do you add preenv. iv tried this code

sudo gainroot
apt-get install preenv

when i hit enter, it comes up
E: could not find package preenv.

help

regards frozen
maybe you have to enable the right repository where this app is!
__________________
If you found my post useful please thank me, I appreciate!
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:53.