如何在 Ubuntu 18.04 中启用正确的快照功能

如何在 Ubuntu 18.04 中启用正确的快照功能

尝试在这里通过安装软件包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

相关内容