所以我试图设置 JAVA_HOME 变量,以及每次我想使用终端时我最终都会遇到这个错误
Command 'poweroff' is available in the following places
* /sbin/poweroff
* /usr/sbin/poweroff
The command could not be located because '/sbin:/usr/sbin' is not included in the
PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with
your user account.
poweroff: command not found
Run Code Online (Sandbox Code Playgroud)
我可以用这个命令修复它:
export PATH="/usr/bin:$PATH"
Run Code Online (Sandbox Code Playgroud)
但每次我打开新终端时,我都会再次遇到错误,我必须再次使用此命令。
如果您能提供帮助,我将不胜感激。顺便说一句我用的Ubuntu 22.04.1 LTS