WebHosting

Wednesday, February 27, 2013

The command could not be located because '/usr/bin' is not included in the PATH environment variable. error

if you are getting this error :

Symptoms :

1. You are not able to login, loging screen returning back to itself.
2. If you press alt+ctrl+[F1-F7] and issue some come command and its throwing this error.

Solution:

First check "echo $PATH" if it is having entries like

/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:
/bin:/sbin

Entries are there in the pats variable, if those are not there there is a problem.

So lets starrt :

Login with your user, on terminal type /usr/bin/vi or /usr/bin/vim /etc/environment

and add

PATH="/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/sbin"

and restart the machine.

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

How to Enable and Configure Remote Desktop (RDP) on Ubuntu 24.04.4 LTS

Remote Desktop Protocol (RDP) support in Ubuntu has become considerably easier with the GNOME Remote Desktop stack included in modern Ubuntu...