我使用Ubuntu 12.04已有相当长的一段时间了,从来没有遇到过这样的问题。我试图在我的Ubuntu系统上安装python 3.2,并且每次我运行代码来编译python源代码时,都会出现此错误:
'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'
我也尝试运行gksudo
命令来查看环境显示的内容,但是我几乎得到了相同的错误。
您能告诉我们您要执行什么程序吗?有些程序会更改PATH变量,但没有名称我们无法确定。
—
Braiam 2013年
cat /etc/environment
什么?