solution to bash error (because of the PATH)
2010-03-11 12:33
316 查看
由于修改了/etc/bash.bashrc时,将PATH变量中路径设置错误(路径拼写错误,呵呵,低级错误),所以当再次打开bash时,出现
Command 'lesspipe' is available in '/usr/bin/lesspipe'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
bash: lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
bash: dircolors: command not found
Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
bash: uname: command not found
Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
bash: uname: command not found
bash: [: !=: unary operator expected
bash: [: too many arguments
bash: [: too many arguments
bash: [: =: unary operator expected
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: too many arguments
bash: [: =: unary operator expected
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the PATH environment variable.
bash: sed: command not found
xuqiang@ubuntu:~$
下面解决方案:
首先成为超级用户(ubuntu)
/usr/bin/sudo -i(必须是绝对路径)
/usr/bin/nano /etc/bash.bashrc
删除掉错误信息就可。
Command 'lesspipe' is available in '/usr/bin/lesspipe'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
bash: lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
bash: dircolors: command not found
Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
bash: uname: command not found
Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
bash: uname: command not found
bash: [: !=: unary operator expected
bash: [: too many arguments
bash: [: too many arguments
bash: [: =: unary operator expected
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: too many arguments
bash: [: =: unary operator expected
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the PATH environment variable.
bash: sed: command not found
xuqiang@ubuntu:~$
下面解决方案:
首先成为超级用户(ubuntu)
/usr/bin/sudo -i(必须是绝对路径)
/usr/bin/nano /etc/bash.bashrc
删除掉错误信息就可。
相关文章推荐
- solution to bash error (because of the PATH)
- The Transition from Qt 4.x to Qt 5, the compatibility of QT, the solution to some error of header in
- .Net Framework Initialization Error – Unable to find a version of the runtime to run
- This error is raised because the column 'type' is reserved for storing the class in case of inheritance
- Prefer Compiler Error to Runtime Error - taking advantage of the syntax check flag
- Leetcode 13. Roman to Integer The Solution of Python
- Error occurred in deployment step 'Add Solution': Failed to extract the cab file in the solution
- 关于error:Cannot assign to 'self' outside of a method in the init family
- Solution to the problem of machine name becomes "bogon" in Mac
- Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a
- 'Operation is not valid due to the current state of the object' error during postback
- error: failed to push some refs to 'git@github.com:....." Updates were rejected because the remote c
- PHP 中 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- VS 2010: An error occurred loading a configuration file: Failed to map the path ‘/’.
- Swift Compiler Error Cannot assign to the result of this expression
- cannot be resolved to absolute file path because it does not reside in the file system : jar:file:/D
- solution:Failed to update database "XXX.MDF" because the database is read-only.
- yum 运行时提示There was a problem importing one of the Python modules required to run yum. The error lead
- These kinds of timepieces are usually far better cloned as compared to some other timepieces because of the sought after and also reputation
- linux下oracle9204安装Error:you do not hame sufficient privileges to write to the specified path