no such file or directory
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。
文章最后发布于: 2018-12-10 10:07:46
相关阅读
No input file specified. phpStudy nginx报错解决方
No input file specified. phpStudy nginx报错解决方案 排查1:检查这个目录是否存在,路径是否错误 排查2:vhost.conf配置文件 serv
【原文:https://blog.csdn.net/a346673164/article/details/52932587】 1.首先看到的页面是nginx返回的页面,得知错误要从nginx上来
有不少的小伙伴因为自己在生意上的资金周转不过来的时候就会想着要去进行贷款,而作为淘宝商家,可能会选择进行淘宝信用贷款,为了帮助
在我们写的程序当中,总有一些配置信息需要保存下来,以便完成程序的功能,最简单的办法就是将这些信息写入INI文件中,程序初始化时
office2007在windows2008上安装失败的诡异原因(提示找
想安装office2007,但每每安装总是提示找不到Office.zh-cn里setup.xml,OfficeMUI.msi等文件,一开始以为是 offcie2007搞的鬼,卸载后安