ubuntu出现如下错误:

{

Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-42-generic x86_64)

* Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

77 packages can be updated.
0 updates are security updates.

*** System restart required ***
Last login: Fri Dec  7 13:59:33 2018 from 10.12.21.2
-bash: ls: No such file or directory
-bash: lesspipe: No such file or directory
-bash: dircolors: No such file or directory
-bash: ls: No such file or directory
carrie@carrie-MMLP7AP-V7:~$ sudo su -l
Command 'sudo' is available in '/usr/bin/sudo'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
sudo: command not found

}

原因是:

默认的环境变量错误,

#cat /etc/profile

export PATH=

修改错误:

# export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

# reboot

重启机器,登陆OK。

最新文章

  1. 精选30道Java笔试题解答
  2. kafka集群搭建和使用Java写kafka生产者消费者
  3. 图像上传OSS的BUG
  4. python时间处理之datetime
  5. 还原没有日志文件的SQL数据库
  6. (hdu)5546 Ancient Go
  7. linq 动态排序
  8. Html5响应式设计与实现广场
  9. javascript中关于继承的理解
  10. Html5笔记之小结
  11. C++编写ATM
  12. eclipse工具类及插件(svn的安装)
  13. (next_permutation) 排列2 hdu 1716
  14. 浅谈cookie、session
  15. linux,windows下日志文件查找关键词
  16. 如何为linux系统设置全局的默认网络代理
  17. Eclipse添加Spket插件实现ExtJs智能提示
  18. 菜鸟译文(二)——使用Java泛型构造模板方法模式
  19. Daily Scrumming 2015.10.22(Day 3)
  20. 排序算法总结(基于Java实现)

热门文章

  1. CMDB项目
  2. Pearson Correlation Score
  3. STS中依赖项的设置
  4. 【CodeForces - 598D】Igor In the Museum(bfs)
  5. getopts的使用 + 创建空目录
  6. SGI STL源码stl_vector.h分析
  7. Jboss: Using reverse path on top path: /xxx
  8. springboot2.0处理任何异常返回通用数据格式
  9. linux下安装anconda3
  10. Spring 容器中 Bean 的生命周期