尝试在这里通过安装软件包snapd
,但不断收到以下输出:
$ sudo snap hello Warning: /snap/bin was not found in your $PATH. If you've not restarted your session since you installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more details.
尝试运行应用程序时,收到以下信息:
$ hello Command 'hello' is available in '/snap/bin/hello' The command could not be located because '/snap/bin' is not included in the PATH environment variable. hello: command not found
有人可以帮忙吗?
答案1
PATH=$PATH:/snap/bin
只需在适当文件的末尾添加即可.bashrc
,请记住 root 用户的文件与用户的文件不同。
然后$ source .bashrc
,和$ hello
。