所以我试图设置 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
我可以用这个命令修复它:
export PATH="/usr/bin:$PATH"
但是每次打开新终端时,我都会再次遇到错误,并且必须再次使用此命令。
如果您能提供帮助,我将不胜感激。顺便说一句,我使用Ubuntu 22.04.1 LTS