3

I followed the installation guide from snapcraft.io. My system cannot find the hello-world application:

$ sudo snap install hello-world
[sudo] password for gauthier: 
hello-world 6.4 from Canonical✓ installed
$ hello-world
bash: hello-world: command not found

How do I fix this?

Debian 10, but I guess the process is the same as Ubuntu.

Gauthier
  • 2,697

1 Answers1

4

Apparently, installing snap from apt does not add the correct path to /etc/environment, or PATH.

The snap applications are in /snap/bin/, so there is the string to somehow add to your PATH.

I feel that this should be automated, or at least pointed out to the user upon installation of snap. (Yes, I rebooted with no success.)

Gauthier
  • 2,697
  • I just checked on my system and /snap/bin is in PATH. However, the snap application in question may not add it's executable to /snap/bin. I know little about snaps, but I guess it's up to application to do that. – raj Nov 23 '20 at 11:15
  • It's in /snap/bin – Gauthier Nov 23 '20 at 11:16
  • @raj I just checked on my system and /snap/bin is in PATH: That's because you may be using Ubuntu but Gauthier is using Debian. And in Ubuntu Desktop, Snap is installed by default. the snap application in question may not add it's executable to /snap/bin: Well that would defy the whole purpose of package managers and "automated" installation. Usually binaries or symbolic link to binaries are in *bin. – Kulfy Nov 23 '20 at 12:17