需要帮助安装 AptUrl 或更改环境变量

需要帮助安装 AptUrl 或更改环境变量

我知道如何获取要安装的文件,我必须输入“sudo apt-get install apturl”然后它就会打开要安装的包。

我输入命令,得到了这个

"mspyellow@BJ:~$ sudo apt-get install apturl
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”输入它,最后得到了这个

"mspyellow@BJ:~$ usr/bin/sudo apt-get install apturl
bash: usr/bin/sudo: No such file or directory"

我需要做什么才能安装 Apturl。或者我如何更改路径,这样我就不必输入“/usr/bin/”,因为在安装 JDK7 之前我不需要输入它。

提前感谢你的建议和帮助...我是初学者,如果这些问题比较弱智,我很抱歉

答案1

您是否更改了系统文件?通常,PATH 变量应该正确设置...

但是,在第二次尝试时,你忘记了起始斜线。命令应该是

mspyellow@BJ:~$ /usr/bin/sudo apt-get install apturl

相关内容